add: agv偏移功能

This commit is contained in:
yanps
2024-05-21 18:38:01 +08:00
parent a57a696a9b
commit fa4a85ebcc
8 changed files with 209 additions and 62 deletions

View File

@@ -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) {