From b3b9b700ca5121dd0f9472df2e1527ed5f47e887 Mon Sep 17 00:00:00 2001 From: whycq <123456> Date: 星期三, 31 一月 2024 23:02:10 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/SiemensCrnThread.java | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java index 3bd2c0a..11a965b 100644 --- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java +++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java @@ -336,7 +336,7 @@ // crnCommand.setDestinationStaNo(command.getDestinationStaNo()); crnCommand.setCommand(command.getCommand()); if (command.getTaskNo() == 0 && command.getAckFinish() == 0 && command.getAuto() != 1) { - command.setTaskNo((short) 9999); + command.setTaskNo((short) 999); } command.setCrnNo(slave.getId()); @@ -348,12 +348,12 @@ } array[1] = command.getTaskNo(); array[2] = command.getTaskMode(); - array[3] = command.getSourcePosZ(); - array[4] = command.getSourcePosX(); - array[5] = command.getSourcePosY(); - array[6] = command.getDestinationPosZ(); - array[7] = command.getDestinationPosX(); - array[8] = command.getDestinationPosY(); + array[3] = command.getSourcePosX(); + array[4] = command.getSourcePosY(); + array[5] = command.getSourcePosZ(); + array[6] = command.getDestinationPosX(); + array[7] = command.getDestinationPosY(); + array[8] = command.getDestinationPosZ(); array[9] = command.getCommand(); // 浣滀笟淇℃伅 @@ -454,7 +454,7 @@ // crnCommand.setDestinationStaNo(command.getDestinationStaNo()); crnCommand.setCommand(command.getCommand()); if (command.getTaskNo() == 0 && command.getAckFinish() == 0 && command.getAuto() != 1) { - command.setTaskNo((short) 9999); + command.setTaskNo((short) 999); } command.setCrnNo(slave.getId()); @@ -466,12 +466,12 @@ } array[1] = command.getTaskNo(); array[2] = command.getTaskMode(); - array[3] = command.getSourcePosZ(); - array[4] = command.getSourcePosX(); - array[5] = command.getSourcePosY(); - array[6] = command.getDestinationPosZ(); - array[7] = command.getDestinationPosX(); - array[8] = command.getDestinationPosY(); + array[3] = command.getSourcePosX(); + array[4] = command.getSourcePosY(); + array[5] = command.getSourcePosZ(); + array[6] = command.getDestinationPosX(); + array[7] = command.getDestinationPosY(); + array[8] = command.getDestinationPosZ(); array[9] = command.getCommand(); // 浣滀笟淇℃伅 OperateResult result = siemensNet.Write("DB100.0", array); -- Gitblit v1.9.1