| | |
| | | jarProtocol.setLeftDoorClose(0);//close the left door //进料门 |
| | | jarProtocol.setRightDoorOpen(0);//open the right door //出料门 |
| | | jarProtocol.setRightDoorClose(0);//close the right door //出料门 |
| | | |
| | | jarProtocol.setJarTemperature(0.0F); |
| | | return; |
| | | } |
| | | OperateResultExOne<byte[]> result = siemensS7Net.Read("V300", (short) 26); |
| | | OperateResultExOne<byte[]> result = siemensS7Net.Read("V300", (short) 30); |
| | | if (result.IsSuccess) { |
| | | if (null == jarProtocol) { |
| | | jarProtocol = new JarProtocol(); |
| | |
| | | jarProtocol.setMode((int)siemensS7Net.getByteTransform().TransInt16(result.Content, 12));//模式 |
| | | jarProtocol.setJarErr((int)siemensS7Net.getByteTransform().TransInt16(result.Content, 14));//异常码 |
| | | jarProtocol.setStatus(siemensS7Net.getByteTransform().TransInt16(result.Content, 16));//状态 |
| | | jarProtocol.setJarTemperature(siemensS7Net.getByteTransform().TransSingle(result.Content, 26));//温度 |
| | | |
| | | jarProtocol.setAutoing(siemensS7Net.getByteTransform().TransInt16(result.Content, 12) == 2);//自动 |
| | | |
| | |
| | | String resultV2 = null; |
| | | short resultS2 = 0; |
| | | |
| | | switch (command.getTaskMode()){ |
| | | switch (command.getTaskModeType().id){ |
| | | case 1: |
| | | case 2: |
| | | case 3: |