| | |
| | | if (null == command) { |
| | | command = new SteCommand(); |
| | | } |
| | | command.setCrnNo(slave.getId()); // 穿梭车编号 |
| | | command.setTaskNo((short) 0); // 工作号 |
| | | command.setAckFinish((short) 1); // 任务完成确认位 |
| | | command.setTaskMode(CrnTaskModeType.NONE); // 任务模式 |
| | | command.setSourcePosX((short)0); // 源库位排 |
| | | command.setSourcePosY((short)0); // 源库位列 |
| | | command.setSourcePosZ((short)0); // 源库位层 |
| | | command.setDestinationPosX((short)0); // 目标库位排 |
| | | command.setDestinationPosY((short)0); // 目标库位列 |
| | | command.setDestinationPosZ((short)0); // 目标库位层 |
| | | // command.setSteNo(slave.getId()); // 穿梭车编号 |
| | | // command.setTaskNo((short) 0); // 工作号 |
| | | // command.setAckFinish((short) 1); // 任务完成确认位 |
| | | // command.setTaskMode(CrnTaskModeType.NONE); // 任务模式 |
| | | // command.setSourcePosX((short)0); // 源库位排 |
| | | // command.setSourcePosY((short)0); // 源库位列 |
| | | // command.setSourcePosZ((short)0); // 源库位层 |
| | | // command.setDestinationPosX((short)0); // 目标库位排 |
| | | // command.setDestinationPosY((short)0); // 目标库位列 |
| | | // command.setDestinationPosZ((short)0); // 目标库位层 |
| | | write(command); |
| | | break; |
| | | default: |
| | |
| | | if (null == steProtocol) { |
| | | steProtocol = new SteProtocol(); |
| | | } |
| | | steProtocol.setMode((short) -1); |
| | | // crnProtocol.setTaskNo((short)0); |
| | | steProtocol.setStatus((short)-1); |
| | | steProtocol.setBay((short)0); |
| | | steProtocol.setLevel((short)0); |
| | | steProtocol.setForkPos((short) -1); |
| | | steProtocol.setLiftPos((short) -1); |
| | | steProtocol.setWalkPos((short)0); |
| | | steProtocol.setLoaded((short)0); |
| | | steProtocol.setAlarm((short)0); |
| | | steProtocol.setXSpeed(0F); |
| | | steProtocol.setYSpeed(0F); |
| | | steProtocol.setZSpeed(0F); |
| | | steProtocol.setXDistance(0F); |
| | | steProtocol.setYDistance(0F); |
| | | steProtocol.setXDuration(0F); |
| | | steProtocol.setYDuration(0F); |
| | | // steProtocol.setMode((short) -1); |
| | | // steProtocol.setTaskNo((short)0); |
| | | // steProtocol.setStatus((short)-1); |
| | | // steProtocol.setBay((short)0); |
| | | // steProtocol.setLevel((short)0); |
| | | // steProtocol.setForkPos((short) -1); |
| | | // steProtocol.setLiftPos((short) -1); |
| | | // steProtocol.setWalkPos((short)0); |
| | | // steProtocol.setLoaded((short)0); |
| | | // steProtocol.setAlarm((short)0); |
| | | // steProtocol.setXSpeed(0F); |
| | | // steProtocol.setYSpeed(0F); |
| | | // steProtocol.setZSpeed(0F); |
| | | // steProtocol.setXDistance(0F); |
| | | // steProtocol.setYDistance(0F); |
| | | // steProtocol.setXDuration(0F); |
| | | // steProtocol.setYDuration(0F); |
| | | } |
| | | |
| | | @Override |