fix
This commit is contained in:
@@ -18,7 +18,6 @@ public class ItemProtocol {
|
||||
public static String item_error = "error";
|
||||
public static String item_task = "task";
|
||||
public static String item_weight = "weight";
|
||||
public static String item_material_type = "material_type";
|
||||
public static String item_sub_tray = "sub_tray";
|
||||
public static String item_mother_tray = "mother_tray";
|
||||
public static String item_to_command = "to_command";
|
||||
@@ -57,9 +56,6 @@ public class ItemProtocol {
|
||||
public int getWeight() {
|
||||
return this.getOpcIntegerValue(item_weight);
|
||||
}
|
||||
public int getMaterialType() {
|
||||
return this.getOpcIntegerValue(item_material_type);
|
||||
}
|
||||
public int getSubTray() {
|
||||
return this.getOpcIntegerValue(item_sub_tray);
|
||||
}
|
||||
@@ -109,7 +105,6 @@ public class ItemProtocol {
|
||||
list.add(new ItemDto(item_action, "取放信号", "DB600.B3"));
|
||||
list.add(new ItemDto(item_task, "任务号", "DB600.D4"));
|
||||
list.add(new ItemDto(item_weight, "重量", "DB600.D4"));
|
||||
list.add(new ItemDto(item_material_type, "物料类型", "DB600.D4"));
|
||||
list.add(new ItemDto(item_sub_tray, "子托盘条码", "DB600.D4"));
|
||||
list.add(new ItemDto(item_mother_tray, "母托盘条码", "DB600.D4"));
|
||||
list.add(new ItemDto(item_error, "报警信号", "DB600.B5"));
|
||||
|
||||
@@ -79,8 +79,6 @@ public class SsxSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
int last_io_action = 0;
|
||||
double weight = 0;
|
||||
double last_weight = 0;
|
||||
int material_type = 0;
|
||||
int last_material_type =0;
|
||||
int sub_tray = 0;
|
||||
int last_sub_tray =0;
|
||||
int mother_tray = 0;
|
||||
@@ -149,7 +147,6 @@ public class SsxSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
hasGoods = this.itemProtocol.getMove();
|
||||
action = this.itemProtocol.getAction();
|
||||
weight = this.itemProtocol.getWeight();
|
||||
material_type = this.itemProtocol.getMaterialType();
|
||||
mother_tray = this.itemProtocol.getMotherTray();
|
||||
sub_tray = this.itemProtocol.getSubTray();
|
||||
if (mode != last_mode) {
|
||||
@@ -222,7 +219,6 @@ public class SsxSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
last_move = move;
|
||||
last_task = task;
|
||||
last_weight = weight;
|
||||
last_material_type = material_type;
|
||||
last_sub_tray = sub_tray;
|
||||
last_mother_tray = mother_tray;
|
||||
last_action = action;
|
||||
|
||||
Reference in New Issue
Block a user