@@ -24,7 +24,8 @@ public class ItemProtocol {
//所有设备就绪
public static String item_all_ready = " all_ready " ;
//1、2#订单完成
public static String item_finish = " finish " ;
public static String item_finish1 = " finish1 " ;
public static String item_finish2 = " finish2 " ;
//1托盘是否满托
public static String item_is_full_1 = " is_full_1 " ;
//2托盘是否满托
@@ -44,7 +45,8 @@ public class ItemProtocol {
//线体故障信息
public static String item_error = " error " ;
//1、2#巷道故障信息
public static String item_lane_error = " lane_error " ;
public static String item_lane_error1 = " lane_error1 " ;
public static String item_lane_error2 = " lane_error2 " ;
//1#托盘当前码垛箱数
public static String item_pallet_num_1 = " pallet_num_1 " ;
//2#托盘当前码垛箱数
@@ -62,23 +64,28 @@ public class ItemProtocol {
//4#托盘物料信息
public static String item_material_4 = " material_4 " ;
//1、2#当前生产总量(订单实时)
public static String item_order_now = " order_now " ;
public static String item_order_now1 = " order_now1 " ;
public static String item_order_now2 = " order_now2 " ;
//1、2#当前托盘总数(实时)
public static String item_tray_now = " tray_now " ;
public static String item_tray_now1 = " tray_now1 " ;
public static String item_tray_now2 = " tray_now2 " ;
//1、2#工单号
public static String item_order = " order " ;
public static String item_order1 = " order1 " ;
public static String item_order2 = " order2 " ;
//设备开关
public static String item_to_open = " to_open " ;
//机械手启动开关
public static String item_to_open_pulator = " to_open_pulator " ;
//1、2 码盘信息模板号
public static String item_to_tray_info = " to_tray_info " ;
public static String item_to_tray_info1 = " to_tray_info1 " ;
public static String item_to_tray_info2 = " to_tray_info2 " ;
//1、2当前产量清零
public static String item_to_clear = " to_clear " ;
public static String item_to_clear1 = " to_clear1 " ;
public static String item_to_clear2 = " to_clear2 " ;
//1、2确认完成( 订单完成状态置零)
public static String item_to_confirm_finished = " to_confirm_finished " ;
public static String item_to_confirm_finished1 = " to_confirm_finished1 " ;
public static String item_to_confirm_finished2 = " to_confirm_finished2 " ;
//1、2巷道箱子长
public static String item_to_lane_box_l = " to_lane_box_l " ;
//1、2巷道箱子宽
@@ -94,15 +101,20 @@ public class ItemProtocol {
//巷道4号托盘强制满托
public static String item_to_lane4_tray_compel_full = " to_lane4_tray_compel_full " ;
//1、2巷道禁用
public static String item_to_lane_off = " to_lane_off " ;
public static String item_to_lane_off1 = " to_lane_off1 " ;
public static String item_to_lane_off2 = " to_lane_off2 " ;
//1、2工单强制完成
public static String item_to_compel_finish = " to_compel_finish " ;
public static String item_to_compel_finish1 = " to_compel_finish1 " ;
public static String item_to_compel_finish2 = " to_compel_finish2 " ;
//1、2订单生产总量
public static String item_to_order_prod_num = " to_order_prod_num " ;
public static String item_to_order_prod_num1 = " to_order_prod_num1 " ;
public static String item_to_order_prod_num2 = " to_order_prod_num2 " ;
//1、2订单需托盘总数
public static String item_to_tray_num = " to_tray_num " ;
public static String item_to_tray_num1 = " to_tray_num1 " ;
public static String item_to_tray_num2 = " to_tray_num2 " ;
//1、2工单号
public static String item_to_order = " to_order " ;
public static String item_to_order1 = " to_order1 " ;
public static String item_to_order2 = " to_order2 " ;
private HailiangStackingStationDriver driver ;
@@ -130,8 +142,11 @@ public class ItemProtocol {
public int getItem_all_ready ( ) {
return this . getOpcIntegerValue ( item_all_ready ) ;
}
public int getItem_finish ( ) {
return this . getOpcIntegerValue ( item_finish ) ;
public int getItem_finish1 ( ) {
return this . getOpcIntegerValue ( item_finish1 ) ;
}
public int getItem_finish2 ( ) {
return this . getOpcIntegerValue ( item_finish2 ) ;
}
public int getItem_is_full_1 ( ) {
return this . getOpcIntegerValue ( item_is_full_1 ) ;
@@ -160,8 +175,11 @@ public class ItemProtocol {
public int getItem_error ( ) {
return this . getOpcIntegerValue ( item_error ) ;
}
public int getItem_lane_error ( ) {
return this . getOpcIntegerValue ( item_lane_error ) ;
public int getItem_lane_error1 ( ) {
return this . getOpcIntegerValue ( item_lane_error1 ) ;
}
public int getItem_lane_error2 ( ) {
return this . getOpcIntegerValue ( item_lane_error2 ) ;
}
public int getItem_pallet_num_1 ( ) {
return this . getOpcIntegerValue ( item_pallet_num_1 ) ;
@@ -187,14 +205,23 @@ public class ItemProtocol {
public int getItem_material_4 ( ) {
return this . getOpcIntegerValue ( item_material_4 ) ;
}
public int getItem_order_now ( ) {
return this . getOpcIntegerValue ( item_order_now ) ;
public int getItem_order_now1 ( ) {
return this . getOpcIntegerValue ( item_order_now1 ) ;
}
public int getItem_tray _now ( ) {
return this . getOpcIntegerValue ( item_tray _now ) ;
public int getItem_order _now2 ( ) {
return this . getOpcIntegerValue ( item_order _now2 ) ;
}
public int getItem_order ( ) {
return this . getOpcIntegerValue ( item_order ) ;
public int getItem_tray_now1 ( ) {
return this . getOpcIntegerValue ( item_tray_now1 ) ;
}
public int getItem_tray_now2 ( ) {
return this . getOpcIntegerValue ( item_tray_now2 ) ;
}
public int getItem_order1 ( ) {
return this . getOpcIntegerValue ( item_order1 ) ;
}
public int getItem_order2 ( ) {
return this . getOpcIntegerValue ( item_order2 ) ;
}
@@ -240,7 +267,8 @@ public class ItemProtocol {
list . add ( new ItemDto ( item_move , " 光电信号 " , " DB1.B1.1 " ) ) ;
list . add ( new ItemDto ( item_line_ready , " 线体就绪 " , " DB1.B2.1 " ) ) ;
list . add ( new ItemDto ( item_all_ready , " 所有设备就绪 " , " DB1.B2.2 " ) ) ;
list . add ( new ItemDto ( item_finish , " 工单完成 " , " DB1.B2.3 " ) ) ;
list . add ( new ItemDto ( item_finish1 , " 工单完成 " , " DB1.B2.3 " ) ) ;
list . add ( new ItemDto ( item_finish2 , " 工单完成 " , " DB1.B2.4 " ) ) ;
list . add ( new ItemDto ( item_is_full_1 , " 托盘1是否满托 " , " DB1.B2.5 " ) ) ;
list . add ( new ItemDto ( item_is_full_2 , " 托盘2是否满托 " , " DB1.B2.6 " ) ) ;
list . add ( new ItemDto ( item_is_full_3 , " 托盘3是否满托 " , " DB1.B2.7 " ) ) ;
@@ -250,7 +278,8 @@ public class ItemProtocol {
list . add ( new ItemDto ( item_move_3 , " 托盘3光电信号 " , " DB1.B3.3 " ) ) ;
list . add ( new ItemDto ( item_move_4 , " 托盘4光电信号 " , " DB1.B3.4 " ) ) ;
list . add ( new ItemDto ( item_error , " 故障信息 " , " DB1.W4 " ) ) ;
list . add ( new ItemDto ( item_lane_error , " 巷道故障 " , " DB1.W10 " ) ) ;
list . add ( new ItemDto ( item_lane_error1 , " 巷道1 故障 " , " DB1.W10 " ) ) ;
list . add ( new ItemDto ( item_lane_error2 , " 巷道2故障 " , " DB1.W12 " ) ) ;
list . add ( new ItemDto ( item_pallet_num_1 , " 托盘1当前码垛箱数 " , " DB1.W64 " ) ) ;
list . add ( new ItemDto ( item_pallet_num_2 , " 托盘2当前码垛箱数 " , " DB1.W66 " ) ) ;
list . add ( new ItemDto ( item_pallet_num_3 , " 托盘3当前码垛箱数 " , " DB1.W68 " ) ) ;
@@ -259,9 +288,13 @@ public class ItemProtocol {
list . add ( new ItemDto ( item_material_2 , " 托盘2物料信息 " , " DB1.W74 " ) ) ;
list . add ( new ItemDto ( item_material_3 , " 托盘3物料信息 " , " DB1.W76 " ) ) ;
list . add ( new ItemDto ( item_material_4 , " 托盘4物料信息 " , " DB1.W78 " ) ) ;
list . add ( new ItemDto ( item_order_now , " 当前生产总量(订单实时) " , " DB1.D84 " ) ) ;
list . add ( new ItemDto ( item_tray _now , " 当前托盘总数( 实时) " , " DB1.D88 " ) ) ;
list . add ( new ItemDto ( item_order , " 工单号 " , " DB1.D156 " ) ) ;
list . add ( new ItemDto ( item_order_now1 , " 当前生产总量1 (订单1 实时) " , " DB1.D84 " ) ) ;
list . add ( new ItemDto ( item_order _now2 , " 当前生产总量2( 订单2 实时) " , " DB1.D92 " ) ) ;
list . add ( new ItemDto ( item_tray_now1 , " 当前托盘1总数( 实时) " , " DB1.D88 " ) ) ;
list . add ( new ItemDto ( item_tray_now2 , " 当前托盘2总数( 实时) " , " DB1.D96 " ) ) ;
list . add ( new ItemDto ( item_order1 , " 工单号1 " , " DB1.D156 " ) ) ;
list . add ( new ItemDto ( item_order2 , " 工单号2 " , " DB1.D160 " ) ) ;
return list ;
}
@@ -269,9 +302,12 @@ public class ItemProtocol {
ArrayList list = new ArrayList ( ) ;
list . add ( new ItemDto ( item_to_open , " 设备开关 " , " DB2.W4 " ) ) ;
list . add ( new ItemDto ( item_to_open_pulator , " 机械手开关 " , " DB2.W10 " ) ) ;
list . add ( new ItemDto ( item_to_tray_info , " 码盘信息(模板号) " , " DB2.W12 " ) ) ;
list . add ( new ItemDto ( item_to_clear , " 当前产量清零 " , " DB2.W16 " ) ) ;
list . add ( new ItemDto ( item_to_confirm_finished , " 订单确认完成 " , " DB2.W20 " ) ) ;
list . add ( new ItemDto ( item_to_tray_info1 , " 码盘信息1 (模板号) " , " DB2.W12 " ) ) ;
list . add ( new ItemDto ( item_to_tray_info2 , " 码盘信息2(模板号) " , " DB2.W14 " ) ) ;
list . add ( new ItemDto ( item_to_clear1 , " 1号当前产量清零 " , " DB2.W16 " ) ) ;
list . add ( new ItemDto ( item_to_clear2 , " 2号当前产量清零 " , " DB2.W18 " ) ) ;
list . add ( new ItemDto ( item_to_confirm_finished1 , " 订单1确认完成 " , " DB2.W20 " ) ) ;
list . add ( new ItemDto ( item_to_confirm_finished2 , " 订单2确认完成 " , " DB2.W22 " ) ) ;
list . add ( new ItemDto ( item_to_lane_box_l , " 巷道箱子长 " , " DB2.W28 " ) ) ;
list . add ( new ItemDto ( item_to_lane_box_w , " 巷道箱子宽 " , " DB2.W30 " ) ) ;
list . add ( new ItemDto ( item_to_lane_box_h , " 巷道箱子高 " , " DB2.W32 " ) ) ;
@@ -279,11 +315,16 @@ public class ItemProtocol {
list . add ( new ItemDto ( item_to_lane2_tray_compel_full , " 托盘2强制满托 " , " DB2.W42 " ) ) ;
list . add ( new ItemDto ( item_to_lane3_tray_compel_full , " 托盘3强制满托 " , " DB2.W44 " ) ) ;
list . add ( new ItemDto ( item_to_lane4_tray_compel_full , " 托盘4强制满托 " , " DB2.W46 " ) ) ;
list . add ( new ItemDto ( item_to_lane_off , " 巷道暂停 " , " DB2.W48 " ) ) ;
list . add ( new ItemDto ( item_to_compel_finish , " 工单强制完成 " , " DB2.W8 0 " ) ) ;
list . add ( new ItemDto ( item_to_order_prod_num , " 订单生产总量 " , " DB2.D84 " ) ) ;
list . add ( new ItemDto ( item_to_tray_num , " 托盘总量 " , " DB2.D88 " ) ) ;
list . add ( new ItemDto ( item_to_order , " 工单号 " , " DB2.D156 " ) ) ;
list . add ( new ItemDto ( item_to_lane_off1 , " 巷道暂停 " , " DB2.W48 " ) ) ;
list . add ( new ItemDto ( item_to_lane_off2 , " 巷道暂停 " , " DB2.W5 0 " ) ) ;
list . add ( new ItemDto ( item_to_compel_finish1 , " 工单1强制完成 " , " DB2.W80 " ) ) ;
list . add ( new ItemDto ( item_to_compel_finish2 , " 工单2强制完成 " , " DB2.W82 " ) ) ;
list . add ( new ItemDto ( item_to_order_prod_num1 , " 订单1生产总量 " , " DB2.D84 " ) ) ;
list . add ( new ItemDto ( item_to_order_prod_num2 , " 订单2生产总量 " , " DB2.D92 " ) ) ;
list . add ( new ItemDto ( item_to_tray_num1 , " 托盘1总量 " , " DB2.D88 " ) ) ;
list . add ( new ItemDto ( item_to_tray_num2 , " 托盘2总量 " , " DB2.D96 " ) ) ;
list . add ( new ItemDto ( item_to_order1 , " 工单号1 " , " DB2.D156 " ) ) ;
list . add ( new ItemDto ( item_to_order2 , " 工单号2 " , " DB2.D160 " ) ) ;
return list ;
}