| | |
| | | vo.setPakMk(staProtocol.isPakMk()?"Y":"N"); // 入库标记 |
| | | vo.setEmptyMk(staProtocol.isEmptyMk()?"Y":"N"); // 空板信号 |
| | | vo.setStaNo(staProtocol.getStaNo()); // 目标站 |
| | | vo.setLocType1(staProtocol.isHigh() != staProtocol.isLow() && staProtocol.isLow() ? "短" : "长"); //高低库位 |
| | | vo.setLocType1(staProtocol.isHigh() != staProtocol.isLow() && staProtocol.isLow() ? "小" : "大"); //高低库位 |
| | | // vo.setLocType1(devp.getDevNo()==102 ? "高" : "低"); |
| | | } |
| | | return R.ok().add(list); |
| | |
| | | /** |
| | | * 条码数量 |
| | | */ |
| | | private int barcodeSize = 8; |
| | | private int barcodeSize = 6; |
| | | |
| | | /** |
| | | * 入出库模式 |
| | |
| | | } |
| | | |
| | | //条码扫描器 |
| | | //Thread.sleep(200); |
| | | //OperateResultExOne<byte[]> result2 = null; |
| | | //result2 = siemensS7Net.Read("DB100.200",(short)(barcodeSize*16)); |
| | | //if (result2.IsSuccess) { |
| | | // for (int i = 0; i < barcodeSize; i++) { |
| | | // String barcode = siemensS7Net.getByteTransform().TransString(result2.Content,i*16,8, "UTF-8"); |
| | | // BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, slave.getId() == 1 ? i + 1 : i + 3); |
| | | // if(!Cools.isEmpty(barcodeThread) && !barcodeThread.getBarcode().equals(barcode)) { |
| | | // barcodeThread.setBarcode(barcode); |
| | | // } |
| | | // } |
| | | //} |
| | | if(slave.getId() == 2) { |
| | | Thread.sleep(200); |
| | | OperateResultExOne<byte[]> result2 = null; |
| | | result2 = siemensS7Net.Read("DB100.200", (short) (barcodeSize * 16)); |
| | | if (result2.IsSuccess) { |
| | | for (int i = 0; i < barcodeSize; i++) { |
| | | String barcode = siemensS7Net.getByteTransform().TransString(result2.Content, i * 16, 8, "UTF-8"); |
| | | BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, i + 1); |
| | | if (!Cools.isEmpty(barcodeThread) && !barcodeThread.getBarcode().equals(barcode)) { |
| | | barcodeThread.setBarcode(barcode); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | // //RGV小车 |
| | | // Thread.sleep(200); |
| | |
| | | barcode: ${wcs-slave.barcode[5].id} |
| | | |
| | | |
| | | # 条码扫描仪1 左下 1楼开始 |
| | | # 条码扫描仪1 左下 1楼开始,111 |
| | | barcode[0]: |
| | | id: 1 |
| | | ip: 10.10.10.100 |
| | | port: 51236 |
| | | # 条码扫描仪2 |
| | | # 条码扫描仪2, 114 |
| | | barcode[1]: |
| | | id: 2 |
| | | ip: 10.10.10.101 |
| | | port: 51236 |
| | | # 条码扫描仪3 |
| | | # 条码扫描仪3, 201 |
| | | barcode[2]: |
| | | id: 3 |
| | | ip: 10.10.10.102 |
| | | port: 51236 |
| | | # 条码扫描仪4 |
| | | # 条码扫描仪4,204 |
| | | barcode[3]: |
| | | id: 4 |
| | | ip: 10.10.10.103 |
| | | port: 51236 |
| | | # 条码扫描仪5 |
| | | # 条码扫描仪5,301 |
| | | barcode[4]: |
| | | id: 5 |
| | | ip: 10.10.10.104 |
| | | port: 51236 |
| | | # 条码扫描仪6 |
| | | # 条码扫描仪6,304 |
| | | barcode[5]: |
| | | id: 6 |
| | | ip: 10.10.10.105 |
| | | port: 51236 |
| | | # 条码扫描仪7 |
| | | # 条码扫描仪7,101 |
| | | barcode[6]: |
| | | id: 7 |
| | | ip: 10.10.10.106 |
| | | port: 51236 |
| | | # 条码扫描仪8 |
| | | # 条码扫描仪8,104 |
| | | barcode[7]: |
| | | id: 8 |
| | | ip: 10.10.10.59 |
| | | port: 51236 |
| | | # 条码扫描仪9 |
| | | # 条码扫描仪9,101 |
| | | barcode[8]: |
| | | id: 8 |
| | | id: 9 |
| | | ip: 10.10.10.59 |
| | | port: 51236 |
| | | # 条码扫描仪10 |
| | | # 条码扫描仪10,101 |
| | | barcode[9]: |
| | | id: 8 |
| | | id: 10 |
| | | ip: 10.10.10.59 |
| | | port: 51236 |
| | | |
| | |
| | | <th>入库标记</th> |
| | | <th>空板信号</th> |
| | | <th>目标站</th> |
| | | <th>长短库位</th> |
| | | <th>大小库位</th> |
| | | </tr> |
| | | </thead> |
| | | <!-- 表格内容 --> |