Browse Source

1.按钮盒在室外,经常会有人在室外触碰按钮
2.所以一般情况下,有人来卸货RFID开门的时候可以让按钮盒的按键十分钟之内有效果
-- 测试修改

k 2 years ago
parent
commit
f08360bd34

+ 10 - 0
warewms-ams/src/main/java/com/ruoyi/ams/agv/ndc/thread/AutoButtonBoxTask.java

@@ -41,6 +41,11 @@ public class AutoButtonBoxTask {
         if (readBtn01) {
             if (redisCache.getCacheObject("BUTTON_BOX_VALID") == null) {
                 log.error("按钮盒不在有效时间段内!");
+                // 清除按下标记
+                buttonBoxClient.clearBtn01();
+                // 灭灯
+                buttonBoxClient.writeLamp01Death();
+                log.info("按钮1已经灭灯");
                 return;
             }
             buttonTask01();
@@ -48,6 +53,11 @@ public class AutoButtonBoxTask {
         if (readBtn02) {
             if (redisCache.getCacheObject("BUTTON_BOX_VALID") == null) {
                 log.error("按钮盒不在有效时间段内!");
+                // 清除按下标记
+                buttonBoxClient.clearBtn02();
+                // 灭灯
+                buttonBoxClient.writeLamp02Death();
+                log.info("按钮2已经灭灯");
                 return;
             }
             buttonTask02();