|
|
@ -61,18 +61,15 @@ 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_state, "工作状态", "DB600.B2")); |
|
|
|
list.add(new ItemDto(item_action, "动作信号", "DB600.B3")); |
|
|
|
list.add(new ItemDto(item_error, "报警信号", "DB600.B4")); |
|
|
|
list.add(new ItemDto(item_heartbeat, "心跳", "VB100")); |
|
|
|
list.add(new ItemDto(item_mode, "工作模式", "VB101", Boolean.valueOf(true))); |
|
|
|
list.add(new ItemDto(item_action, "动作信号", "VB102")); |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
public static List<ItemDto> getWriteableItemDtos() { |
|
|
|
ArrayList list = new ArrayList(); |
|
|
|
list.add(new ItemDto(item_to_command, "作业命令", "DB601.W2", Boolean.valueOf(true))); |
|
|
|
list.add(new ItemDto(item_to_state, "下发状态", "DB601.W3", Boolean.valueOf(true))); |
|
|
|
list.add(new ItemDto(item_to_command, "作业命令", "VW200", Boolean.valueOf(true))); |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|