|
@ -15,7 +15,7 @@ public class ItemProtocol { |
|
|
public static String item_mode = "mode"; |
|
|
public static String item_mode = "mode"; |
|
|
public static String item_move = "move"; |
|
|
public static String item_move = "move"; |
|
|
public static String item_action = "action"; |
|
|
public static String item_action = "action"; |
|
|
public static String item_ioaction = "ioaction"; |
|
|
public static String item_ioaction = "io_action"; |
|
|
public static String item_error = "error"; |
|
|
public static String item_error = "error"; |
|
|
public static String item_task = "task"; |
|
|
public static String item_task = "task"; |
|
|
public static String item_to_command = "to_command"; |
|
|
public static String item_to_command = "to_command"; |
|
@ -41,7 +41,11 @@ public class ItemProtocol { |
|
|
return this.getOpcIntegerValue(item_move); |
|
|
return this.getOpcIntegerValue(item_move); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public int getIoaction() { |
|
|
public int getAction() { |
|
|
|
|
|
return this.getOpcIntegerValue(item_action); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getIo_action() { |
|
|
return this.getOpcIntegerValue(item_ioaction); |
|
|
return this.getOpcIntegerValue(item_ioaction); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -90,7 +94,8 @@ public class ItemProtocol { |
|
|
list.add(new ItemDto(item_heartbeat, "心跳", "VW0")); |
|
|
list.add(new ItemDto(item_heartbeat, "心跳", "VW0")); |
|
|
list.add(new ItemDto(item_mode, "工作状态", "VW2", Boolean.valueOf(true))); |
|
|
list.add(new ItemDto(item_mode, "工作状态", "VW2", Boolean.valueOf(true))); |
|
|
list.add(new ItemDto(item_move, "光电开关信号", "VW4")); |
|
|
list.add(new ItemDto(item_move, "光电开关信号", "VW4")); |
|
|
list.add(new ItemDto(item_action, "动作信号", "VW8")); |
|
|
list.add(new ItemDto(item_action, "动作信号", "VW6")); |
|
|
|
|
|
list.add(new ItemDto(item_ioaction, "进出信号", "VW8")); |
|
|
list.add(new ItemDto(item_error, "报警信号", "VW12")); |
|
|
list.add(new ItemDto(item_error, "报警信号", "VW12")); |
|
|
list.add(new ItemDto(item_task, "任务号", "VD14")); |
|
|
list.add(new ItemDto(item_task, "任务号", "VD14")); |
|
|
return list; |
|
|
return list; |
|
|