| | |
| | | array[29] = command.getLiftLockShortValue(); |
| | | } |
| | | |
| | | if (array[2] == 0) { |
| | | // 开始任务 |
| | | short[] tmp = new short[2]; |
| | | tmp[0] = array[0]; |
| | | tmp[1] = array[1]; |
| | | array = tmp; |
| | | } |
| | | |
| | | OperateResult result = modbusTcpNet.Write("41088", array);; |
| | | if (result != null && result.IsSuccess) { |
| | | News.info("提升机命令下发[id:{}] >>>>> {}", slave.getId(), JSON.toJSON(command)); |
| | |
| | | command.setRun((short) 1);//升降 |
| | | Short position = LiftLevType.getRealLev(lev);//获取提升机实际楼层数值 |
| | | command.setDistPosition(position); |
| | | command.setSpeed((short) 200); |
| | | command.setHeight2((short) 180); |
| | | command.setHeight3((short) 1645); |
| | | command.setHeight4((short) (2 * 1645)); |
| | | command.setHeight5((short) (3 * 1645)); |
| | | // command.setSpeed((short) 200); |
| | | // command.setHeight2((short) 180); |
| | | // command.setHeight3((short) 1645); |
| | | // command.setHeight4((short) (2 * 1645)); |
| | | // command.setHeight5((short) (3 * 1645)); |
| | | return command; |
| | | } |
| | | |
| | |
| | | command.setLiftNo(liftNo);//提升机号 |
| | | command.setTaskNo(taskNo);//任务号 |
| | | command.setDistPosition(position);//目标楼层 |
| | | command.setSpeed((short) 200); |
| | | command.setHeight2((short) 180); |
| | | command.setHeight3((short) 1645); |
| | | command.setHeight4((short) 3290); |
| | | command.setHeight5((short) 4945); |
| | | // command.setSpeed((short) 200); |
| | | // command.setHeight2((short) 180); |
| | | // command.setHeight3((short) 1645); |
| | | // command.setHeight4((short) 3290); |
| | | // command.setHeight5((short) 4945); |
| | | return command; |
| | | } |
| | | |