|
@ -660,6 +660,42 @@ public class DeviceCommandUtilService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
* 停止泵旋转 |
|
|
|
|
|
*/ |
|
|
|
|
|
public void acidPumpStop(String cmdId, String cmdCode, AcidPumpDeviceCode acidPumpDevice) throws Exception { |
|
|
|
|
|
DeviceCommandBundle deviceCommand; |
|
|
|
|
|
switch (acidPumpDevice) { |
|
|
|
|
|
case acid_pump_01 -> { |
|
|
|
|
|
deviceCommand = DeviceCommandGenerator.acidPump1Stop(); |
|
|
|
|
|
} |
|
|
|
|
|
case acid_pump_02 -> { |
|
|
|
|
|
deviceCommand = DeviceCommandGenerator.acidPump2Stop(); |
|
|
|
|
|
} |
|
|
|
|
|
case acid_pump_03 -> { |
|
|
|
|
|
deviceCommand = DeviceCommandGenerator.acidPump3Stop(); |
|
|
|
|
|
} |
|
|
|
|
|
case acid_pump_04 -> { |
|
|
|
|
|
deviceCommand = DeviceCommandGenerator.acidPump4Stop(); |
|
|
|
|
|
} |
|
|
|
|
|
case acid_pump_05 -> { |
|
|
|
|
|
deviceCommand = DeviceCommandGenerator.acidPump5Stop(); |
|
|
|
|
|
} |
|
|
|
|
|
case acid_pump_06 -> { |
|
|
|
|
|
deviceCommand = DeviceCommandGenerator.acidPump6Stop(); |
|
|
|
|
|
} |
|
|
|
|
|
case acid_pump_07 -> { |
|
|
|
|
|
deviceCommand = DeviceCommandGenerator.acidPump7Stop(); |
|
|
|
|
|
} |
|
|
|
|
|
case acid_pump_08 -> { |
|
|
|
|
|
deviceCommand = DeviceCommandGenerator.acidPump8Stop(); |
|
|
|
|
|
} |
|
|
|
|
|
default -> throw new RuntimeException("index 未找到"); |
|
|
|
|
|
} |
|
|
|
|
|
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdId, cmdCode, deviceCommand); |
|
|
|
|
|
commandWait(deviceCommandFuture); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
* 添加溶液 |
|
|
* 添加溶液 |
|
|
*/ |
|
|
*/ |
|
|
public void acidPumpMoveBy(AcidPumpDeviceCode acidPumpDevice, double position) throws Exception { |
|
|
public void acidPumpMoveBy(AcidPumpDeviceCode acidPumpDevice, double position) throws Exception { |
|
|