| | |
| | | } |
| | | }else if (Constants.RECORD_SN.equals(tab)){//请求产品序列号 |
| | | if (Constants.ONE.equals(valueString)){ |
| | | Integer recordSNDone = 11; |
| | | Integer result = 11; |
| | | //进站PLC给产品类型,MES读取产品类型 |
| | | Object productTypeObjcet = miloService.readFromOpcUa(thoroughfare + "." + device + ".ProductType").getValue();//产品类型 |
| | | if (ObjectUtil.isNotNull(productTypeObjcet)){ |
| | |
| | | receivingWorkOrders(thoroughfare, device,materialCode); |
| | | }); |
| | | }else{ |
| | | recordSNDone = 12; |
| | | result = 12; |
| | | } |
| | | miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(thoroughfare + "." + device + ".RecordSNDone").value(recordSNDone).build()); |
| | | miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(thoroughfare + "." + device + ".RecordSNDone").value(result).build()); |
| | | } |
| | | } |
| | | }catch (Exception e) { |