|
|
@ -256,7 +256,6 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
|
String message = null; |
|
|
|
try { |
|
|
|
device_code = this.getDeviceCode(); |
|
|
|
|
|
|
|
mode = this.itemProtocol.getMode(); |
|
|
|
error = this.itemProtocol.getError(); |
|
|
|
move = this.itemProtocol.getMove(); |
|
|
@ -329,7 +328,6 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
|
pressLayerY3_offset = this.itemProtocol.getPressLayerY3_offset(); |
|
|
|
tool_coordinate = this.itemProtocol.getTool_coordinate(); |
|
|
|
tool_coordinate = this.itemProtocol.getTool_coordinate(); |
|
|
|
|
|
|
|
if (mode != last_mode) { |
|
|
|
this.setRequireSucess(false); |
|
|
|
logServer.deviceItemValue(this.device_code, "mode", String.valueOf(mode)); |
|
|
@ -830,7 +828,6 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
|
public synchronized boolean apply_take_full_vehicle() { |
|
|
|
if(move > 0) { |
|
|
|
ApplyTaskRequest request = new ApplyTaskRequest(); |
|
|
|
ApplyDeviceDto applyDeviceDto=new ApplyDeviceDto(); |
|
|
|
request.setDevice_code(this.getDevice_code()); |
|
|
|
request.setRequest_medthod_code(Thread.currentThread().getStackTrace()[1].getMethodName()); |
|
|
|
request.setRequest_medthod_name(RequestMethodEnum.getName(Thread.currentThread().getStackTrace()[1].getMethodName())); |
|
|
@ -850,15 +847,18 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
|
List<String> getDeviceCodeList = this.getExtraDeviceCodes("link_device_code"); |
|
|
|
LnshPalletizingManipulatorSiteDeviceDriver lnshPalletizingManipulatorSiteDeviceDriver; |
|
|
|
for (int i = 0; i < getDeviceCodeList.size(); i++) { |
|
|
|
if(device.getDeviceDriver() instanceof LnshPalletizingManipulatorSiteDeviceDriver){ |
|
|
|
lnshPalletizingManipulatorSiteDeviceDriver=(LnshPalletizingManipulatorSiteDeviceDriver) getDevice().getDeviceDriver(); |
|
|
|
ApplyDeviceDto applyDeviceDto=new ApplyDeviceDto(); |
|
|
|
Device getDevice = deviceAppService.findDeviceByCode(getDeviceCodeList.get(i).toString()); |
|
|
|
if(getDevice.getDeviceDriver() instanceof LnshPalletizingManipulatorSiteDeviceDriver){ |
|
|
|
lnshPalletizingManipulatorSiteDeviceDriver=(LnshPalletizingManipulatorSiteDeviceDriver) getDevice.getDeviceDriver(); |
|
|
|
applyDeviceDto.setQty(String.valueOf(lnshPalletizingManipulatorSiteDeviceDriver.getEncoder_qty())); |
|
|
|
applyDeviceDto.setDevice_code(String.valueOf(lnshPalletizingManipulatorSiteDeviceDriver.getBarcode())); |
|
|
|
} |
|
|
|
applyDeviceDto.setDevice_code(String.valueOf(lnshPalletizingManipulatorSiteDeviceDriver.getDevice_code())); |
|
|
|
applyDeviceDto.setVehicle_code(String.valueOf(lnshPalletizingManipulatorSiteDeviceDriver.getBarcode())); |
|
|
|
} |
|
|
|
listDto.add(applyDeviceDto); |
|
|
|
request.setList(listDto); |
|
|
|
} |
|
|
|
} |
|
|
|
ApplyTaskResponse resp = JSON.toJavaObject(JSONObject.parseObject(acsToWmsService.applyTask(request)),ApplyTaskResponse.class); |
|
|
|
message = RequestMethodEnum.getName("apply_take_full_vehicle") + "apply_take_full_vehicle 接口请求LMS..."; |
|
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|