|
|
@ -20,6 +20,17 @@ public class DeviceCommandGenerator { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 门 相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle doorMoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.door_motor, CmdAction.move_by, params, "门 相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 门 停止动作 |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle doorStop() { |
|
|
@ -36,12 +47,10 @@ public class DeviceCommandGenerator { |
|
|
|
/** |
|
|
|
* 门 设置参数 |
|
|
|
* |
|
|
|
* @param current 电流 [0-31] |
|
|
|
* @param speed 速度 单位 mm/s |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle doorSet(Integer current, Double speed) { |
|
|
|
public static DeviceCommandBundle doorSet(Double speed) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setCurrent(current); |
|
|
|
params.setSpeed(speed); |
|
|
|
return setInfoCmd(CmdDevice.door_motor, CmdAction.set, null, "门 设置参数"); |
|
|
|
} |
|
|
@ -85,6 +94,17 @@ public class DeviceCommandGenerator { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 拍子升降电机 相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle trayMotorMoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.tray_motor, CmdAction.move_by, params, "拍子升降电机 相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 拍子升降电机 停止移动 |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle trayMotorStop() { |
|
|
@ -313,7 +333,7 @@ public class DeviceCommandGenerator { |
|
|
|
public static DeviceCommandBundle gantryXMoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.gantry_x, CmdAction.move_by, params, "龙门架 x轴移动"); |
|
|
|
return controlMotorCmd(CmdDevice.gantry_x, CmdAction.move_by, params, "龙门架 x轴相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -324,7 +344,7 @@ public class DeviceCommandGenerator { |
|
|
|
public static DeviceCommandBundle gantryYMoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.gantry_y, CmdAction.move_by, params, "龙门架 y轴移动"); |
|
|
|
return controlMotorCmd(CmdDevice.gantry_y, CmdAction.move_by, params, "龙门架 y轴相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -335,7 +355,7 @@ public class DeviceCommandGenerator { |
|
|
|
public static DeviceCommandBundle gantryZMoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.gantry_z, CmdAction.move_by, params, "龙门架 z轴移动"); |
|
|
|
return controlMotorCmd(CmdDevice.gantry_z, CmdAction.move_by, params, "龙门架 z轴相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -546,6 +566,72 @@ public class DeviceCommandGenerator { |
|
|
|
return controlMotorCmd(CmdDevice.heater_motor_6, CmdAction.move, params, "加热区顶升电机 加热位6移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 加热区顶升电机 加热位1相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位 mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle heaterMotor1MoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.heater_motor_1, CmdAction.move_by, params, "加热区顶升电机 加热位1相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 加热区顶升电机 加热位2相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位 mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle heaterMotor2MoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.heater_motor_2, CmdAction.move_by, params, "加热区顶升电机 加热位2相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 加热区顶升电机 加热位3相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位 mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle heaterMotor3MoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.heater_motor_3, CmdAction.move_by, params, "加热区顶升电机 加热位3相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 加热区顶升电机 加热位4相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位 mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle heaterMotor4MoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.heater_motor_4, CmdAction.move_by, params, "加热区顶升电机 加热位4相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 加热区顶升电机 加热位5相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位 mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle heaterMotor5MoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.heater_motor_5, CmdAction.move_by, params, "加热区顶升电机 加热位5相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 加热区顶升电机 加热位6相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位 mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle heaterMotor6MoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.heater_motor_6, CmdAction.move_by, params, "加热区顶升电机 加热位6相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 加热区顶升电机 加热位1停止 |
|
|
|