| | |
| | | jarProtocol = new JarProtocol(); |
| | | jarProtocol.setJarNo(slave.getId()); |
| | | } |
| | | jarProtocol.setJarNo(slave.getId()); |
| | | jarProtocol.setMode(2);//模式 |
| | | jarProtocol.setStatus((short)0);//状态 |
| | | jarProtocol.setAutoing(true);//自动 |
| | |
| | | jarProtocol = new JarProtocol(); |
| | | jarProtocol.setJarNo(slave.getId()); |
| | | } |
| | | jarProtocol.setJarNo(slave.getId()); |
| | | if (slave.getId() == 1 || slave.getId() == 3){ |
| | | jarProtocol.setRightDoor(siemensS7Net.getByteTransform().TransInt16(result.Content, 0) != 0);//左门状态 //出料门 |
| | | jarProtocol.setLeftDoor(siemensS7Net.getByteTransform().TransInt16(result.Content, 2) != 0);//右门状态 //进料门 |