|
@ -12,8 +12,51 @@ public class ItemProtocol { |
|
|
public static String item_mode = "mode"; |
|
|
public static String item_mode = "mode"; |
|
|
public static String item_action = "action"; |
|
|
public static String item_action = "action"; |
|
|
public static String item_error = "error"; |
|
|
public static String item_error = "error"; |
|
|
public static String item_to_command = "to_command"; |
|
|
public static String item_order = "order"; |
|
|
|
|
|
public static String item_order_detail = "order_detail"; |
|
|
|
|
|
public static String item_last_order_detail = "last_order_detail"; |
|
|
|
|
|
//当前工单上料数量
|
|
|
|
|
|
public static String item_order_feeding_qty = "order_feeding_qty"; |
|
|
|
|
|
//当前工单明细号上料数量
|
|
|
|
|
|
public static String item_detail_feeding_qty = "detail_feeding_qty"; |
|
|
|
|
|
//当前工单明细顺序号刻字数量
|
|
|
|
|
|
public static String item_detail_lettering_qty = "detail_lettering_qty"; |
|
|
|
|
|
//当前工单明细顺序号刻字合格数量
|
|
|
|
|
|
public static String item_detail_lettering_qualified_qty = "detail_lettering_qualified_qty"; |
|
|
|
|
|
//当前工单明细号套冒合格数
|
|
|
|
|
|
public static String item_detail_risking_qualified_qty = "detail_risking_qualified_qty"; |
|
|
|
|
|
//当前工单明细号套冒数
|
|
|
|
|
|
public static String item_detail_risking_qty = "detail_risking_qty"; |
|
|
|
|
|
//当前工单明细号捆扎数
|
|
|
|
|
|
public static String item_detail_strapping_qty = "detail_strapping_qty"; |
|
|
|
|
|
//当前工单明细号捆扎根数
|
|
|
|
|
|
public static String item_detail_strapping_oneqty = "detail_strapping_oneqty"; |
|
|
|
|
|
//当前工单明细号裹膜数
|
|
|
|
|
|
public static String item_detail_coating_qty = "detail_coating_qty"; |
|
|
|
|
|
//当前贴标工单明细号
|
|
|
|
|
|
public static String item_labeling_order = "labeling_order"; |
|
|
|
|
|
//当前贴标工单明细号贴标合格数
|
|
|
|
|
|
public static String item_detail_rlabeling_qualified_qty = "detail_rlabeling_qualified_qty"; |
|
|
|
|
|
//当前贴标工单明细号贴标数
|
|
|
|
|
|
public static String item_detail_rlabeling_qty = "detail_rlabeling_qty"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String item_to_command = "to_command"; |
|
|
|
|
|
public static String item_to_order = "to_order"; |
|
|
|
|
|
public static String item_to_order_detail = "to_order_detail"; |
|
|
|
|
|
public static String item_to_order_feeding_qty = "to_order_feeding_qty"; |
|
|
|
|
|
public static String item_to_detail_feeding_qty = "to_detail_feeding_qty"; |
|
|
|
|
|
public static String item_to_outer_diameter = "to_outer_diameter"; |
|
|
|
|
|
public static String item_to_wall_thickness = "to_wall thickness"; |
|
|
|
|
|
public static String item_to_length = "to_length"; |
|
|
|
|
|
public static String item_to_is_last = "to_is_last"; |
|
|
|
|
|
public static String item_to_strapping_qty = "to_strapping_qty"; |
|
|
|
|
|
public static String item_to_one_strapping_qty = "to_one_strapping_qty"; |
|
|
|
|
|
public static String item_to_lastone_strapping_qty = "to_lastone_strapping_qty"; |
|
|
|
|
|
public static String item_to_coating_qty = "to_coating_qty"; |
|
|
|
|
|
public static String item_to_labeling_qty = "to_labeling_qty"; |
|
|
|
|
|
public static String item_to_stop = "to_stop"; |
|
|
|
|
|
public static String item_to_force_complete = "to_force_complete"; |
|
|
|
|
|
|
|
|
private HaiLiangFeedingTrunkDeviceDriver driver; |
|
|
private HaiLiangFeedingTrunkDeviceDriver driver; |
|
|
|
|
|
|
|
@ -55,16 +98,46 @@ 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, "心跳", "DB51.B0")); |
|
|
list.add(new ItemDto(item_heartbeat, "心跳", "DB600.B0")); |
|
|
list.add(new ItemDto(item_mode, "工作状态", "DB51.B1", Boolean.valueOf(true))); |
|
|
list.add(new ItemDto(item_mode, "工作模式", "DB600.B2", Boolean.valueOf(true))); |
|
|
list.add(new ItemDto(item_action, "动作信号", "DB51.B2")); |
|
|
list.add(new ItemDto(item_error, "故障信号", "DB600.B3")); |
|
|
list.add(new ItemDto(item_error, "报警信号", "DB51.B4")); |
|
|
list.add(new ItemDto(item_order, "当前执行工单号", "DB600.D4")); |
|
|
|
|
|
list.add(new ItemDto(item_order_detail, "当前工单明细号", "DB600.D8")); |
|
|
|
|
|
list.add(new ItemDto(item_last_order_detail, "上次完成工单明细号", "DB600.D12")); |
|
|
|
|
|
list.add(new ItemDto(item_order_feeding_qty, "当前工单上料数量", "DB600.D16")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_feeding_qty, "当前工单明细号上料数量", "DB600.D20")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_lettering_qty, "当前工单明细号刻字数量", "DB600.D24")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_lettering_qualified_qty, "当前工单明细号刻字合格数量", "DB600.D28")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_risking_qualified_qty, "当前工单明细号套冒合格数", "DB600.D32")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_risking_qty, "当前工单明细号套冒数", "DB600.D36")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_strapping_qty, "当前工单明细号捆扎包数", "DB600.D40")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_strapping_oneqty, "当前工单明细号捆扎根数", "DB600.D44")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_coating_qty, "当前工单明细号裹膜数", "DB600.D48")); |
|
|
|
|
|
list.add(new ItemDto(item_labeling_order, "当前贴标工单明细号", "DB600.D52")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_rlabeling_qualified_qty, "当前工单明细号刻字数量", "DB600.D56")); |
|
|
|
|
|
list.add(new ItemDto(item_detail_rlabeling_qty, "当前贴标工单明细号贴标数", "DB600.D60")); |
|
|
|
|
|
|
|
|
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, "作业命令", "DB52.W2", Boolean.valueOf(true))); |
|
|
list.add(new ItemDto(item_to_order, "工单号", "DB600.D2")); |
|
|
|
|
|
list.add(new ItemDto(item_to_order_detail, "工单明细号", "DB600.D6")); |
|
|
|
|
|
list.add(new ItemDto(item_to_order_feeding_qty, "工单上料总数量", "DB600.D10")); |
|
|
|
|
|
list.add(new ItemDto(item_to_detail_feeding_qty, "工单明细号上料数量", "DB600.D14")); |
|
|
|
|
|
list.add(new ItemDto(item_to_outer_diameter, "外径", "DB600.REAL18")); |
|
|
|
|
|
list.add(new ItemDto(item_to_wall_thickness, "壁厚", "DB600.REAL22")); |
|
|
|
|
|
list.add(new ItemDto(item_to_length, "长度", "DB600.REAL26")); |
|
|
|
|
|
list.add(new ItemDto(item_to_is_last, "是否最后工单明细号", "DB600.D30")); |
|
|
|
|
|
list.add(new ItemDto(item_to_strapping_qty, "总捆扎包数", "DB600.D34")); |
|
|
|
|
|
list.add(new ItemDto(item_to_one_strapping_qty, "标准每捆数量", "DB600.D38")); |
|
|
|
|
|
list.add(new ItemDto(item_to_lastone_strapping_qty, "捆扎尾料数量", "DB600.D42")); |
|
|
|
|
|
list.add(new ItemDto(item_to_coating_qty, "需要裹膜捆数", "DB600.D42")); |
|
|
|
|
|
list.add(new ItemDto(item_to_labeling_qty, "需要贴标数量", "DB600.D46")); |
|
|
|
|
|
list.add(new ItemDto(item_to_stop, "急停", "DB600.D50")); |
|
|
|
|
|
list.add(new ItemDto(item_to_force_complete, "工单强制完成", "DB600.D54")); |
|
|
|
|
|
list.add(new ItemDto(item_to_command, "作业命令", "DB52.D62", Boolean.valueOf(true))); |
|
|
return list; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|