From 81a81598095b0b3a8984857893219b24f4baffea Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 21 十一月 2023 14:48:17 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/thread/SiemensCrnThread.java | 31 +++++++++++++++----------------
1 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java
index 63f6e5a..4bfdede 100644
--- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -394,37 +394,36 @@
} else {
array[0] = 0;
}
- array[1] = command.getSourcePosZ();
- array[2] = command.getSourcePosY();
+ array[1] = command.getTaskNo();
+ array[2] = command.getTaskMode();
-
+ array[3] = command.getDestinationPosZ();
if (rowOne.contains(command.getSourcePosX())){
- array[3] = (short)1;
+ array[4] = (short)1;
}else if (rowTwo.contains(command.getSourcePosX())){
- array[3] = (short)2;
+ array[4] = (short)2;
}else if (rowThree.contains(command.getSourcePosX())){
- array[3] = (short)3;
+ array[4] = (short)3;
}else if (rowFour.contains(command.getSourcePosX())){
- array[3] = (short)4;
+ array[4] = (short)4;
}else {
- array[3] = command.getSourcePosX();
+ array[4] = command.getSourcePosX();
}
- array[4] = command.getDestinationPosZ();
array[5] = command.getDestinationPosY();
+ array[6] = command.getDestinationPosZ();
if (rowOne.contains(command.getDestinationPosX())){
- array[6] = (short)1;
+ array[7] = (short)1;
}else if (rowTwo.contains(command.getDestinationPosX())){
- array[6] = (short)2;
+ array[7] = (short)2;
}else if (rowThree.contains(command.getDestinationPosX())){
- array[6] = (short)3;
+ array[7] = (short)3;
}else if (rowFour.contains(command.getDestinationPosX())){
- array[6] = (short)4;
+ array[7] = (short)4;
}else {
- array[6] = command.getDestinationPosX();
+ array[7] = command.getDestinationPosX();
}
- array[7] = command.getSourceStaNo();
- array[8] = command.getDestinationStaNo();
+ array[8] = command.getDestinationPosY();
// 浣滀笟淇℃伅
OperateResult result = siemensNet.Write("DB100.0", array);
--
Gitblit v1.9.1