|
|
@ -33,6 +33,7 @@ public class DeviceCommandGenerator { |
|
|
|
return controlMotorCmd(CmdDevice.door_motor, CmdAction.move_by, params, "门 相对移动"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 门 停止动作 |
|
|
|
*/ |
|
|
@ -57,6 +58,20 @@ public class DeviceCommandGenerator { |
|
|
|
params.setSpeed(speed); |
|
|
|
return setInfoCmd(CmdDevice.door_motor, CmdAction.set, params, "门 设置参数"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 门 失能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle doorDisable() { |
|
|
|
return controlMotorCmd(CmdDevice.door_motor, CmdAction.disable, null, "门 失能"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 门 使能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle doorEnable() { |
|
|
|
return controlMotorCmd(CmdDevice.door_motor, CmdAction.enable, null, "门 使能"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* x轴设置参数 |
|
|
@ -100,7 +115,20 @@ public class DeviceCommandGenerator { |
|
|
|
return controlMotorCmd(CmdDevice.x_motor, CmdAction.origin, null, "x轴回原点"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* z轴 失能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle transferZDisable() { |
|
|
|
return controlMotorCmd(CmdDevice.z_motor, CmdAction.disable, null, "z轴 失能"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* z轴 使能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle transferZEnable() { |
|
|
|
return controlMotorCmd(CmdDevice.z_motor, CmdAction.enable, null, "z轴 使能"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* z轴回原点 |
|
|
|
*/ |
|
|
@ -166,7 +194,20 @@ public class DeviceCommandGenerator { |
|
|
|
public static DeviceCommandBundle transferXStop() { |
|
|
|
return controlMotorCmd(CmdDevice.x_motor, CmdAction.stop, null, "x轴停止"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* x轴 失能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle transferXDisable() { |
|
|
|
return controlMotorCmd(CmdDevice.x_motor, CmdAction.disable, null, "x轴 失能"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* x轴 使能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle transferXEnable() { |
|
|
|
return controlMotorCmd(CmdDevice.x_motor, CmdAction.enable, null, "x轴 使能"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* z轴停止 |
|
|
@ -203,6 +244,20 @@ public class DeviceCommandGenerator { |
|
|
|
params.setPosition(position); |
|
|
|
return controlCmd(CmdDevice.liquid_motor, CmdAction.move_by, params, "加液机械臂 相对移动"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 加液机械臂 失能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle liquidMotorDisable() { |
|
|
|
return controlMotorCmd(CmdDevice.liquid_motor, CmdAction.disable, null, "加液机械臂 失能"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 加液机械臂 使能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle liquidMotorEnable() { |
|
|
|
return controlMotorCmd(CmdDevice.liquid_motor, CmdAction.enable, null, "加液机械臂 使能"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 加液泵设置参数 |
|
|
@ -244,6 +299,20 @@ public class DeviceCommandGenerator { |
|
|
|
return controlCmd(CmdDevice.liquid_pump, CmdAction.stop, params, "加液泵 停止"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 加液泵 失能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle liquidPumpDisable() { |
|
|
|
return controlMotorCmd(CmdDevice.liquid_pump, CmdAction.disable, null, "z轴 失能"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 加液泵 使能 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle liquidPumpEnable() { |
|
|
|
return controlMotorCmd(CmdDevice.liquid_pump, CmdAction.enable, null, "z轴 使能"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 加液泵 开始旋转 |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle liquidPumpStart(CmdDirection direction) { |
|
|
@ -266,10 +335,16 @@ public class DeviceCommandGenerator { |
|
|
|
* 四路电磁控制阀关闭 |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle valveClose() { |
|
|
|
return controlCmd(CmdDevice.liquid_valve, CmdAction.close, null, "电磁转换阀 转换"); |
|
|
|
return controlCmd(CmdDevice.liquid_valve, CmdAction.close, null, "电磁转换阀 关闭"); |
|
|
|
|
|
|
|
} |
|
|
|
/** |
|
|
|
* 四路电磁控制阀转获取状态 |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle getValveInfo(Integer channel) { |
|
|
|
return controlCmd(CmdDevice.liquid_valve, CmdAction.get, null, "电磁转换阀 获取状态"); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 风扇 1打开 |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle fan1Open() { |
|
|
@ -430,17 +505,16 @@ public class DeviceCommandGenerator { |
|
|
|
/** |
|
|
|
* 蜂鸣器 开 |
|
|
|
* |
|
|
|
* @param |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle beepOpen() { |
|
|
|
return controlCmd(CmdDevice.beep, CmdAction.open, null, "三色灯 开启"); |
|
|
|
return controlCmd(CmdDevice.beep, CmdAction.open, null, "蜂鸣器 开启"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 蜂鸣器 关 |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle beepClose() { |
|
|
|
return controlCmd(CmdDevice.beep, CmdAction.close, null, "三色灯 关闭"); |
|
|
|
return controlCmd(CmdDevice.beep, CmdAction.close, null, "蜂鸣器 关闭"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -462,11 +536,11 @@ public class DeviceCommandGenerator { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取托盘状态 todo 文档action是heater_tray |
|
|
|
* 获取传感器状态 |
|
|
|
* |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle getTrayStatus() { |
|
|
|
return getInfoCmd(CmdDevice.sensor, "获取托盘状态"); |
|
|
|
return getInfoCmd(CmdDevice.sensor, "获取传感器状态"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|