fix rgv任务

This commit is contained in:
USER-20220102CG\noblelift
2023-07-18 17:11:57 +08:00
parent 416a5b0da3
commit 3032914511

View File

@@ -618,8 +618,9 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
} else {
String start_addr = startdevice.getExtraValue().get("OPCServer").toString();
String next_addr = nextdevice.getExtraValue().get("OPCServer").toString();
//如果点是BZSLW 则用前工位
if(StrUtil.equals("BZSLW",next_device_code)){
//如果点是包装位 则用前工位
if(StrUtil.equals("FJJXSXLW201",start_device_code) || StrUtil.equals("FJJXSXLW202",start_device_code)
|| StrUtil.equals("FJJXSXLW301",start_device_code) || StrUtil.equals("FJJXSXLW302",start_device_code) ){
writing("to_command1", "1");
writing("to_onset1", start_addr);
writing("to_target1", next_addr);
@@ -650,7 +651,7 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
, instdto.getInstruction_code())) {
writing("to_command2", "1");
writing("to_onset2", start_addr);
writing("to_target2", start_addr);
writing("to_target2", next_addr);
writing("to_task2", instdto.getInstruction_code());
logServer.deviceExecuteLog(device_code, "", "", instdto.getInstruction_code() + "再次下发信号");
try {
@@ -783,7 +784,8 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
String start_addr = startdevice.getExtraValue().get("OPCServer").toString();
String next_addr = nextdevice.getExtraValue().get("OPCServer").toString();
//如果终点是BZSLW 则用前工位
if(StrUtil.equals("BZSLW",next_device_code)){
if(StrUtil.equals("FJJXSXLW201",start_device_code) || StrUtil.equals("FJJXSXLW202",start_device_code)
|| StrUtil.equals("FJJXSXLW301",start_device_code) || StrUtil.equals("FJJXSXLW302",start_device_code) ){
writing("to_command1", "1");
writing("to_onset1", start_addr);
writing("to_target1", next_addr);
@@ -814,7 +816,7 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
, instdto.getInstruction_code())) {
writing("to_command2", "1");
writing("to_onset2", start_addr);
writing("to_target2", start_addr);
writing("to_target2", next_addr);
writing("to_task2", instdto.getInstruction_code());
logServer.deviceExecuteLog(device_code, "", "", instdto.getInstruction_code() + "再次下发信号");
try {