From b092806a662b99310cdb050292de2721ba06acd9 Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期二, 19 十一月 2024 14:43:18 +0800
Subject: [PATCH] 增加测量台直通模式,增加手动参数界面的JSON文件

---
 springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
index d53aae7..0970d32 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
@@ -145,10 +145,17 @@
                     double width = Double.valueOf(plcmes.getPlcParameter("width").getValue());//
                     // 瀹�
                     double height = Double.valueOf(plcmes.getPlcParameter("Height").getValue());// 楂�
-                    if ("0".equals(PlcRequest) && istest) {
-                        S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(),
-                                (short) 0);
+                    // if ("0".equals(PlcRequest) && "1".equals(MesSend)|| "0".equals(PlcRequest) && "4".equals(MesSend)) {
+                    //     S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(),(short) 0);
+                    // }
+                    // if ("2".equals(PlcRequest) && "1".equals(MesSend)) {
+                    //     S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(),(short) 0);
+                    // }
+                     if ("4".equals(PlcRequest)) {
+                        S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(),(short) 0);
+                        System.out.println("鏀跺洓褰掗浂");
                     }
+                    
                     // System.out.println("PlcRequest:" + PlcRequest+"MesSend:" + MesSend+"width:" +
                     // width+"height:" + height);
 

--
Gitblit v1.8.0