|
|
@ -38,15 +38,17 @@ public class ItemProtocol { |
|
|
|
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_ready = "ready"; |
|
|
|
|
|
|
|
|
|
|
|
public static String item_to_heartbeat = "to_heartbeat"; |
|
|
|
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_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"; |
|
|
@ -55,7 +57,21 @@ public class ItemProtocol { |
|
|
|
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"; |
|
|
|
public static String item_to_clear = "to_clear"; |
|
|
|
public static String item_to_pause = "to_pause"; |
|
|
|
public static String item_to_order_detail_complete = "to_order_detail_complete"; |
|
|
|
public static String item_to_order_complete = "to_order_complete"; |
|
|
|
public static String item_to_line_speed = "to_line_speed"; |
|
|
|
public static String item_to_feeding_mouth = "to_feeding_mouth"; |
|
|
|
public static String item_to_is_lettering = "to_is_lettering"; |
|
|
|
public static String item_to_is_risking = "to_is_risking"; |
|
|
|
public static String item_to_is_coating = "to_is_coating"; |
|
|
|
public static String item_to_is_strapping = "to_is_strapping"; |
|
|
|
public static String item_to_is_labeling = "to_is_labeling"; |
|
|
|
public static String item_to_delay_time = "to_delay_time"; |
|
|
|
public static String item_to_lettering_frequency = "to_lettering_frequency"; |
|
|
|
public static String item_to_one_speed = "to_one_speed"; |
|
|
|
public static String item_to_coating_frequency = "to_coating_frequency"; |
|
|
|
|
|
|
|
private HaiLiangFeedingTrunkDeviceDriver driver; |
|
|
|
|
|
|
@ -136,11 +152,133 @@ public class ItemProtocol { |
|
|
|
return this.getOpcIntegerValue(item_detail_rlabeling_qty); |
|
|
|
} |
|
|
|
|
|
|
|
public int getReady() { |
|
|
|
return this.getOpcIntegerValue(item_ready); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_heartbeat() { |
|
|
|
return this.getOpcIntegerValue(item_to_heartbeat); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_order() { |
|
|
|
return this.getOpcIntegerValue(item_to_order); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_order_detail() { |
|
|
|
return this.getOpcIntegerValue(item_to_order_detail); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_order_feeding_qty() { |
|
|
|
return this.getOpcIntegerValue(item_to_order_feeding_qty); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_detail_feeding_qty() { |
|
|
|
return this.getOpcIntegerValue(item_to_detail_feeding_qty); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_outer_diameter() { |
|
|
|
return this.getOpcIntegerValue(item_to_outer_diameter); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_wall_thickness() { |
|
|
|
return this.getOpcIntegerValue(item_to_wall_thickness); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_length() { |
|
|
|
return this.getOpcIntegerValue(item_to_length); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_is_last() { |
|
|
|
return this.getOpcIntegerValue(item_to_is_last); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_strapping_qty() { |
|
|
|
return this.getOpcIntegerValue(item_to_strapping_qty); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_one_strapping_qty() { |
|
|
|
return this.getOpcIntegerValue(item_to_one_strapping_qty); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_lastone_strapping_qty() { |
|
|
|
return this.getOpcIntegerValue(item_to_lastone_strapping_qty); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_coating_qty() { |
|
|
|
return this.getOpcIntegerValue(item_to_coating_qty); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_labeling_qty() { |
|
|
|
return this.getOpcIntegerValue(item_to_labeling_qty); |
|
|
|
} |
|
|
|
|
|
|
|
public int getToCommand() { |
|
|
|
return this.getOpcIntegerValue(item_to_command); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_stop() { |
|
|
|
return this.getOpcIntegerValue(item_to_stop); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_clear() { |
|
|
|
return this.getOpcIntegerValue(item_to_clear); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_pause() { |
|
|
|
return this.getOpcIntegerValue(item_to_pause); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_order_detail_complete() { |
|
|
|
return this.getOpcIntegerValue(item_to_order_detail_complete); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_order_complete() { |
|
|
|
return this.getOpcIntegerValue(item_to_order_complete); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_line_speed() { |
|
|
|
return this.getOpcIntegerValue(item_to_line_speed); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_feeding_mouth() { |
|
|
|
return this.getOpcIntegerValue(item_to_feeding_mouth); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_is_lettering() { |
|
|
|
return this.getOpcIntegerValue(item_to_is_lettering); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_is_risking() { |
|
|
|
return this.getOpcIntegerValue(item_to_is_risking); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_is_coating() { |
|
|
|
return this.getOpcIntegerValue(item_to_is_coating); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_is_strapping() { |
|
|
|
return this.getOpcIntegerValue(item_to_is_strapping); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_is_labeling() { |
|
|
|
return this.getOpcIntegerValue(item_to_is_labeling); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_delay_time() { |
|
|
|
return this.getOpcIntegerValue(item_to_delay_time); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_lettering_frequency() { |
|
|
|
return this.getOpcIntegerValue(item_to_lettering_frequency); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_one_speed() { |
|
|
|
return this.getOpcIntegerValue(item_to_one_speed); |
|
|
|
} |
|
|
|
|
|
|
|
public int getTo_coating_frequency() { |
|
|
|
return this.getOpcIntegerValue(item_to_coating_frequency); |
|
|
|
} |
|
|
|
|
|
|
|
Boolean isonline; |
|
|
|
|
|
|
@ -175,28 +313,44 @@ public class ItemProtocol { |
|
|
|
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")); |
|
|
|
list.add(new ItemDto(item_ready, "设备就绪", "DB600.D64")); |
|
|
|
|
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
public static List<ItemDto> getWriteableItemDtos() { |
|
|
|
ArrayList list = new ArrayList(); |
|
|
|
list.add(new ItemDto(item_to_order, "工单号", "DB601.D2")); |
|
|
|
list.add(new ItemDto(item_to_order_detail, "工单明细号", "DB601.D6")); |
|
|
|
list.add(new ItemDto(item_to_order_feeding_qty, "工单上料总数量", "DB601.D10")); |
|
|
|
list.add(new ItemDto(item_to_detail_feeding_qty, "工单明细号上料数量", "DB601.D14")); |
|
|
|
list.add(new ItemDto(item_to_outer_diameter, "外径", "DB601.REAL18")); |
|
|
|
list.add(new ItemDto(item_to_wall_thickness, "壁厚", "DB601.REAL22")); |
|
|
|
list.add(new ItemDto(item_to_length, "长度", "DB601.REAL26")); |
|
|
|
list.add(new ItemDto(item_to_is_last, "是否最后工单明细号", "DB601.D30")); |
|
|
|
list.add(new ItemDto(item_to_strapping_qty, "总捆扎包数", "DB601.D34")); |
|
|
|
list.add(new ItemDto(item_to_one_strapping_qty, "标准每捆数量", "DB601.D38")); |
|
|
|
list.add(new ItemDto(item_to_lastone_strapping_qty, "捆扎尾料数量", "DB601.D42")); |
|
|
|
list.add(new ItemDto(item_to_coating_qty, "需要裹膜捆数", "DB601.D42")); |
|
|
|
list.add(new ItemDto(item_to_labeling_qty, "需要贴标数量", "DB601.D46")); |
|
|
|
list.add(new ItemDto(item_to_stop, "急停", "DB601.D50")); |
|
|
|
list.add(new ItemDto(item_to_force_complete, "工单强制完成", "DB601.D54")); |
|
|
|
list.add(new ItemDto(item_to_command, "作业命令", "DB601.D62", Boolean.valueOf(true))); |
|
|
|
list.add(new ItemDto(item_to_heartbeat, "心跳", "DB610.B0")); |
|
|
|
list.add(new ItemDto(item_to_order, "工单号", "DB610.D2")); |
|
|
|
list.add(new ItemDto(item_to_order_detail, "工单明细号", "DB610.D6")); |
|
|
|
list.add(new ItemDto(item_to_order_feeding_qty, "工单上料总数量", "DB610.D10")); |
|
|
|
list.add(new ItemDto(item_to_detail_feeding_qty, "工单明细号上料数量", "DB610.D14")); |
|
|
|
list.add(new ItemDto(item_to_outer_diameter, "外径", "DB610.REAL18")); |
|
|
|
list.add(new ItemDto(item_to_wall_thickness, "壁厚", "DB610.REAL22")); |
|
|
|
list.add(new ItemDto(item_to_length, "长度", "DB610.REAL26")); |
|
|
|
list.add(new ItemDto(item_to_is_last, "是否最后工单明细号", "DB610.D30")); |
|
|
|
list.add(new ItemDto(item_to_strapping_qty, "总捆扎包数", "DB610.D34")); |
|
|
|
list.add(new ItemDto(item_to_one_strapping_qty, "标准每捆数量", "DB610.D38")); |
|
|
|
list.add(new ItemDto(item_to_lastone_strapping_qty, "捆扎尾料数量", "DB610.D42")); |
|
|
|
list.add(new ItemDto(item_to_coating_qty, "需要裹膜捆数", "DB610.D46")); |
|
|
|
list.add(new ItemDto(item_to_labeling_qty, "需要贴标数量", "DB610.D50")); |
|
|
|
list.add(new ItemDto(item_to_command, "反馈命令", "DB610.D54", Boolean.valueOf(true))); |
|
|
|
list.add(new ItemDto(item_to_stop, "急停", "DB610.D58")); |
|
|
|
list.add(new ItemDto(item_to_clear, "清料", "DB610.D62")); |
|
|
|
list.add(new ItemDto(item_to_pause, "复位\\暂停", "DB610.D66")); |
|
|
|
list.add(new ItemDto(item_to_order_detail_complete, "工单明细强制完成", "DB610.D70")); |
|
|
|
list.add(new ItemDto(item_to_order_complete, "工单强制完成", "DB610.D74")); |
|
|
|
list.add(new ItemDto(item_to_line_speed, "线体速度", "DB610.REAL78")); |
|
|
|
list.add(new ItemDto(item_to_feeding_mouth, "上料口", "DB610.D82")); |
|
|
|
list.add(new ItemDto(item_to_is_lettering, "是否刻字", "DB610.D86")); |
|
|
|
list.add(new ItemDto(item_to_is_risking, "是否套冒", "DB610.D90")); |
|
|
|
list.add(new ItemDto(item_to_is_coating, "是否裹膜", "DB610.D94")); |
|
|
|
list.add(new ItemDto(item_to_is_strapping, "是否捆扎", "DB610.D98")); |
|
|
|
list.add(new ItemDto(item_to_is_labeling, "是否贴标", "DB610.D102")); |
|
|
|
list.add(new ItemDto(item_to_delay_time, "工段动作延时", "DB610.D106")); |
|
|
|
list.add(new ItemDto(item_to_lettering_frequency, "刻字频率", "DB610.D110")); |
|
|
|
list.add(new ItemDto(item_to_one_speed, "捆扎\\裹膜\\贴标段输送速度", "DB610.REAL114")); |
|
|
|
list.add(new ItemDto(item_to_coating_frequency, "裹膜机频率", "DB610.D118")); |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|