Merge branch 'master' of http://121.40.234.130:8899/root/lanzhouhailiang_one
This commit is contained in:
@@ -397,7 +397,12 @@ public class IndoorManipulatorDeviceDriver extends AbstractOpcDeviceDriver imple
|
||||
try {
|
||||
this.checkcontrol(itemMap);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
this.checkcontrol(itemMap);
|
||||
} catch (Exception ex) {
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
}
|
||||
logServer.deviceExecuteLog(this.getDevice().getDevice_code(), "", "", "下发多个电气信号:" + itemMap);
|
||||
}
|
||||
|
||||
@@ -161,6 +161,11 @@ public class PluggingUnpluggingMachineDeviceDriver extends AbstractOpcDeviceDriv
|
||||
pullingSucess();
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
if (task1 > 0 && !requireSucess) {
|
||||
deliveryCompleted();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -174,6 +179,28 @@ public class PluggingUnpluggingMachineDeviceDriver extends AbstractOpcDeviceDriv
|
||||
last_to_command = to_command;
|
||||
}
|
||||
|
||||
/**
|
||||
* 取货完成
|
||||
*/
|
||||
private void deliveryCompleted() {
|
||||
ApplyManipulatorActionRequest applyManipulatorActionRequest = new ApplyManipulatorActionRequest();
|
||||
applyManipulatorActionRequest.setAction("1");
|
||||
applyManipulatorActionRequest.setTask_code1(String.valueOf(task1));
|
||||
ApplyManipulatorActionResponse applyManipulatorActionResponse = acsToWmsService.actionFinishRequest(applyManipulatorActionRequest);
|
||||
if (applyManipulatorActionResponse.getstatus() == 200) {
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "插拔机取货完成,请求成功响应参数:" + JSON.toJSONString(applyManipulatorActionResponse));
|
||||
Map<String, Object> map = new LinkedHashMap<>();
|
||||
map.put("to_command", 7);
|
||||
this.writing(map);
|
||||
requireSucess = true;
|
||||
message = "缓存库放货成功";
|
||||
} else {
|
||||
requireSucess = false;
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "插拔机取货完成,请求失败响应参数:" + JSON.toJSONString(applyManipulatorActionResponse));
|
||||
message = "缓存库放货失败";
|
||||
}
|
||||
}
|
||||
|
||||
private synchronized void pullingSucess() {
|
||||
List list = new ArrayList();
|
||||
ApplyManipulatorActionRequest applyManipulatorActionRequest = new ApplyManipulatorActionRequest();
|
||||
|
||||
@@ -65,10 +65,10 @@ public class RgvDeviceDriver extends AbstractOpcDeviceDriver implements DeviceDr
|
||||
int last_move1 = 0;
|
||||
Integer move2 = 0;
|
||||
Integer last_move2 = 0;
|
||||
float qty1 = 0f;
|
||||
float last_qty1 = 0f;
|
||||
float qty2 = 0f;
|
||||
float last_qty2 = 0f;
|
||||
Float qty1 = 0f;
|
||||
Float last_qty1 = 0f;
|
||||
Float qty2 = 0f;
|
||||
Float last_qty2 = 0f;
|
||||
|
||||
int task = 0;
|
||||
int last_task = 0;
|
||||
@@ -117,14 +117,14 @@ public class RgvDeviceDriver extends AbstractOpcDeviceDriver implements DeviceDr
|
||||
if(!move2.equals(last_move2)){
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号move2:" + last_move2 + "->" + move2);
|
||||
}
|
||||
if(qty1 != last_qty1){
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号move2:" + last_qty1 + "->" + qty1);
|
||||
if(!qty1.equals(last_qty1)){
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号qty1:" + last_qty1 + "->" + qty1);
|
||||
}
|
||||
if(qty2 != last_qty2){
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号move2:" + last_qty2 + "->" + qty2);
|
||||
if(!qty2.equals(last_qty2)){
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号qty2:" + last_qty2 + "->" + qty2);
|
||||
}
|
||||
if(task != last_task){
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号move2:" + last_task + "->" + task);
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号task:" + last_task + "->" + task);
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ public class RgvDeviceDriver extends AbstractOpcDeviceDriver implements DeviceDr
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
if (task > 0 && !requireSucess && (qty1 > 0 || qty2 > 0)) {
|
||||
if (task > 0 && !requireSucess) {
|
||||
manualFeedbackQty();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -599,13 +599,7 @@ export default {
|
||||
device_code: '',
|
||||
material_code: '',
|
||||
qty: ''
|
||||
}/* ,
|
||||
{
|
||||
device_code: '',
|
||||
material_code: '',
|
||||
qty: ''
|
||||
} */
|
||||
]
|
||||
}]
|
||||
},
|
||||
rules: {
|
||||
start_height: [
|
||||
|
||||
Reference in New Issue
Block a user