From fa6bebf3478bbea5c570851de91acf40fc40bbc4 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期二, 12 十一月 2024 18:13:45 +0800 Subject: [PATCH] 增加指定格子出片 --- springboot-vue3/src/main/java/com/example/springboot/component/PLCAutoMes.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutoMes.java b/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutoMes.java index 44b4021..667d179 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutoMes.java +++ b/springboot-vue3/src/main/java/com/example/springboot/component/PLCAutoMes.java @@ -46,12 +46,12 @@ public void run() { while (this != null) { try { - Thread.sleep(100); + Thread.sleep(50); } catch (InterruptedException e) { e.printStackTrace(); } - List<Short> ss=S7control.getinstance().ReadWord("DB14.0", 1); + //List<Short> ss=S7control.getinstance().ReadWord("DB14.0", 1); readAndUpdateWordValues(PlcMesObject); } -- Gitblit v1.8.0