From 4f47d0af9617511e475879eff74e7788a429d9fd Mon Sep 17 00:00:00 2001 From: whycq <whycq> Date: 星期五, 27 五月 2022 14:55:19 +0800 Subject: [PATCH] # ycq --- src/main/java/com/zy/core/thread/MelsecCrnThread.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/core/thread/MelsecCrnThread.java b/src/main/java/com/zy/core/thread/MelsecCrnThread.java index 5d4b037..3df19a6 100644 --- a/src/main/java/com/zy/core/thread/MelsecCrnThread.java +++ b/src/main/java/com/zy/core/thread/MelsecCrnThread.java @@ -161,6 +161,7 @@ if (result.IsSuccess) { if (null == crnProtocol) { crnProtocol = new CrnProtocol(); + crnProtocol.setCrnNo(slave.getId()); } crnProtocol.setMode(melsecMcNet.getByteTransform().TransInt16(result.Content, 0)); crnProtocol.setTaskNo(melsecMcNet.getByteTransform().TransInt16(result.Content, 2)); -- Gitblit v1.9.1