diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/pull_head_manipulator/PullHeadManipulatorDeviceDriver.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/pull_head_manipulator/PullHeadManipulatorDeviceDriver.java index bb5811cad..be1cb27e4 100644 --- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/pull_head_manipulator/PullHeadManipulatorDeviceDriver.java +++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/pull_head_manipulator/PullHeadManipulatorDeviceDriver.java @@ -253,7 +253,7 @@ public class PullHeadManipulatorDeviceDriver extends AbstractOpcDeviceDriver imp String task_code = inst.getTask_code(); manipulatorApplyPointRequest.setType("1"); manipulatorApplyPointRequest.setTask_code(task_code); - if (to_getpoint == 0) { + if (toCommand == 0 || to_getpoint == 0) { manipulatorApplyPointResponse = acsToWmsService.manipulatorApplyPointRequest(manipulatorApplyPointRequest); if (manipulatorApplyPointResponse.getstatus() == 200) { LuceneLogDto logDto1 = LuceneLogDto.builder() @@ -302,7 +302,7 @@ public class PullHeadManipulatorDeviceDriver extends AbstractOpcDeviceDriver imp String task_code = inst.getTask_code(); manipulatorApplyPointRequest.setType("2"); manipulatorApplyPointRequest.setTask_code(task_code); - if (to_putpoint == 0) { + if (toCommand == 0 || to_putpoint == 0) { manipulatorApplyPointResponse = acsToWmsService.manipulatorApplyPointRequest(manipulatorApplyPointRequest); if (manipulatorApplyPointResponse.getstatus() == 200) { LuceneLogDto logDto1 = LuceneLogDto.builder()