rev:下发仙工参数修改

This commit is contained in:
2024-12-06 15:39:16 +08:00
parent 9cae849e7c
commit 151519821b

View File

@@ -660,7 +660,13 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
JSONObject block = new JSONObject();
block.put("blockId", IdUtil.simpleUUID());
block.put("location", inst.getStart_point_code());
// 判断起点是否是钢平台对接点
String start_point_code = inst.getStart_point_code();
if (start_point_code.equals("GPTDJDIN")) {
start_point_code += "1";
}
block.put("location", start_point_code);
block.put("binTask", "ForkLoad");
// block.put("operationArgs", new JSONObject() {{
// put("recognize", true);
@@ -691,6 +697,13 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
block.put("script_args", scriptArgs);
blocks.add(block);
} else {
if (inst.getStart_point_code().equals("GPTDJDIN") || inst.getStart_point_code().equals("GPTDJDOUT")) {
JSONObject block1 = new JSONObject();
block1.put("blockId", IdUtil.simpleUUID());
block1.put("binTask", "ForkHeight");
block1.put("location", start_point_code + "OUTGET");
blocks.add(block1);
}
if (device1.getDeviceDriver() instanceof StandardStorageDeviceDriver) {
block = new JSONObject();
block.put("binTask", "ForkHeight");
@@ -729,7 +742,12 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
block = new JSONObject();
block.put("blockId", IdUtil.simpleUUID());
block.put("location", inst.getNext_point_code());
// 判断终点是不是钢平台对接点
String next_point_code = inst.getNext_point_code();
if (next_point_code.equals("GPTDJDOUT")) {
next_point_code += "1";
}
block.put("location", next_point_code);
block.put("binTask", "ForkUnload");
blocks.add(block);
@@ -757,6 +775,13 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
block.put("script_args", scriptArgs);
blocks.add(block);
} else {
if (inst.getNext_point_code().equals("GPTDJDIN") || inst.getNext_point_code().equals("GPTDJDOUT")) {
JSONObject block1 = new JSONObject();
block1.put("blockId", IdUtil.simpleUUID());
block1.put("binTask", "ForkHeight");
block1.put("location", next_point_code + "OUTPUT");
blocks.add(block1);
}
if (device2.getDeviceDriver() instanceof StandardStorageDeviceDriver) {
block = new JSONObject();
block.put("binTask", "ForkHeight");