| | |
| | | * 读取状态 ====> 整块plc |
| | | */ |
| | | private void read() throws InterruptedException { |
| | | // 更新入出库模式 |
| | | updateIoMode(); |
| | | // // 更新入出库模式 |
| | | // updateIoMode(); |
| | | OperateResultExOne<byte[]> result = siemensS7Net.Read("DB100.0", (short) 186); |
| | | if (result.IsSuccess) { |
| | | for (int i = 0; i < 83; i++) { |
| | |
| | | } |
| | | } |
| | | |
| | | OperateResultExOne<Short> result2 = siemensS7Net.ReadInt16("DB200.0"); |
| | | if (result2.IsSuccess) { |
| | | this.ioMode = IoModeType.get(result2.Content); |
| | | } |
| | | // OperateResultExOne<Short> result2 = siemensS7Net.ReadInt16("DB200.0"); |
| | | // if (result2.IsSuccess) { |
| | | // this.ioMode = IoModeType.get(result2.Content); |
| | | // } |
| | | |
| | | if (result.IsSuccess && result0.IsSuccess && result1.IsSuccess) { |
| | | |