| | |
| | | }}; |
| | | |
| | | public static final ArrayList<Integer> BarcodeList = new ArrayList<Integer>() {{ |
| | | add(1);add(2);add(3);add(4); |
| | | add(5);add(6);add(7);add(8); |
| | | add(0);add(1);add(2);add(3); |
| | | add(4);add(5);add(6);add(7); |
| | | }}; |
| | | |
| | | public static final ArrayList<Integer> staNosErrList = new ArrayList<Integer>() {{ |
| | |
| | | if (result2.IsSuccess) { |
| | | for (int i = 0; i < barcodeList.size(); i++) { |
| | | Integer barcodeId = barcodeList.get(i); |
| | | String barcode = siemensS7Net.getByteTransform().TransString(result2.Content,(i-1)*10+2,8, "UTF-8"); |
| | | BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, barcodeId); |
| | | String barcode = siemensS7Net.getByteTransform().TransString(result2.Content,i*10+2,8, "UTF-8"); |
| | | BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, barcodeId + 1); |
| | | if(!Cools.isEmpty(barcodeThread) && !barcodeThread.getBarcode().equals(barcode)) { |
| | | barcodeThread.setBarcode(barcode); |
| | | } |