cl
2024-07-30 025da1cc9d28aec9b072b63c59a96045b3946205
修改采集参数
已修改1个文件
6 ■■■■ 文件已修改
jcdm-main/src/main/java/com/jcdm/main/plcserver/sub/OPCUaSubscription.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-main/src/main/java/com/jcdm/main/plcserver/sub/OPCUaSubscription.java
@@ -130,7 +130,7 @@
                }
            }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)){
@@ -141,9 +141,9 @@
                            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) {