| | |
| | | public static final ArrayList<Integer> staNos1 = new ArrayList<Integer>() {{ |
| | | add(101);add(102);add(103);add(104);add(105);add(106);add(107);add(108);add(109);add(110); |
| | | add(111);add(112);add(113);add(114);add(115);add(116);add(117);add(118);add(119);add(120); |
| | | add(121);add(122);add(124);add(125); |
| | | add(121);add(122);add(123);add(124);add(125); |
| | | }}; |
| | | |
| | | public static final ArrayList<Integer> staNos2 = new ArrayList<Integer>() {{ |
| | | add(201);add(202);add(203);add(204);add(205);add(206);add(207);add(208);add(209);add(210); |
| | | add(211);add(212);add(213);add(214);add(215);add(216);add(217);add(218);add(219);add(220); |
| | | add(221);add(222);add(224);add(225); |
| | | add(221);add(222);add(223);add(224);add(225); |
| | | }}; |
| | | public static final ArrayList<Integer> staNos1W = new ArrayList<Integer>() {{ |
| | | add(118);add(121);add(124); |
| | |
| | | station.put(siteId, staProtocol); |
| | | } |
| | | String barcode = siemensS7Net.getByteTransform().TransString(result2.Content,i*8,8, "UTF-8"); |
| | | BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, i + 1+3*slave.getId()); |
| | | BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, i + 1+3*(slave.getId()-1)); |
| | | if(!Cools.isEmpty(barcodeThread) && !barcodeThread.getBarcode().equals(barcode)) { |
| | | barcodeThread.setBarcode(barcode); |
| | | if (!Cools.isEmpty(barcode) && !barcode.equals("00000000")){ |