|
|
@ -306,6 +306,39 @@ public class DeviceCommandGenerator { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 龙门架 x轴相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位 mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle gantryXMoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.gantry_x, CmdAction.move_by, params, "龙门架 x轴移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 龙门架 y轴相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位 mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle gantryYMoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.gantry_y, CmdAction.move_by, params, "龙门架 y轴移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 龙门架 z轴相对移动 |
|
|
|
* |
|
|
|
* @param position 位置 单位 mm |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle gantryZMoveBy(Double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlMotorCmd(CmdDevice.gantry_z, CmdAction.move_by, params, "龙门架 z轴移动"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 龙门架 x轴停止 |
|
|
|
*/ |
|
|
|
public static DeviceCommandBundle gantryXStop() { |
|
|
|