| | |
| | | return; |
| | | } |
| | | command.setCrnNo(slave.getId()); |
| | | short[] array = new short[9]; |
| | | short[] array = new short[10]; |
| | | array[0] = command.getStatus(); |
| | | array[1] = command.getSourceRow(); // 排 |
| | | array[2] = command.getSourceBay(); // 列 |
| | |
| | | array[6] = command.getDestinationPosBay(); // 列 |
| | | array[7] = command.getDestinationPosLev(); // 层 |
| | | array[8] = command.getDestinationSta(); // 目标位置站号 |
| | | OperateResult result = melsecMcNet.Write("100", array); |
| | | |
| | | try { |
| | | // 日志记录 |
| | |
| | | bean.insert(basCrnOpt); |
| | | } catch (Exception ignore) {} |
| | | |
| | | OperateResult result = melsecMcNet.Write("100", array); |
| | | if (result.IsSuccess) { |
| | | log.info("堆垛机命令下发[id:{}] >>>>> {}", slave.getId(), JSON.toJSON(command)); |
| | | OutputQueue.CRN.offer(MessageFormat.format("【{0}】[id:{1}] >>>>> 命令下发: {2}", DateUtils.convert(new Date()), slave.getId(), JSON.toJSON(command))); |