From 204d4f97eb72d58b2145873c12eefd1c4fa8b448 Mon Sep 17 00:00:00 2001 From: zhangchao <zc857179121@qq.com> Date: 星期四, 29 八月 2024 13:50:18 +0800 Subject: [PATCH] 配置 --- src/main/java/com/zy/core/thread/SiemensCrnThread.java | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 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..2da9ed0 100644 --- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java +++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java @@ -244,19 +244,27 @@ } // 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(); + //array[9] = command.getCommand(); OperateResult result = siemensNet.Write("DB100.0", array); if (command.getAckFinish() == 0) { -- Gitblit v1.9.1