| | |
| | | for (DevpSlave.Sta inSta : devp.getDriveSta()) { |
| | | if (inSta.getStaNo().equals(palletizingNo)){ |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 2); |
| | | StaProtocol staProtocol = devpThread.getStation().get(inSta); |
| | | if (staProtocol == null) { |
| | | StaProtocol staProtocolPall = devpThread.getStation().get(palletizingNo); |
| | | if (staProtocolPall == null) { |
| | | continue; |
| | | } else { |
| | | staProtocol = staProtocol.clone(); |
| | | staProtocolPall = staProtocolPall.clone(); |
| | | } |
| | | |
| | | if (!staProtocol.isAutoing() || !staProtocol.isLoading() || staProtocol.getWorkNo() != 0 || !staProtocol.isPakMk()){ |
| | | if (!staProtocolPall.isAutoing() || !staProtocolPall.isLoading() || staProtocolPall.getWorkNo() != 0 || !staProtocolPall.isPakMk()){ |
| | | return R.error("未就绪!!!"); |
| | | } |
| | | |
| | |
| | | } |
| | | // Calendar calendar = Calendar.getInstance(); |
| | | // calendar.setTime(now); |
| | | if (Cools.isEmpty(barcode) || barcode.equals("")){ |
| | | return R.error("未就绪!!!托盘条码为空!!!请检查!!!"); |
| | | } |
| | | return R.ok( |
| | | Cools.add("barcode", barcode).add("Date",now) |
| | | ); |