| | |
| | | crnProtocol.setLoaded(melsecMcNet.getByteTransform().TransInt16(result.Content, 20)); |
| | | crnProtocol.setAlarm(melsecMcNet.getByteTransform().TransInt16(result.Content, 22)); |
| | | crnProtocol.setError1(melsecMcNet.getByteTransform().TransBool(result.Content, 24, 2)); |
| | | crnProtocol.setTemp1(melsecMcNet.getByteTransform().TransInt16(result.Content, 26)); |
| | | crnProtocol.setTemp1(melsecMcNet.getByteTransform().TransBool(result.Content, 26, 2)); |
| | | crnProtocol.setTemp2(melsecMcNet.getByteTransform().TransInt16(result.Content, 28)); |
| | | crnProtocol.setTemp3(melsecMcNet.getByteTransform().TransInt16(result.Content, 30)); |
| | | crnProtocol.setTemp4(melsecMcNet.getByteTransform().TransInt16(result.Content, 32)); |
| | |
| | | System.out.println(MessageFormat.format("【{0}】[id:{1}] >>>>> {2}", DateUtils.convert(new Date()), slave.getId(), JSON.toJSON(command))); |
| | | OutputQueue.CRN.offer(MessageFormat.format("【{0}】[id:{1}] >>>>> 命令下发: {2}", DateUtils.convert(new Date()), slave.getId(), JSON.toJSON(command))); |
| | | |
| | | return; |
| | | } while (false); |
| | | |
| | | |