add: 烘箱行架增加日志和套轴等待
This commit is contained in:
@@ -250,13 +250,13 @@ public class CasingStationConveyorDeviceDriver extends AbstractOpcDeviceDriver i
|
|||||||
// apply_for_casing_inspection(material1, material2);
|
// apply_for_casing_inspection(material1, material2);
|
||||||
bushingSucess();
|
bushingSucess();
|
||||||
} else if (move != 1) {
|
} else if (move != 1) {
|
||||||
remark += "套管工位没有货";
|
remark = "套管工位没有货";
|
||||||
} else if (task < 1) {
|
} else if (task < 1) {
|
||||||
remark += "纸管库的任务号为空";
|
remark = "纸管库的任务号为空";
|
||||||
} else if (task1 < 1) {
|
} else if (task1 < 1) {
|
||||||
remark += "行架任务为空";
|
remark = "行架任务为空";
|
||||||
} else if (requireSucess) {
|
} else if (requireSucess) {
|
||||||
remark += "requrieSucess为" + requireSucess;
|
remark = "requrieSucess为" + requireSucess;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -577,6 +577,33 @@ public class IndoorManipulatorDeviceDriver extends AbstractOpcDeviceDriver imple
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//异常气胀轴反馈
|
||||||
|
/*if (action == 9) {
|
||||||
|
String task_code = inst1.getTask_code();
|
||||||
|
applyManipulatorActionRequest.setType("9");
|
||||||
|
applyManipulatorActionRequest.setTask_code1(task_code);
|
||||||
|
logServer.deviceExecuteLog(this.device_code, "", "", "异常反馈");
|
||||||
|
applyManipulatorActionResponse = acsToWmsService.applyManipulatorActionRequest(applyManipulatorActionRequest);
|
||||||
|
if (ObjectUtil.isNotEmpty(applyManipulatorActionResponse) && applyManipulatorActionResponse.getstatus() == 200) {
|
||||||
|
logServer.deviceExecuteLog(this.device_code, "", "", "异常反馈完成,响应参数:" + JSON.toJSONString(applyManipulatorActionResponse));
|
||||||
|
Map<String, Object> map = new LinkedHashMap<>();
|
||||||
|
map.put("to_command", 9);
|
||||||
|
this.writing(map);
|
||||||
|
feedbackSucess = true;
|
||||||
|
message = "缓存库放货成功";
|
||||||
|
try {
|
||||||
|
instructionService.cancel(inst1.getInstruction_id());
|
||||||
|
logServer.deviceExecuteLog(this.device_code, "", "", "取消指令完成");
|
||||||
|
TaskDto byTaskCode = taskserver.findByTaskCode(inst1.getTask_code());
|
||||||
|
taskserver.cancel(byTaskCode.getTask_id());
|
||||||
|
logServer.deviceExecuteLog(this.device_code, "", "", "取消任务完成");
|
||||||
|
} catch (Exception e) {
|
||||||
|
message = "取消任务或指令失败,失败原因"+ e.getMessage();
|
||||||
|
logServer.deviceExecuteLog(this.device_code, "", "", "取消任务或指令失败,失败原因"+e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
//放货完成
|
//放货完成
|
||||||
if (mode == 3 && action == 8 && move == 0) {
|
if (mode == 3 && action == 8 && move == 0) {
|
||||||
|
|||||||
@@ -797,6 +797,20 @@ public class OvenGantryManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
|||||||
} else if (this.getAction() == 4) {
|
} else if (this.getAction() == 4) {
|
||||||
action = "放货完成";
|
action = "放货完成";
|
||||||
}
|
}
|
||||||
|
String steps_type = "";
|
||||||
|
if (now_steps_type == 0) {
|
||||||
|
steps_type += "无任务执行";
|
||||||
|
} else if (now_steps_type == 1) {
|
||||||
|
steps_type = "更新指令状态";
|
||||||
|
} else if (now_steps_type == 2) {
|
||||||
|
steps_type = "下发电气信号";
|
||||||
|
}else if(now_steps_type == 3){
|
||||||
|
steps_type = "允许取货";
|
||||||
|
}else if (now_steps_type ==4 ){
|
||||||
|
steps_type += "允许放货";
|
||||||
|
}else if (now_steps_type == 5){
|
||||||
|
steps_type += "放货完成";
|
||||||
|
}
|
||||||
|
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
@@ -815,6 +829,7 @@ public class OvenGantryManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
|||||||
jo.put("is_click", true);
|
jo.put("is_click", true);
|
||||||
jo.put("x", x_position);
|
jo.put("x", x_position);
|
||||||
jo.put("y", y_position);
|
jo.put("y", y_position);
|
||||||
|
jo.put("now_steps_type", steps_type);
|
||||||
return jo;
|
return jo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -248,14 +248,22 @@ public class PluggingUnpluggingMachineDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
requireSucess = true;
|
requireSucess = true;
|
||||||
logServer.deviceExecuteLog(this.device_code, "", "", "申请套轴成功,返回参数:" + applyManipulatorActionResponse);
|
logServer.deviceExecuteLog(this.device_code, "", "", "申请套轴成功,返回参数:" + applyManipulatorActionResponse);
|
||||||
message = "套轴申请成功";
|
message = "套轴申请成功";
|
||||||
|
}else if (ObjectUtils.isNotEmpty(applyManipulatorActionResponse) && "2".equals(applyManipulatorActionResponse.getIs_bushing())){
|
||||||
|
message = applyManipulatorActionResponse.getMessage();
|
||||||
|
Map<String, Object> map = new LinkedHashMap<>();
|
||||||
|
map.put("to_command", 98);
|
||||||
|
this.writing(map);
|
||||||
|
requireSucess = true;
|
||||||
|
message = "等待套轴";
|
||||||
|
logServer.deviceExecuteLog(this.device_code, "", "", "等待套轴,返回参数:" + applyManipulatorActionResponse);
|
||||||
}else {
|
}else {
|
||||||
message = applyManipulatorActionResponse.getMessage();
|
message = applyManipulatorActionResponse.getMessage();
|
||||||
Map<String, Object> map = new LinkedHashMap<>();
|
Map<String, Object> map = new LinkedHashMap<>();
|
||||||
map.put("to_command", 99);
|
map.put("to_command", 99);
|
||||||
this.writing(map);
|
this.writing(map);
|
||||||
requireSucess = true;
|
requireSucess = true;
|
||||||
message = "申请失败";
|
message = "套轴申请失败";
|
||||||
logServer.deviceExecuteLog(this.device_code, "", "", "申请套轴失败,返回参数:" + applyManipulatorActionResponse);
|
logServer.deviceExecuteLog(this.device_code, "", "", "套轴申请失败,返回参数:" + applyManipulatorActionResponse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ public class WmsToAcsController {
|
|||||||
|
|
||||||
@PostMapping("/task")
|
@PostMapping("/task")
|
||||||
@Log(value = "ACS接收WMS任务",isInterfaceLog = true,interfaceLogType= InterfaceLogType.LMS_TO_ACS)
|
@Log(value = "ACS接收WMS任务",isInterfaceLog = true,interfaceLogType= InterfaceLogType.LMS_TO_ACS)
|
||||||
|
|
||||||
@SaIgnore
|
@SaIgnore
|
||||||
public ResponseEntity<Object> createFromWms(@RequestBody String whereJson) {
|
public ResponseEntity<Object> createFromWms(@RequestBody String whereJson) {
|
||||||
return new ResponseEntity<>(wmstoacsService.crateTask(whereJson), HttpStatus.OK);
|
return new ResponseEntity<>(wmstoacsService.crateTask(whereJson), HttpStatus.OK);
|
||||||
@@ -73,7 +72,6 @@ public class WmsToAcsController {
|
|||||||
|
|
||||||
@PostMapping("/action")
|
@PostMapping("/action")
|
||||||
@Log(value = "WMS下发点位信号",isInterfaceLog = true,interfaceLogType= InterfaceLogType.LMS_TO_ACS)
|
@Log(value = "WMS下发点位信号",isInterfaceLog = true,interfaceLogType= InterfaceLogType.LMS_TO_ACS)
|
||||||
|
|
||||||
@SaIgnore
|
@SaIgnore
|
||||||
public ResponseEntity<Object> putAction(@RequestBody String whereJson) throws Exception {
|
public ResponseEntity<Object> putAction(@RequestBody String whereJson) throws Exception {
|
||||||
return new ResponseEntity<>(wmstoacsService.putAction(whereJson), HttpStatus.OK);
|
return new ResponseEntity<>(wmstoacsService.putAction(whereJson), HttpStatus.OK);
|
||||||
|
|||||||
@@ -207,6 +207,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
HongXiangStationDeviceDriver hongXiangStationDeviceDriver;
|
HongXiangStationDeviceDriver hongXiangStationDeviceDriver;
|
||||||
LampThreecolorDeviceDriver lampThreecolorDeviceDriver;
|
LampThreecolorDeviceDriver lampThreecolorDeviceDriver;
|
||||||
SiemensConveyorDeviceDriver siemensConveyorDeviceDriver;
|
SiemensConveyorDeviceDriver siemensConveyorDeviceDriver;
|
||||||
|
PluggingUnpluggingMachineDeviceDriver pluggingUnpluggingMachineDeviceDriver;
|
||||||
if (device.getDeviceDriver() instanceof HongXiangStationDeviceDriver) {
|
if (device.getDeviceDriver() instanceof HongXiangStationDeviceDriver) {
|
||||||
hongXiangStationDeviceDriver = (HongXiangStationDeviceDriver) device.getDeviceDriver();
|
hongXiangStationDeviceDriver = (HongXiangStationDeviceDriver) device.getDeviceDriver();
|
||||||
hongXiangStationDeviceDriver.writing(code, value);
|
hongXiangStationDeviceDriver.writing(code, value);
|
||||||
@@ -219,6 +220,10 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
siemensConveyorDeviceDriver = (SiemensConveyorDeviceDriver) device.getDeviceDriver();
|
siemensConveyorDeviceDriver = (SiemensConveyorDeviceDriver) device.getDeviceDriver();
|
||||||
siemensConveyorDeviceDriver.writing(code, value);
|
siemensConveyorDeviceDriver.writing(code, value);
|
||||||
}
|
}
|
||||||
|
if (device.getDeviceDriver() instanceof PluggingUnpluggingMachineDeviceDriver) {
|
||||||
|
pluggingUnpluggingMachineDeviceDriver = (PluggingUnpluggingMachineDeviceDriver) device.getDeviceDriver();
|
||||||
|
pluggingUnpluggingMachineDeviceDriver.writing(code, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
acs/nladmin-ui/dist.rar
Normal file
BIN
acs/nladmin-ui/dist.rar
Normal file
Binary file not shown.
@@ -749,6 +749,9 @@ export default {
|
|||||||
} else if (val === 'out_qty_arr') {
|
} else if (val === 'out_qty_arr') {
|
||||||
const obj = { name: '出库数量', value: data[val] }
|
const obj = { name: '出库数量', value: data[val] }
|
||||||
this.arr.push(obj)
|
this.arr.push(obj)
|
||||||
|
} else if (val === 'now_steps_type') {
|
||||||
|
const obj = { name: '烘箱执行信号', value: data[val] }
|
||||||
|
this.arr.push(obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user