From de4f2b6569689626176abfef75be69e72eba8ed8 Mon Sep 17 00:00:00 2001 From: cpT <1@123> Date: 星期一, 30 六月 2025 10:38:16 +0800 Subject: [PATCH] #改造 --- src/main/java/com/zy/core/thread/SiemensCrnThread.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java index 61575fa..5b59838 100644 --- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java +++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java @@ -95,6 +95,11 @@ command.setDestinationPosZ((short)0); // 鐩爣搴撲綅灞� write(command); break; + // 澶嶄綅 + case 4: + CrnCommand command4 = (CrnCommand) task.getData(); + write(command4); + break; default: break; } @@ -223,7 +228,7 @@ if (System.currentTimeMillis()-currentTimeMilliConnectCrn>1000*60*10){ try{ DeviceErrorService deviceErrorService = SpringUtils.getBean(DeviceErrorService.class); - deviceErrorService.addDeviceError("Crn", slave.getId(), "璇诲彇鍫嗗灈鏈簆lc鐘舵�佷俊鎭け璐�"); + deviceErrorService.addDeviceError("CrnErr", slave.getId(), "璇诲彇鍫嗗灈鏈簆lc鐘舵�佷俊鎭け璐�"); } catch (Exception e2){ Thread.sleep(1000); // log.error("e2:"+e2.getMessage()); -- Gitblit v1.9.1