|
@ -184,41 +184,41 @@ public class ItemProtocol { |
|
|
|
|
|
|
|
|
public static List<ItemDto> getReadableItemDtos() { |
|
|
public static List<ItemDto> getReadableItemDtos() { |
|
|
ArrayList list = new ArrayList(); |
|
|
ArrayList list = new ArrayList(); |
|
|
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.B0")); |
|
|
list.add(new ItemDto(item_heartbeat, "心跳", "DB100.B0")); |
|
|
list.add(new ItemDto(item_mode, "工作模式", "DB1.B1", Boolean.valueOf(true))); |
|
|
list.add(new ItemDto(item_mode, "工作模式", "DB100.B1", Boolean.valueOf(true))); |
|
|
list.add(new ItemDto(item_status, "设备状态", "DB1.B2")); |
|
|
list.add(new ItemDto(item_status, "设备状态", "DB100.B2")); |
|
|
list.add(new ItemDto(item_action, "动作", "DB1.B3")); |
|
|
list.add(new ItemDto(item_error, "故障代码", "DB100.B4")); |
|
|
list.add(new ItemDto(item_error, "故障代码", "DB1.B4")); |
|
|
list.add(new ItemDto(item_open_time, "开机时间", "DB100.STRING56.50")); |
|
|
list.add(new ItemDto(item_open_time, "开机时间", "DB1.STRING6.50")); |
|
|
list.add(new ItemDto(item_standby_time, "待机时间", "DB100.D60")); |
|
|
list.add(new ItemDto(item_standby_time, "待机时间", "DB1.D58")); |
|
|
list.add(new ItemDto(item_production_time, "生产时间", "DB100.D64")); |
|
|
list.add(new ItemDto(item_production_time, "生产时间", "DB1.D62")); |
|
|
list.add(new ItemDto(item_error_time, "故障时间", "DB100.D68")); |
|
|
list.add(new ItemDto(item_error_time, "故障时间", "DB1.D66")); |
|
|
|
|
|
list.add(new ItemDto(item_get_station, "当前抓取工位", "DB1.D70")); |
|
|
list.add(new ItemDto(item_get_station, "当前抓取工位", "DB100.D188")); |
|
|
list.add(new ItemDto(item_put_station, "当前放置工位", "DB1.D71")); |
|
|
list.add(new ItemDto(item_put_station, "当前放置工位", "DB100.D189")); |
|
|
list.add(new ItemDto(item_is_qualified, "是否合格", "DB1.D72")); |
|
|
list.add(new ItemDto(item_is_qualified, "是否合格", "DB100.D190")); |
|
|
list.add(new ItemDto(item_laser_marking_code, "激光标刻码", "DB1.D74")); |
|
|
list.add(new ItemDto(item_laser_marking_code, "激光标刻码", "DB100.D192")); |
|
|
list.add(new ItemDto(item_grinding_number, "碾次", "DB1.D126")); |
|
|
list.add(new ItemDto(item_grinding_number, "碾次", "DB100.D126")); |
|
|
list.add(new ItemDto(item_height1, "高度1", "DB1.D178")); |
|
|
list.add(new ItemDto(item_height1, "高度1", "DB100.D178")); |
|
|
list.add(new ItemDto(item_height2, "高度2", "DB1.D182")); |
|
|
list.add(new ItemDto(item_height2, "高度2", "DB100.D182")); |
|
|
list.add(new ItemDto(item_height3, "高度3", "DB1.D186")); |
|
|
list.add(new ItemDto(item_height3, "高度3", "DB100.D186")); |
|
|
list.add(new ItemDto(item_height4, "高度4", "DB1.D190")); |
|
|
list.add(new ItemDto(item_height4, "高度4", "DB100.D190")); |
|
|
list.add(new ItemDto(item_width1, "宽度1", "DB1.D194")); |
|
|
list.add(new ItemDto(item_width1, "宽度1", "DB100.D194")); |
|
|
list.add(new ItemDto(item_width2, "宽度2", "DB1.D198")); |
|
|
list.add(new ItemDto(item_width2, "宽度2", "DB100.D198")); |
|
|
list.add(new ItemDto(item_len, "长度", "DB1.D202")); |
|
|
list.add(new ItemDto(item_len, "长度", "DB100.D202")); |
|
|
list.add(new ItemDto(item_volume, "体积", "DB1.D206")); |
|
|
list.add(new ItemDto(item_volume, "体积", "DB100.D206")); |
|
|
list.add(new ItemDto(item_flatness, "平面度", "DB1.D210")); |
|
|
list.add(new ItemDto(item_flatness, "平面度", "DB100.D210")); |
|
|
list.add(new ItemDto(item_unqualified_qty, "缺陷个数", "DB1.D214")); |
|
|
list.add(new ItemDto(item_unqualified_qty, "缺陷个数", "DB100.D214")); |
|
|
|
|
|
|
|
|
return list; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static List<ItemDto> getWriteableItemDtos() { |
|
|
public static List<ItemDto> getWriteableItemDtos() { |
|
|
ArrayList list = new ArrayList(); |
|
|
ArrayList list = new ArrayList(); |
|
|
list.add(new ItemDto(item_to_command, "反馈", "DB7.W0", Boolean.TRUE)); |
|
|
list.add(new ItemDto(item_to_command, "反馈", "DB103.W0", Boolean.TRUE)); |
|
|
list.add(new ItemDto(item_to_error, "error", "DB7.W2")); |
|
|
list.add(new ItemDto(item_to_error, "error", "DB103.W2")); |
|
|
list.add(new ItemDto(item_to_order_No, "工单号", "DB7.STRING4.50")); |
|
|
list.add(new ItemDto(item_to_order_No, "工单号", "DB103.STRING4.50")); |
|
|
list.add(new ItemDto(item_to_weight, "生产重量", "DB7.D56")); |
|
|
list.add(new ItemDto(item_to_weight, "生产重量", "DB103.D56")); |
|
|
list.add(new ItemDto(item_to_material_code, "下发物料编号", "DB7.STRING60.50")); |
|
|
list.add(new ItemDto(item_to_material_code, "下发物料编号", "DB103.STRING60.50")); |
|
|
return list; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|