机械手任务完成更新组盘为已完成
This commit is contained in:
@@ -225,6 +225,15 @@ public class HfKilnManipulatorDeviceDriver extends AbstractOpcDeviceDriver imple
|
|||||||
if (inst2 != null) {
|
if (inst2 != null) {
|
||||||
if (StrUtil.equals(inst2.getInstruction_status(), "1")) {
|
if (StrUtil.equals(inst2.getInstruction_status(), "1")) {
|
||||||
this.finish_instruction(inst2);
|
this.finish_instruction(inst2);
|
||||||
|
JSONObject json = new JSONObject();
|
||||||
|
// Device device = appService.findDeviceByAddress(String.valueOf(this.locate));
|
||||||
|
//点位
|
||||||
|
// json.put("device",device.getDevice_code());
|
||||||
|
//条码
|
||||||
|
json.put("barcode",this.barcode);
|
||||||
|
//2-更新托盘状态为已拆垛
|
||||||
|
json.put("state",2);
|
||||||
|
JSONObject resp = acsToWmsService.updateKiln(json);
|
||||||
logServer.deviceInfo("反馈电气信号", this.getDevice_code(), "机械手任务完成,开始反馈电气信号");
|
logServer.deviceInfo("反馈电气信号", this.getDevice_code(), "机械手任务完成,开始反馈电气信号");
|
||||||
this.writing("to_onset", "0");
|
this.writing("to_onset", "0");
|
||||||
this.writing("to_target", "0");
|
this.writing("to_target", "0");
|
||||||
|
|||||||
@@ -598,7 +598,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
case 2:{
|
case 2:{
|
||||||
JSONObject json = wo.query("vehicle_code ='" + vehicle_code + "' AND is_delete = 0").uniqueResult(0);
|
JSONObject json = wo.query("vehicle_code ='" + vehicle_code + "' AND is_delete = 0").uniqueResult(0);
|
||||||
// 将托盘置为已拆垛并删除,供后续重复使用
|
// 将托盘置为已拆垛并删除,供后续重复使用
|
||||||
json.put("kiln_code", kiln_code);
|
// json.put("kiln_code", kiln_code);
|
||||||
json.put("region_code", 3);
|
json.put("region_code", 3);
|
||||||
json.put("is_delete", 1);
|
json.put("is_delete", 1);
|
||||||
wo.update(json);
|
wo.update(json);
|
||||||
|
|||||||
Reference in New Issue
Block a user