| | |
| | | if (result1.IsSuccess) { |
| | | for (int i = 0; i < staNoSize; i++) { |
| | | Integer siteId = staNos.get(i); // 站点编号 |
| | | boolean[] status = siemensS7Net.getByteTransform().TransBool(result1.Content, i*8+6, 1); |
| | | boolean[] status = siemensS7Net.getByteTransform().TransBool(result1.Content, i*8+6, 2); |
| | | StaProtocol staProtocol = station.get(siteId); |
| | | staProtocol.setAutoing(status[0]); // 自动 |
| | | staProtocol.setLoading(status[1]); // 有物 |
| | |
| | | staProtocol.setFullPlt(status[5]); // 满托盘 |
| | | staProtocol.setHigh(status[6]); // 高库位 |
| | | staProtocol.setLow(status[7]); // 低库位 |
| | | staProtocol.setEmptyPalletRequire(status[8]); // 空托盘需求信号 |
| | | staProtocol.setEmptyOutPalletRequire(status[8]); // 空托盘可出需求信号 |
| | | staProtocol.setEmptyInPalletRequire(status[9]); // 空托盘可入需求信号 |
| | | |
| | | if (!staProtocol.isPakMk() && !staProtocol.isLoading()) { |
| | | staProtocol.setPakMk(true); |