add rgv驱动,拆垛位刚托盘数量下发,强制入库20
This commit is contained in:
@@ -546,10 +546,7 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
log.debug("设备运转模式:等待工作");
|
||||
return;
|
||||
case 2:
|
||||
if (move1 == 0 && move2 == 0 && action1 == 0 && action2 == 0 && task1 == 0 && task2 == 0 && requireSucess1) {
|
||||
log.info("没有复位");
|
||||
}
|
||||
if (move1 == 0 && move2 == 0 && action1 == 0 && action2 == 0 && task1 == 0 && task2 == 0 && !requireSucess1) {
|
||||
if (move1 == 0 && move2 == 0 && !requireSucess1 &&mode==2) {
|
||||
instruction_require();
|
||||
}
|
||||
break;
|
||||
@@ -961,8 +958,9 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
action1 = "放货中";
|
||||
} else if (this.getAction1() == 4) {
|
||||
action1 = "放货完成";
|
||||
}else if (this.getAction1() == 0) {
|
||||
action1 = "无动作";
|
||||
}
|
||||
|
||||
if (this.getAction2() == 1) {
|
||||
action2 = "取货中";
|
||||
} else if (this.getAction2() == 2) {
|
||||
@@ -971,6 +969,8 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
action2 = "放货中";
|
||||
} else if (this.getAction2() == 4) {
|
||||
action2 = "放货完成";
|
||||
}else if (this.getAction2() == 0) {
|
||||
action2 = "无动作";
|
||||
}
|
||||
|
||||
if (this.getWalk_y() == 0) {
|
||||
@@ -1004,6 +1004,12 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
jo.put("batch", this.getBatch());
|
||||
jo.put("specifications", this.getSpecifications());
|
||||
jo.put("qty", this.getQty());
|
||||
if(requireSucess1==false) {
|
||||
jo.put("requireSucess1","1");
|
||||
}
|
||||
if(requireSucess1==true) {
|
||||
jo.put("requireSucess1","0");
|
||||
}
|
||||
return jo;
|
||||
}
|
||||
|
||||
@@ -1035,6 +1041,7 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "前工位指令" + task1 + "完成异常,异常原因:" + e.getMessage());
|
||||
}
|
||||
log.info("五点任务完成");
|
||||
this.setRequireSucess1(false);
|
||||
writing("to_command1", "0");
|
||||
writing("to_command1", "0");
|
||||
writing("to_onset1", "0");
|
||||
@@ -1068,6 +1075,7 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "后工位指令" + task1 + "完成异常,异常原因:" + e.getMessage());
|
||||
}
|
||||
log.info("后工位任务完成");
|
||||
this.setRequireSucess1(false);
|
||||
writing("to_command2", "0");
|
||||
writing("to_command2", "0");
|
||||
writing("to_onset2", "0");
|
||||
@@ -1089,6 +1097,7 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "前工位指令" + task1 + "完成异常,异常原因:" + e.getMessage());
|
||||
}
|
||||
log.info("前工位任务完成");
|
||||
this.setRequireSucess1(false);
|
||||
writing("to_command1", "0");
|
||||
writing("to_command1", "0");
|
||||
writing("to_onset1", "0");
|
||||
|
||||
@@ -28,4 +28,9 @@ public class ApplyTaskResponse extends BaseResponse {
|
||||
*/
|
||||
private String label_message;
|
||||
|
||||
/**
|
||||
* 是否码满规定托盘数
|
||||
*/
|
||||
private int is_satisfy;
|
||||
|
||||
}
|
||||
|
||||
@@ -7,4 +7,9 @@ import org.nl.acs.ext.wms.data.PalletizeDto;
|
||||
public class GetPalletizeResponse extends BaseResponse {
|
||||
|
||||
private PalletizeDto palletizeDto;
|
||||
|
||||
/**
|
||||
* 刚托盘上的砖块数量
|
||||
*/
|
||||
private int material_qty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user