rev
This commit is contained in:
@@ -143,8 +143,12 @@ public class StandardManipulatorStackingSiteDeviceDriver extends AbstractOpcDevi
|
|||||||
io_action = this.itemProtocol.getIoAction();
|
io_action = this.itemProtocol.getIoAction();
|
||||||
|
|
||||||
if (mode != last_mode) {
|
if (mode != last_mode) {
|
||||||
|
if(last_mode != 0 && mode !=0 ){
|
||||||
this.setRequireSucess(false);
|
this.setRequireSucess(false);
|
||||||
this.execute_log.setResource(this.device_code, this.device.getDevice_name());
|
this.execute_log.setResource(this.device_code, this.device.getDevice_name());
|
||||||
|
this.execute_log.log("设备:" + device_code + ",last_mode=" + last_mode +"复位请求标记");
|
||||||
|
}
|
||||||
|
this.execute_log.setResource(this.device_code, this.device.getDevice_name());
|
||||||
this.execute_log.log("设备:" + device_code + ",last_mode -> mode:" + last_mode + "->" + mode);
|
this.execute_log.log("设备:" + device_code + ",last_mode -> mode:" + last_mode + "->" + mode);
|
||||||
}
|
}
|
||||||
if (move != last_move) {
|
if (move != last_move) {
|
||||||
@@ -410,6 +414,7 @@ public class StandardManipulatorStackingSiteDeviceDriver extends AbstractOpcDevi
|
|||||||
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
||||||
JSONObject json = JSONObject.fromObject(dto);
|
JSONObject json = JSONObject.fromObject(dto);
|
||||||
wo.insert(json);
|
wo.insert(json);
|
||||||
|
this.writing(1,this.mode);
|
||||||
this.setRequireSucess(true);
|
this.setRequireSucess(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -476,6 +481,7 @@ public class StandardManipulatorStackingSiteDeviceDriver extends AbstractOpcDevi
|
|||||||
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
||||||
JSONObject json = JSONObject.fromObject(dto);
|
JSONObject json = JSONObject.fromObject(dto);
|
||||||
wo.insert(json);
|
wo.insert(json);
|
||||||
|
this.writing(1,this.mode);
|
||||||
this.setRequireSucess(true);
|
this.setRequireSucess(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -550,6 +556,7 @@ public class StandardManipulatorStackingSiteDeviceDriver extends AbstractOpcDevi
|
|||||||
JSONObject json = JSONObject.fromObject(dto);
|
JSONObject json = JSONObject.fromObject(dto);
|
||||||
wo.insert(json);
|
wo.insert(json);
|
||||||
this.setRequireSucess(true);
|
this.setRequireSucess(true);
|
||||||
|
this.writing(1,this.mode);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -659,6 +666,7 @@ public class StandardManipulatorStackingSiteDeviceDriver extends AbstractOpcDevi
|
|||||||
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
||||||
JSONObject json = JSONObject.fromObject(dto);
|
JSONObject json = JSONObject.fromObject(dto);
|
||||||
wo.insert(json);
|
wo.insert(json);
|
||||||
|
this.writing(1,this.mode);
|
||||||
this.setRequireSucess(true);
|
this.setRequireSucess(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -736,6 +744,7 @@ public class StandardManipulatorStackingSiteDeviceDriver extends AbstractOpcDevi
|
|||||||
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
||||||
JSONObject json = JSONObject.fromObject(dto);
|
JSONObject json = JSONObject.fromObject(dto);
|
||||||
wo.insert(json);
|
wo.insert(json);
|
||||||
|
this.writing(1,this.mode);
|
||||||
this.setRequireSucess(true);
|
this.setRequireSucess(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -808,6 +817,7 @@ public class StandardManipulatorStackingSiteDeviceDriver extends AbstractOpcDevi
|
|||||||
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
||||||
JSONObject json = JSONObject.fromObject(dto);
|
JSONObject json = JSONObject.fromObject(dto);
|
||||||
wo.insert(json);
|
wo.insert(json);
|
||||||
|
this.writing(1,this.mode);
|
||||||
this.setRequireSucess(true);
|
this.setRequireSucess(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -880,6 +890,7 @@ public class StandardManipulatorStackingSiteDeviceDriver extends AbstractOpcDevi
|
|||||||
JSONObject json = JSONObject.fromObject(dto);
|
JSONObject json = JSONObject.fromObject(dto);
|
||||||
wo.insert(json);
|
wo.insert(json);
|
||||||
this.setRequireSucess(true);
|
this.setRequireSucess(true);
|
||||||
|
this.writing(1,this.mode);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -978,6 +989,7 @@ public class StandardManipulatorStackingSiteDeviceDriver extends AbstractOpcDevi
|
|||||||
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
WQLObject wo = WQLObject.getWQLObject("acs_task");
|
||||||
JSONObject json = JSONObject.fromObject(dto);
|
JSONObject json = JSONObject.fromObject(dto);
|
||||||
wo.insert(json);
|
wo.insert(json);
|
||||||
|
this.writing(1,this.mode);
|
||||||
this.setRequireSucess(true);
|
this.setRequireSucess(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user