| | |
| | | } |
| | | |
| | | private void execute() { |
| | | ForkLiftAction forkLiftAction = SpringUtils.getBean(ForkLiftAction.class); |
| | | ForkLiftAction forkLiftAction = null; |
| | | try { |
| | | forkLiftAction = SpringUtils.getBean(ForkLiftAction.class); |
| | | }catch (Exception e){} |
| | | if (forkLiftAction == null) { |
| | | return; |
| | | } |
| | |
| | | short[] array = new short[4]; |
| | | array[0] = command.getTaskNo();//任务号 |
| | | array[1] = command.getMode();//任务模式 |
| | | array[2] = command.getPick();//取货数据 |
| | | array[3] = command.getPut();//放货数据 |
| | | array[2] = command.getPut();//放货数据 |
| | | OperateResult result = this.masterThread.write(this.slave.getId(), "write", array); |
| | | if (result.IsSuccess) { |
| | | OperateResult result2 = this.masterThread.write(this.slave.getId(), "writeConfirm", command.getConfirm()); |