| | |
| | | add(1006); |
| | | add(1007); |
| | | |
| | | }}; |
| | | |
| | | public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{ |
| | | |
| | | add(101); |
| | | add(102); |
| | | add(103); |
| | |
| | | } |
| | | } |
| | | } |
| | | ArrayList<Integer> staNosxx = staNos2; |
| | | int size = staNosxx.size(); |
| | | OperateResultExOne<byte[]> result3 = siemensS7Net.Read("DB101.14", (short) (size * 2)); |
| | | if (result3.IsSuccess) { |
| | | for (int i = 0; i < size; i++) { |
| | | Integer siteId = staNosxx.get(i); // 站点编号 |
| | | StaProtocol staProtocol = station.get(siteId); |
| | | if (null == staProtocol) { |
| | | staProtocol = new StaProtocol(); |
| | | staProtocol.setSiteId(siteId); |
| | | station.put(siteId, staProtocol); |
| | | } |
| | | boolean[] status = null; |
| | | status = siemensS7Net.getByteTransform().TransBool(result3.Content, i * 2, 2); |
| | | staProtocol.setAutoing(status[0]); // 自动 |
| | | staProtocol.setLoading(status[1]); // 有物 |
| | | staProtocol.setInEnable(status[2]); // 可入,二层 |
| | | staProtocol.setOutEnable(status[3]);// 可出,三层 |
| | | staProtocol.setEmptyMk(status[4]); // 空板信号 |
| | | staProtocol.setFullPlt(status[5]); // 满托盘 |
| | | staProtocol.setHigh(status[6]); // 高库位 |
| | | staProtocol.setLow(status[7]); // 低库位 |
| | | |
| | | if (!staProtocol.isPakMk() && !staProtocol.isLoading()) { |
| | | staProtocol.setPakMk(true); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //条码扫描器 |
| | | // ArrayList<Integer> barcodeList = BarcodeList; |