|
|
@ -15,12 +15,15 @@ public class ItemProtocol { |
|
|
|
public static String item_mode = "mode"; |
|
|
|
public static String item_move = "move"; |
|
|
|
public static String item_action = "action"; |
|
|
|
public static String item_io_action = "io_action"; |
|
|
|
public static String item_error = "error"; |
|
|
|
public static String item_task = "task"; |
|
|
|
public static String item_to_command = "to_command"; |
|
|
|
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_material_type = "material_type"; |
|
|
|
public static String item_barcode = "barcode"; |
|
|
|
|
|
|
|
private StandardInspectSiteDeviceDriver driver; |
|
|
|
|
|
|
@ -44,6 +47,10 @@ public class ItemProtocol { |
|
|
|
return this.getOpcIntegerValue(item_action); |
|
|
|
} |
|
|
|
|
|
|
|
public int getIoAction() { |
|
|
|
return this.getOpcIntegerValue(item_io_action); |
|
|
|
} |
|
|
|
|
|
|
|
public int getError() { |
|
|
|
return this.getOpcIntegerValue(item_error); |
|
|
|
} |
|
|
@ -52,6 +59,13 @@ public class ItemProtocol { |
|
|
|
return this.getOpcIntegerValue(item_task); |
|
|
|
} |
|
|
|
|
|
|
|
public int getMaterialType() { |
|
|
|
return this.getOpcIntegerValue(item_material_type); |
|
|
|
} |
|
|
|
public int getBarcode() { |
|
|
|
return this.getOpcIntegerValue(item_barcode); |
|
|
|
} |
|
|
|
|
|
|
|
public int getToCommand() { |
|
|
|
return this.getOpcIntegerValue(item_to_command); |
|
|
|
} |
|
|
@ -87,11 +101,14 @@ public class ItemProtocol { |
|
|
|
public static List<ItemDto> getReadableItemDtos() { |
|
|
|
ArrayList list = new ArrayList(); |
|
|
|
list.add(new ItemDto(item_heartbeat, "心跳", "DB600.B0")); |
|
|
|
list.add(new ItemDto(item_mode, "工作状态", "DB600.B1", Boolean.valueOf(true))); |
|
|
|
list.add(new ItemDto(item_move, "光电开关信号", "DB600.B2")); |
|
|
|
list.add(new ItemDto(item_move, "动作信号", "DB600.B3")); |
|
|
|
list.add(new ItemDto(item_error, "报警信号", "DB600.B6")); |
|
|
|
list.add(new ItemDto(item_task, "任务号", "DB600.D8")); |
|
|
|
list.add(new ItemDto(item_mode, "工作状态", "DB600.B2", Boolean.valueOf(true))); |
|
|
|
list.add(new ItemDto(item_move, "光电开关信号", "DB600.B3")); |
|
|
|
list.add(new ItemDto(item_action, "取放信号", "DB600.B4")); |
|
|
|
list.add(new ItemDto(item_io_action, "进出信号", "DB600.B5")); |
|
|
|
list.add(new ItemDto(item_task, "任务号", "DB600.D6")); |
|
|
|
list.add(new ItemDto(item_material_type, "任务号", "DB600.D6")); |
|
|
|
list.add(new ItemDto(item_error, "报警信号", "DB600.B7")); |
|
|
|
list.add(new ItemDto(item_barcode, "条码", "DB600.D8")); |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|