From 47538a54f9870febd44d0684f37666407ade6502 Mon Sep 17 00:00:00 2001
From: lsh <1>
Date: 星期三, 20 十二月 2023 15:40:44 +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 b489297..c9931ec 100644
--- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -11,6 +11,7 @@
 import com.zy.asrs.entity.BasCrnp;
 import com.zy.asrs.service.BasCrnOptService;
 import com.zy.asrs.service.BasCrnpService;
+import com.zy.common.utils.News;
 import com.zy.core.CrnThread;
 import com.zy.core.cache.MessageQueue;
 import com.zy.core.cache.OutputQueue;
@@ -86,7 +87,8 @@
                         write(command);
                         break;
                     case 4:
-                        siemensNet.Write("DB100.20", (short)task.getData());
+                        Integer data = (Integer) task.getData();
+                        siemensNet.Write("DB100.276", data.shortValue());
                         break;
                     default:
                         break;
@@ -236,7 +238,7 @@
             log.error("鍫嗗灈鏈哄啓鍏ュ懡浠や负绌�");
             return false;
         }
-//        convertRow(command);
+        //convertRow(command);
         command.setCrnNo(slave.getId());
         short[] array = new short[12];
         array[0] = command.getAckFinish();
@@ -255,7 +257,6 @@
         if (command.getAckFinish() == 0){
             OperateResult result2 = siemensNet.Write("DB100.20", command.getBarcode());
         }
-
         if (command.getAckFinish() == 0) {
             short commandFinish = 1;
             result = siemensNet.Write("DB100.18", commandFinish);

--
Gitblit v1.9.1