From 6f1a28c55c7744c471bd5edfee0a418fb0f23434 Mon Sep 17 00:00:00 2001 From: cl <418351270@qq.com> Date: 星期一, 12 八月 2024 18:03:43 +0800 Subject: [PATCH] 修改采集参数 --- jcdm-main/src/main/java/com/jcdm/main/plcserver/sub/OPCUaSubscription.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jcdm-main/src/main/java/com/jcdm/main/plcserver/sub/OPCUaSubscription.java b/jcdm-main/src/main/java/com/jcdm/main/plcserver/sub/OPCUaSubscription.java index 24c745b..5a34de4 100644 --- a/jcdm-main/src/main/java/com/jcdm/main/plcserver/sub/OPCUaSubscription.java +++ b/jcdm-main/src/main/java/com/jcdm/main/plcserver/sub/OPCUaSubscription.java @@ -132,8 +132,12 @@ } else if(Constants.TWO.equals(valueString)){//鍑虹珯 if(Constants.OP040_OP160.contains(device)){//浜哄伐宸ヤ綅 WebSocketUsers.sendMessageToUserByText(map.get(device), "END"); - }else{//鑷姩宸ヤ綅 - //鍏堝垽鏂槸鍚︽湁浜у搧SNy + } else if (Constants.OP165.equals(device)) { + WebSocketUsers.sendMessageToUserByText(map.get(device), "print");//鎵撳嵃 + } else if (Constants.OP0170_OP230.contains(device)) { + WebSocketUsers.sendMessageToUserByText(map.get(device), "END"); + } else{//鑷姩宸ヤ綅 + //鍏堝垽鏂槸鍚︽湁浜у搧SN Object snCodeObjcet = miloService.readFromOpcUa(thoroughfare + "." + device + ".SNCode").getValue(); Object orderObjcet = miloService.readFromOpcUa(thoroughfare + "." + device + ".WorkOrderNumber").getValue(); if (ObjectUtil.isNull(snCodeObjcet)){ -- Gitblit v1.9.3