|
@ -1,7 +1,10 @@ |
|
|
package com.iflytop.gd.common.cmd; |
|
|
package com.iflytop.gd.common.cmd; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.iflytop.gd.common.enums.cmd.*; |
|
|
|
|
|
|
|
|
import com.iflytop.gd.common.enums.cmd.CmdAction; |
|
|
|
|
|
import com.iflytop.gd.common.enums.cmd.CmdAxis; |
|
|
|
|
|
import com.iflytop.gd.common.enums.cmd.CmdColor; |
|
|
|
|
|
import com.iflytop.gd.common.enums.cmd.CmdDevice; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 生成给设备发送的指令 |
|
|
* 生成给设备发送的指令 |
|
@ -743,86 +746,77 @@ public class DeviceCommandGenerator { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 加液泵 泵1移动 |
|
|
|
|
|
|
|
|
* 加液泵 泵1相对移动 |
|
|
* |
|
|
* |
|
|
* @param direction 方向 forward | backward |
|
|
|
|
|
* @param volume 加液量 单位mL |
|
|
|
|
|
|
|
|
* @param position 加液量 单位mL |
|
|
*/ |
|
|
*/ |
|
|
public static DeviceCommandBundle acidPump1Move(CmdDirection direction, Double volume) { |
|
|
|
|
|
|
|
|
public static DeviceCommandBundle acidPump1MoveBy(Double position) { |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
params.setDirection(direction); |
|
|
|
|
|
params.setVolume(volume); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_1, CmdAction.move, params, "加液泵1 移动"); |
|
|
|
|
|
|
|
|
params.setPosition(position); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_1, CmdAction.move_by, params, "加液泵1 相对移动"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 加液泵 泵2移动 |
|
|
|
|
|
|
|
|
* 加液泵 泵2相对移动 |
|
|
*/ |
|
|
*/ |
|
|
public static DeviceCommandBundle acidPump2Move(CmdDirection direction, Double volume) { |
|
|
|
|
|
|
|
|
public static DeviceCommandBundle acidPump2MoveBy(Double position) { |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
params.setDirection(direction); |
|
|
|
|
|
params.setVolume(volume); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_2, CmdAction.move, params, "加液泵2 移动"); |
|
|
|
|
|
|
|
|
params.setPosition(position); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_2, CmdAction.move_by, params, "加液泵2 相对移动"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 加液泵 泵3移动 |
|
|
|
|
|
|
|
|
* 加液泵 泵3相对移动 |
|
|
*/ |
|
|
*/ |
|
|
public static DeviceCommandBundle acidPump3Move(CmdDirection direction, Double volume) { |
|
|
|
|
|
|
|
|
public static DeviceCommandBundle acidPump3MoveBy(Double position) { |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
params.setDirection(direction); |
|
|
|
|
|
params.setVolume(volume); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_3, CmdAction.move, params, "加液泵3 移动"); |
|
|
|
|
|
|
|
|
params.setPosition(position); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_3, CmdAction.move_by, params, "加液泵3 相对移动"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 加液泵 泵4移动 |
|
|
|
|
|
|
|
|
* 加液泵 泵4相对移动 |
|
|
*/ |
|
|
*/ |
|
|
public static DeviceCommandBundle acidPump4Move(CmdDirection direction, Double volume) { |
|
|
|
|
|
|
|
|
public static DeviceCommandBundle acidPump4MoveBy(Double position) { |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
params.setDirection(direction); |
|
|
|
|
|
params.setVolume(volume); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_4, CmdAction.move, params, "加液泵4 移动"); |
|
|
|
|
|
|
|
|
params.setPosition(position); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_4, CmdAction.move_by, params, "加液泵4 相对移动"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 加液泵 泵5移动 |
|
|
|
|
|
|
|
|
* 加液泵 泵5相对移动 |
|
|
*/ |
|
|
*/ |
|
|
public static DeviceCommandBundle acidPump5Move(CmdDirection direction, Double volume) { |
|
|
|
|
|
|
|
|
public static DeviceCommandBundle acidPump5MoveBy(Double position) { |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
params.setDirection(direction); |
|
|
|
|
|
params.setVolume(volume); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_5, CmdAction.move, params, "加液泵5 移动"); |
|
|
|
|
|
|
|
|
params.setPosition(position); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_5, CmdAction.move_by, params, "加液泵5 相对移动"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 加液泵 泵6移动 |
|
|
|
|
|
|
|
|
* 加液泵 泵6相对移动 |
|
|
*/ |
|
|
*/ |
|
|
public static DeviceCommandBundle acidPump6Move(CmdDirection direction, Double volume) { |
|
|
|
|
|
|
|
|
public static DeviceCommandBundle acidPump6MoveBy(Double position) { |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
params.setDirection(direction); |
|
|
|
|
|
params.setVolume(volume); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_6, CmdAction.move, params, "加液泵6 移动"); |
|
|
|
|
|
|
|
|
params.setPosition(position); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_6, CmdAction.move_by, params, "加液泵6 相对移动"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 加液泵 泵7移动 |
|
|
|
|
|
|
|
|
* 加液泵 泵7相对移动 |
|
|
*/ |
|
|
*/ |
|
|
public static DeviceCommandBundle acidPump7Move(CmdDirection direction, Double volume) { |
|
|
|
|
|
|
|
|
public static DeviceCommandBundle acidPump7MoveBy(Double position) { |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
params.setDirection(direction); |
|
|
|
|
|
params.setVolume(volume); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_7, CmdAction.move, params, "加液泵7 移动"); |
|
|
|
|
|
|
|
|
params.setPosition(position); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_7, CmdAction.move_by, params, "加液泵7 相对移动"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 加液泵 泵8移动 |
|
|
|
|
|
|
|
|
* 加液泵 泵8相对移动 |
|
|
*/ |
|
|
*/ |
|
|
public static DeviceCommandBundle acidPump8Move(CmdDirection direction, Double volume) { |
|
|
|
|
|
|
|
|
public static DeviceCommandBundle acidPump8MoveBy(Double position) { |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
params.setDirection(direction); |
|
|
|
|
|
params.setVolume(volume); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_8, CmdAction.move, params, "加液泵8 移动"); |
|
|
|
|
|
|
|
|
params.setPosition(position); |
|
|
|
|
|
return setInfoCmd(CmdDevice.acid_pump_8, CmdAction.move_by, params, "加液泵8 相对移动"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|