|
|
@ -137,8 +137,8 @@ public class NozzlePipelinePreFill implements CommandHandler { |
|
|
|
//3.xy轴移动到废液位置 |
|
|
|
latch = new CountDownLatch(2); |
|
|
|
deviceMessageHandler.setLatch(latch); |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.SEND, "轴移动到废液位置"), MediaType.APPLICATION_JSON); |
|
|
|
CMDToDevice motorXPositionSetCmdToDevice = DeviceCommandGenerator.motor_x_position_set(173.08, 2.0);//生成指令 移动x轴到指定位置 (TODO) 废液桶X轴位置应当可以配置 |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.SEND, "x轴移动到废液位置"), MediaType.APPLICATION_JSON); |
|
|
|
CMDToDevice motorXPositionSetCmdToDevice = DeviceCommandGenerator.motor_x_position_set(173.08);//生成指令 移动x轴到指定位置 (TODO) 废液桶X轴位置应当可以配置 |
|
|
|
CommandFuture motorXPositionSetCmdToDeviceFuture = new CommandFuture(); |
|
|
|
motorXPositionSetCmdToDeviceFuture.setCmdToDevice(motorXPositionSetCmdToDevice); |
|
|
|
Integer motorXPositionSetCmdToDeviceCmdId = motorXPositionSetCmdToDevice.getCmdId(); |
|
|
@ -169,7 +169,7 @@ public class NozzlePipelinePreFill implements CommandHandler { |
|
|
|
} |
|
|
|
|
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "移动x轴到指定位置指令反馈", motorXPositionSetCmdToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
CMDToDevice motorYPositionSetCMDToDevice = DeviceCommandGenerator.motor_y_position_set(75.0, 2.0);//移动y轴到指定位置 (TODO) 废液桶Y轴位置应当可以配置 |
|
|
|
CMDToDevice motorYPositionSetCMDToDevice = DeviceCommandGenerator.motor_y_position_set(75.0);//移动y轴到指定位置 (TODO) 废液桶Y轴位置应当可以配置 |
|
|
|
CommandFuture motorYPositionSetCMDToDeviceFuture = new CommandFuture(); |
|
|
|
motorYPositionSetCMDToDeviceFuture.setCmdToDevice(motorYPositionSetCMDToDevice); |
|
|
|
Integer motorYPositionSetCMDToDeviceCmdId = motorYPositionSetCMDToDevice.getCmdId(); |
|
|
@ -209,7 +209,7 @@ public class NozzlePipelinePreFill implements CommandHandler { |
|
|
|
latch = new CountDownLatch(1); |
|
|
|
deviceMessageHandler.setLatch(latch); |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.SEND, "下降z轴高度,防止飞溅"), MediaType.APPLICATION_JSON); |
|
|
|
CMDToDevice motorZPositionSetDownCmdToDevice = DeviceCommandGenerator.motor_z_position_set(70.0, 2.0);//生成指令 移动z轴到指定位置 (TODO) 废液桶Y轴位置应当可以配置 |
|
|
|
CMDToDevice motorZPositionSetDownCmdToDevice = DeviceCommandGenerator.motor_z_position_set(70.0);//生成指令 移动z轴到指定位置 (TODO) 废液桶Y轴位置应当可以配置 |
|
|
|
CommandFuture motorZPositionSetDownCmdToDeviceFuture = new CommandFuture(); |
|
|
|
motorZPositionSetDownCmdToDeviceFuture.setCmdToDevice(motorZPositionSetDownCmdToDevice); |
|
|
|
Integer motorZPositionSetDownCmdToDeviceCmdId = motorZPositionSetDownCmdToDevice.getCmdId(); |
|
|
@ -313,7 +313,7 @@ public class NozzlePipelinePreFill implements CommandHandler { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "开启喷嘴阀指令反馈", nozzleValveOpenCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
//7.设置注射泵速度,推注射泵 |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.SEND, "设置注射泵速度,推注射泵"), MediaType.APPLICATION_JSON); |
|
|
|
CMDToDevice syringePumpInjectionVolumeSetCMDToDevice = DeviceCommandGenerator.syringe_pump_forward(1.0);//推动移动注射泵 |
|
|
|
CMDToDevice syringePumpInjectionVolumeSetCMDToDevice = DeviceCommandGenerator.syringe_pump_forward(speed);//推动移动注射泵 |
|
|
|
CommandFuture syringePumpInjectionVolumeSetCMDToDeviceFuture = new CommandFuture(); |
|
|
|
syringePumpInjectionVolumeSetCMDToDeviceFuture.setCmdToDevice(syringePumpInjectionVolumeSetCMDToDevice); |
|
|
|
Integer syringePumpInjectionVolumeSetCMDToDeviceCmdId = syringePumpInjectionVolumeSetCMDToDevice.getCmdId(); |
|
|
|