|
|
@ -257,15 +257,15 @@ public class TransferModuleService { |
|
|
|
* 转运机械臂X轴相对移动到指定点 |
|
|
|
*/ |
|
|
|
public void transferXMoveBy(String cmdId, String cmdCode, double position) throws Exception { |
|
|
|
Double lowSpeed = systemConfigService.getSystemConfigDoubleByCode(SystemConfigCode.z_move_in_low_speed);//进入卡槽的速度 |
|
|
|
Double normalSpeed = systemConfigService.getSystemConfigDoubleByCode(SystemConfigCode.z_move_in_normal_speed);//正常的速度 |
|
|
|
Double lowSpeed = systemConfigService.getSystemConfigDoubleByCode(SystemConfigCode.x_move_in_low_speed);//进入卡槽的速度 |
|
|
|
Double normalSpeed = systemConfigService.getSystemConfigDoubleByCode(SystemConfigCode.x_move_in_normal_speed);//正常的速度 |
|
|
|
if (lowSpeed == null) { |
|
|
|
lowSpeed = 30.0; |
|
|
|
} |
|
|
|
if (normalSpeed == null) { |
|
|
|
lowSpeed = 100.0; |
|
|
|
} |
|
|
|
DeviceCommandBundle deviceLowSpeedSetCommand = DeviceCommandGenerator.transferZSet(lowSpeed); |
|
|
|
DeviceCommandBundle deviceLowSpeedSetCommand = DeviceCommandGenerator.transferXSet(lowSpeed); |
|
|
|
CommandFuture deviceSetLowSpeedCommandFuture = deviceCommandService.sendCommand(cmdId, cmdCode, deviceLowSpeedSetCommand); |
|
|
|
CommandUtil.wait(deviceSetLowSpeedCommandFuture); |
|
|
|
|
|
|
@ -273,7 +273,7 @@ public class TransferModuleService { |
|
|
|
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdId, cmdCode, deviceCommand); |
|
|
|
CommandUtil.wait(deviceCommandFuture); |
|
|
|
|
|
|
|
DeviceCommandBundle deviceNormalSpeedSetCommand = DeviceCommandGenerator.transferZSet(normalSpeed); |
|
|
|
DeviceCommandBundle deviceNormalSpeedSetCommand = DeviceCommandGenerator.transferXSet(normalSpeed); |
|
|
|
CommandFuture deviceNormalSpeedSetCommandFuture = deviceCommandService.sendCommand(cmdId, cmdCode, deviceNormalSpeedSetCommand); |
|
|
|
CommandUtil.wait(deviceNormalSpeedSetCommandFuture); |
|
|
|
|
|
|
|