From a5b887bad106aed4a175c97846576f020fe83bc7 Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期三, 24 一月 2024 13:31:14 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes

---
 springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1Review.java |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1Review.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1Review.java
index fbfba3c..787b0d2 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1Review.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcParameter1Review.java
@@ -93,17 +93,20 @@
       } catch (InterruptedException e) {
         e.printStackTrace();
       }
-      byte[] getplcvlues = S7control.getinstance().ReadByte(plcParameterObject.getPlcAddressBegin(), plcParameterObject.getPlcAddressLength());
-     plcParameterObject.setPlcParameterList(getplcvlues);
+     // byte[] getplcvlues = S7control.getinstance().ReadByte(plcParameterObject.getPlcAddressBegin(), plcParameterObject.getPlcAddressLength());
+
+      byte[] getplcvlues = {0x01, 0x02, 0x03, 0x04,0x01, 0x02, 0x03, 0x04,0x01, 0x02, 0x03, 0x04,0x01, 0x02};
+
+      plcParameterObject.setPlcParameterList(getplcvlues);
     //  int index = plcParameterObject.getPlcParameter("conveyorVelocity(AutoFAST)").getAddressIndex();
      // S7control.getinstance().WriteWord(plcParameterObject.getPlcParameter("conveyorVelocity(AutoFAST)").getAddress(index), (short) 100);
 
       List<String> addresses = new ArrayList<>();
-      addresses.add("conveyorVelocity(AutoFAST)");
-      addresses.add("conveyorVelocity(AutoSLOW)");
-      addresses.add("conveyorVelocity(Manual)");
-      addresses.add("A01A02TURNJOGVelocity");
-      addresses.add("A01A02TRAVELJOGVelocity");
+      addresses.add("A01A02TURNPOSVelocityAUTO");
+//      addresses.add("conveyorVelocity(AutoSLOW)");
+//      addresses.add("conveyorVelocity(Manual)");
+//      addresses.add("A01A02TURNJOGVelocity");
+//      addresses.add("A01A02TRAVELJOGVelocity");
 
 
       System.out.println(plcParameterObject.getPlcParameterValues(addresses));

--
Gitblit v1.8.0