This commit is contained in:
psh
2023-12-08 14:00:45 +08:00
parent e6f45fc0c1
commit cb30f09cc3
3 changed files with 5 additions and 13 deletions

View File

@@ -21,7 +21,6 @@ public class ItemProtocol {
public static String item_to_target = "to_target";
public static String item_to_task = "to_task";
public static String item_weight = "weight";
public static String item_number = "number";
private StandardInspectSiteDeviceDriver driver;
@@ -53,10 +52,6 @@ public class ItemProtocol {
return this.getOpcIntegerValue(item_task);
}
public int getNumber() {
return this.getOpcIntegerValue(item_number);
}
public int getToCommand() {
return this.getOpcIntegerValue(item_to_command);
}
@@ -96,7 +91,6 @@ public class ItemProtocol {
list.add(new ItemDto(item_move, "光电开关信号", "DB600.B2"));
list.add(new ItemDto(item_error, "报警信号", "DB600.B6"));
list.add(new ItemDto(item_task, "任务号", "DB600.D8"));
list.add(new ItemDto(item_number, "数量","DB600.D10"));
return list;
}

View File

@@ -79,10 +79,6 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
String message = null;
Boolean iserror = false;
int number = 0;
int last_number = 0;
boolean hasVehicle = false;
boolean isReady = false;
protected int instruction_num = 0;
@@ -143,7 +139,6 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
move = this.itemProtocol.getMove();
task = this.itemProtocol.getTask();
hasGoods = this.itemProtocol.getMove();
number = this.itemProtocol.getNumber();
if (move != last_move) {
this.requireSucess = false;
@@ -192,7 +187,6 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
last_error = error;
last_move = move;
last_task = task;
last_number = number;
}