From 5f9ca1634f6a0ba288048556e29fe2b3e7784682 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期五, 15 十二月 2023 09:59:56 +0800
Subject: [PATCH] 调整提示框

---
 springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java |   43 ++++++++++++++++++++++++++-----------------
 1 files changed, 26 insertions(+), 17 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 74e11f8..93ccccf 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
@@ -42,6 +42,7 @@
         while (this != null) {
             try {
                 Thread.sleep(1000);
+                
             } catch (InterruptedException e) {
                 e.printStackTrace();
             }
@@ -108,33 +109,41 @@
             }
             // 鑾峰彇鍑虹墖闃熷垪淇℃伅
             List<Out_slice> listoutslice = outSliceServive.SelectProductionqueue();
-            // List<Out_slice> listoutslice = homeMapper.SelectProductionqueue();
-            // for (Out_slice out_slice : listoutslice) {
-            // out_slice.setstorageCage(homeMapper.SelectStorageGlassById(out_slice.getGlassId()));
-            // }
             jsonObject.append("listoutslice", listoutslice);
             // 鑾峰彇褰撳墠鍑虹墖闃熷垪鐘舵��
             jsonObject.append("isAllowQueue", Plchome.isAllowQueue);
 
             // 鑾峰彇閾濇idDB106.DBW64
-            String frameno=spianService.queGlassid("DB103.270",14).toString();
-            if(frameno!=Plchome.FrameNo&&frameno!=""){
-            Plchome.FrameNo=frameno;
-            }
-            try {
-            north_Glass_Buffer1Service.AddOutSliceS(Plchome.FrameNo);
-            } catch (SQLException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-            }
+            // String frameno=spianService.queGlassid("DB103.270",14).toString();
+            // if(frameno!=Plchome.FrameNo&&frameno!=""){
+            // Plchome.FrameNo=frameno;
+            // }
+            // try {
+            // north_Glass_Buffer1Service.AddOutSliceS(Plchome.FrameNo);
+            // } catch (SQLException e) {
+            // // TODO Auto-generated catch block
+            // e.printStackTrace();
+            // }
             // 鏄惁闇�瑕佷汉宸ョ‘璁や笂鐗囩幓鐠�
             jsonObject.append("isConfirm", isConfirm);
 
+            //鑾峰彇杩涚墖璇锋眰鐘舵��
+            List<Short> D01Request = S7control.getinstance().ReadWord("DB106.24", 1);
+            boolean D01RequestState = D01Request.contains((short) 1);
+            // boolean D01RequestState =true;
+            jsonObject.append("D01RequestState", D01RequestState);
 
             //澶嶄綅鍊掕鏃�
-            // 鍦板潃104.9.6
-            List<Boolean> countdown = S7control.getinstance().ReadBits("104.9.6", 71);
-            jsonObject.append("countdown", countdown);
+            List<Boolean> countdown = S7control.getinstance().ReadBits("DB104.9.6", 1);
+            for (Boolean countdowns : countdown) {
+                jsonObject.append("countdown", countdowns);
+            }
+            //鏄惁鎬ュ仠
+            List<Boolean> emergencystops = S7control.getinstance().ReadBits("DB104.5.1", 1);
+            for (Boolean emergencystop : emergencystops) {
+                jsonObject.append("emergencystop", emergencystop);
+            }
+            // jsonObject.append("countdown", true);
             // 閾濇绾夸氦浜�
 
             // //閾濇id璇锋眰瀛�

--
Gitblit v1.8.0