From 4601fbc2c8f20497010a7d938a8a051efb88f004 Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期二, 19 三月 2024 08:37:39 +0800
Subject: [PATCH] 删除mq示例

---
 springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java
index 296a397..30061c1 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java
@@ -5,6 +5,7 @@
 import org.springframework.beans.factory.annotation.Autowired;
 import com.example.springboot.service.JdbcConnections;
 import com.example.springboot.service.SpianService;
+import com.example.springboot.service.SpianServiceNew;
 import com.example.springboot.entity.north_glass_buffer1;
 import com.example.springboot.mapper.AlarmMapper;
 import com.example.springboot.mapper.SpianMapper;
@@ -17,6 +18,7 @@
   private JdbcConnections jdbcConnections;
   private SpianMapper spianMapper;
   private SpianService spianService;
+  private SpianServiceNew spianServiceNew;
   int aaa;
 
   @Override
@@ -34,6 +36,7 @@
       // if (S7control.getinstance().CheckConnected() == false) {
       spianService = WebSocketServer.applicationContext.getBean(SpianService.class);
       spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class);
+      spianServiceNew = WebSocketServer.applicationContext.getBean(SpianServiceNew.class);
       jdbcConnections = WebSocketServer.applicationContext.getBean(JdbcConnections.class);
       // 鏍规嵁鐜荤拑id鑾峰彇璁㈠崟鍙�,鍗曠嫭鏁版嵁婧�
       // try {
@@ -45,6 +48,8 @@
       // }
 
       // 鍑虹墖浠诲姟////////////////////////////////
+      spianServiceNew.selectout2("X21942613103GV");
+
       List<Short> outlist = S7control.getinstance().ReadWord("DB106.20", 1); // 鍑虹墖杞︾姸鎬�
       List<Short> outlist1 = S7control.getinstance().ReadWord("DB105.18", 1); // 鍑虹墖浠诲姟鏄惁鍚姩
 

--
Gitblit v1.8.0