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