From e2a14112a81740481623dc16bbd1301432ce34b0 Mon Sep 17 00:00:00 2001 From: L <L@132> Date: 星期三, 27 八月 2025 13:15:22 +0800 Subject: [PATCH] * --- src/main/java/com/zy/core/thread/SiemensCrnThread.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java index 4a12228..603aa3b 100644 --- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java +++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java @@ -286,6 +286,7 @@ DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); deviceErrorService.addDeviceError("crnWriteIng", slave.getId(), "宸烽亾鍙�"+command.getLaneNo()+";鍫嗗灈鏈哄緟涓嬪彂鎸囦护:"+JSON.toJSONString(command.getNowTask())); } catch (Exception e){ + log.error("crnWriteIng鏂板寮傚父"); } try{ @@ -320,7 +321,7 @@ try{ Thread.sleep(50L); - } catch (Exception e){} + } catch (Exception e){log.error("寤舵椂寮傚父324琛�");} log.info("鍫嗗灈鏈轰换鍔″啓100.0锛氬�硷細array crnWrite-317琛�;array:"+JSON.toJSONString(array)); OperateResult result = siemensNet.Write("DB100.0", array); @@ -330,8 +331,8 @@ i++; //鍫嗗灈鏈轰换鍔″啓鍏ュ悗锛屽洖璇讳竴娆★紝鐪嬫槸鍚︽垚鍔� try{ - Thread.sleep(100L); - } catch (Exception e){} + Thread.sleep(50L); + } catch (Exception e){log.error("寤舵椂寮傚父335琛�");} log.info("鍫嗗灈鏈轰换鍔¤100.0锛氬�硷細20 crnWrite-317琛�;"); OperateResultExOne<byte[]> resultRead = siemensNet.Read("DB100.0", (short) 20); -- Gitblit v1.9.1