From d93e68755f8a71029a5f2e96d2a470753348146f Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期一, 11 九月 2023 17:37:16 +0800
Subject: [PATCH] 增加实体类
---
springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
index b641602..4fd48c7 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
@@ -16,7 +16,9 @@
}
List<Boolean> plclist = S7control.getinstance().ReadBits("DB102.DBX0.0", 58);
+ if(plclist==null){
+ }else{
JSONObject jsonObject = new JSONObject();
// jsonObject3.append("sig",
// new short[] { 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
@@ -30,5 +32,6 @@
}
}
+ }
}
}
--
Gitblit v1.8.0