| | |
| | | steProtocol.setCrnStopRun(siemensS7Net.getByteTransform().TransInt16(result.Content, 38)); |
| | | steProtocol.setCrnStopFork(siemensS7Net.getByteTransform().TransInt16(result.Content, 40)); |
| | | steProtocol.setCrnAllowRun(siemensS7Net.getByteTransform().TransInt16(result.Content, 42)); |
| | | // steProtocol.setCrnAllowRun(siemensS7Net.getByteTransform().TransInt16(result.Content, 44)); |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | if (!devpThread.charge0 || devpThread.charge1){ |
| | | steProtocol.setChargeStatus((short)1); |
| | | }else { |
| | | steProtocol.setChargeStatus((short)0); |
| | | } |
| | | |
| | | |
| | | OutputQueue.STE.offer(MessageFormat.format("【{0}】[id:{1}] <<<<< 实时数据更新成功",DateUtils.convert(new Date()), slave.getId())); |
| | | |
| | |
| | | steProtocol.setForcedTravel(status[68]); |
| | | steProtocol.setDemoMode(status[69]); |
| | | steProtocol.setBrushConnect(status[70]); |
| | | // if (status[70]){ |
| | | // steProtocol.setChargeStatus((short)1); |
| | | // } |
| | | steProtocol.setTaskManualForbid(status[71]); |
| | | steProtocol.setOnlineManualForbid(status[72]); |
| | | steProtocol.setDevpEmergency(status[73]); |