From 34774c2713233f929e0f332461ec566127016773 Mon Sep 17 00:00:00 2001
From: zhangchao <zc857179121@qq.com>
Date: 星期四, 29 八月 2024 13:30:36 +0800
Subject: [PATCH] 配置

---
 src/main/java/com/zy/core/thread/SiemensCrnThread.java |   28 ++++++++++++++++++----------
 1 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java
index a3eefae..86dd358 100644
--- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -244,16 +244,24 @@
         }
 //        convertRow(command);
         command.setCrnNo(slave.getId());
-        short[] array = new short[10];
-        array[0] = command.getAckFinish();
-        array[1] = command.getTaskNo();
-        array[2] = command.getTaskMode();
-        array[3] = command.getSourcePosX();
-        array[4] = command.getSourcePosY();
-        array[5] = command.getSourcePosZ();
-        array[6] = command.getDestinationPosX();
-        array[7] = command.getDestinationPosY();
-        array[8] = command.getDestinationPosZ();
+        short[] array = new short[17];
+        array[0] = command.getTaskNo();
+        array[1] = command.getTaskMode();
+        array[2] = command.getSourcePosX();
+        array[3] = command.getSourcePosY();
+        array[4] = command.getSourcePosZ();
+        array[5] = command.getDestinationPosX();
+        array[6] = command.getDestinationPosY();
+        array[7] = command.getDestinationPosZ();
+        array[8] = command.getSourcePosXTwo();
+        array[9] = command.getSourcePosYTwo();
+        array[10] = command.getSourcePosZTwo();
+        array[11] = command.getDestinationPosXTwo();
+        array[12] = command.getDestinationPosYTwo();
+        array[13] = command.getDestinationPosZTwo();
+        array[14] = command.getCommand();
+        array[15] = command.getAckFinish();
+
 //        array[9] = command.getSourceStaNo();
 //        array[10] = command.getDestinationStaNo();
         array[9] = command.getCommand();

--
Gitblit v1.9.1