add: agv偏移功能
This commit is contained in:
@@ -173,12 +173,16 @@ public class HongXiangConveyorDeviceDriver extends AbstractOpcDeviceDriver imple
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号door:" + last_door + "->" + door);
|
||||
}
|
||||
if (mode != last_mode) {
|
||||
//this.setRequireSucess(false);
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号mode:" + mode + "->" + last_mode);
|
||||
}
|
||||
if(action != last_action){
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号action:" + action + "->" + last_action);
|
||||
}
|
||||
if (move != last_move) {
|
||||
if (move == 0) {
|
||||
thingToNothing();
|
||||
}
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号mode:" + mode + "->" + last_mode);
|
||||
}
|
||||
if (error != last_error) {
|
||||
if (error != 0) {
|
||||
@@ -188,6 +192,10 @@ public class HongXiangConveyorDeviceDriver extends AbstractOpcDeviceDriver imple
|
||||
dto.setError_info(ErrorUtil.getDictDetail("hx_error_type", String.valueOf(error)));
|
||||
deviceErrorLogService.create(dto);
|
||||
}
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号error:" + error + "->" + last_error);
|
||||
}
|
||||
if (error1 != last_error1) {
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号error1:" + error1 + "->" + last_error1);
|
||||
}
|
||||
if (finish != last_finish) {
|
||||
if (finish == 1) {
|
||||
|
||||
Reference in New Issue
Block a user