From de7f6920f60271aeb4bd22d2d170988f3cef390b Mon Sep 17 00:00:00 2001
From: 严智鑫 <test>
Date: 星期日, 31 三月 2024 12:43:14 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/Albania_Mes
---
springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java b/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java
index dacfd4c..51d6ddf 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java
@@ -1,4 +1,7 @@
package com.example.springboot.entity.device;
+
+import com.example.springboot.component.S7control;
+
public class PlcParameterInfo {
public PlcParameterInfo(String startAddress) {
this.startAddress = startAddress;
@@ -122,6 +125,9 @@
return addressIndex;
}
+ public String getValueString() {
+ return S7control.getinstance().readStrings(getAddress());
+ }
public String getAddress() {
return getAddress(this.addressIndex);
}
--
Gitblit v1.8.0