|
@ -32,12 +32,22 @@ public class ItemProtocol { |
|
|
public static String item_to_order_No = "to_order_No"; |
|
|
public static String item_to_order_No = "to_order_No"; |
|
|
public static String item_to_qty = "to_qty"; |
|
|
public static String item_to_qty = "to_qty"; |
|
|
public static String item_to_material_code = "to_material_code"; |
|
|
public static String item_to_material_code = "to_material_code"; |
|
|
|
|
|
public static String item_to_formula = "to_formula"; |
|
|
|
|
|
public static String item_to_brick_code = "to_brick_code"; |
|
|
public static String item_to_product_code = "to_product_code"; |
|
|
public static String item_to_product_code = "to_product_code"; |
|
|
public static String item_to_AlongSide = "to_AlongSide"; |
|
|
public static String item_to_AlongSide = "to_AlongSide"; |
|
|
public static String item_to_BshortSide = "to_BshortSide"; |
|
|
public static String item_to_BshortSide = "to_BshortSide"; |
|
|
public static String item_to_Htrapezoidal = "to_Htrapezoidal"; |
|
|
public static String item_to_Htrapezoidal = "to_Htrapezoidal"; |
|
|
public static String item_to_Wthickness = "to_Wthickness"; |
|
|
public static String item_to_Wthickness = "to_Wthickness"; |
|
|
|
|
|
public static String item_to_size_error = "to_size_error"; |
|
|
|
|
|
public static String item_to_single_weight = "to_single_weight"; |
|
|
|
|
|
public static String item_to_drawing_address = "to_drawing_address"; |
|
|
|
|
|
public static String item_to_standard_weight = "to_standard_weight"; |
|
|
|
|
|
public static String item_to_detection_error = "to_detection_error"; |
|
|
|
|
|
public static String item_to_standard_size_height1 = "to_standard_size_height1"; |
|
|
|
|
|
public static String item_to_standard_size_height2 = "to_standard_size_height2"; |
|
|
|
|
|
public static String item_to_standard_size_height3 = "to_standard_size_height3"; |
|
|
|
|
|
public static String item_to_standard_size_height4 = "to_standard_size_height4"; |
|
|
|
|
|
|
|
|
private LnshPressDeviceDriver driver; |
|
|
private LnshPressDeviceDriver driver; |
|
|
|
|
|
|
|
@ -121,6 +131,14 @@ public class ItemProtocol { |
|
|
return this.getOpcStringValue(item_to_material_code); |
|
|
return this.getOpcStringValue(item_to_material_code); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getTo_brick_code() { |
|
|
|
|
|
return this.getOpcStringValue(item_to_brick_code); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getTo_Formula() { |
|
|
|
|
|
return this.getOpcStringValue(item_to_formula); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public int getTo_Product_code() { |
|
|
public int getTo_Product_code() { |
|
|
return this.getOpcIntegerValue(item_to_product_code); |
|
|
return this.getOpcIntegerValue(item_to_product_code); |
|
|
} |
|
|
} |
|
@ -141,6 +159,23 @@ public class ItemProtocol { |
|
|
return this.getOpcIntegerValue(item_to_Wthickness); |
|
|
return this.getOpcIntegerValue(item_to_Wthickness); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getToSizeError() {return this.getOpcIntegerValue(item_to_size_error);} |
|
|
|
|
|
|
|
|
|
|
|
public int getToSingleWeight() {return this.getOpcIntegerValue(item_to_single_weight);} |
|
|
|
|
|
|
|
|
|
|
|
public int getToDrawingAddress() {return this.getOpcIntegerValue(item_to_drawing_address);} |
|
|
|
|
|
|
|
|
|
|
|
public int getToStandardWeight() {return this.getOpcIntegerValue(item_to_standard_weight);} |
|
|
|
|
|
|
|
|
|
|
|
public int getToDetectionError() {return this.getOpcIntegerValue(item_to_detection_error);} |
|
|
|
|
|
|
|
|
|
|
|
public int getToStandardSizeHeight1() {return this.getOpcIntegerValue(item_to_standard_size_height1);} |
|
|
|
|
|
|
|
|
|
|
|
public int getToStandardSizeHeight2() {return this.getOpcIntegerValue(item_to_standard_size_height2);} |
|
|
|
|
|
|
|
|
|
|
|
public int getToStandardSizeHeight3() {return this.getOpcIntegerValue(item_to_standard_size_height3);} |
|
|
|
|
|
|
|
|
|
|
|
public int getToStandardSizeHeight4() {return this.getOpcIntegerValue(item_to_standard_size_height4);} |
|
|
//是否有货
|
|
|
//是否有货
|
|
|
public int hasGoods(int move) { |
|
|
public int hasGoods(int move) { |
|
|
return move; |
|
|
return move; |
|
@ -196,11 +231,22 @@ public class ItemProtocol { |
|
|
list.add(new ItemDto(item_to_order_No, "工单号", "DB101.STRING4.50")); |
|
|
list.add(new ItemDto(item_to_order_No, "工单号", "DB101.STRING4.50")); |
|
|
list.add(new ItemDto(item_to_qty, "生产重量", "DB101.D56")); |
|
|
list.add(new ItemDto(item_to_qty, "生产重量", "DB101.D56")); |
|
|
list.add(new ItemDto(item_to_material_code, "下发物料编号", "DB101.STRING60.50")); |
|
|
list.add(new ItemDto(item_to_material_code, "下发物料编号", "DB101.STRING60.50")); |
|
|
list.add(new ItemDto(item_to_product_code, "产品编号", "DB101.W112")); |
|
|
list.add(new ItemDto(item_to_brick_code, "砖型代号", "DB101.STRING112.50")); |
|
|
list.add(new ItemDto(item_to_AlongSide, "A长边", "DB101.W114")); |
|
|
list.add(new ItemDto(item_to_formula, "配方代号", "DB101.STRING164.50")); |
|
|
list.add(new ItemDto(item_to_BshortSide, "B短边", "DB101.W116")); |
|
|
list.add(new ItemDto(item_to_product_code, "产品编号", "DB101.W216")); |
|
|
list.add(new ItemDto(item_to_Htrapezoidal, "H梯形高", "DB101.W118")); |
|
|
list.add(new ItemDto(item_to_AlongSide, "A长边", "DB101.W218")); |
|
|
list.add(new ItemDto(item_to_Wthickness, "W厚度", "DB101.W120")); |
|
|
list.add(new ItemDto(item_to_BshortSide, "B短边", "DB101.W220")); |
|
|
|
|
|
list.add(new ItemDto(item_to_Htrapezoidal, "H梯形高", "DB101.W222")); |
|
|
|
|
|
list.add(new ItemDto(item_to_Wthickness, "W厚度", "DB101.W224")); |
|
|
|
|
|
list.add(new ItemDto(item_to_size_error, "尺寸允许误差", "DB101.W228")); |
|
|
|
|
|
list.add(new ItemDto(item_to_single_weight, "单重允许误差", "DB101.W232")); |
|
|
|
|
|
list.add(new ItemDto(item_to_drawing_address, "图纸地址", "DB101.W236")); |
|
|
|
|
|
list.add(new ItemDto(item_to_standard_weight, "标准重量", "DB101.W240")); |
|
|
|
|
|
list.add(new ItemDto(item_to_detection_error, "检测误差值", "DB101.W244")); |
|
|
|
|
|
list.add(new ItemDto(item_to_standard_size_height1, "标准尺寸高度1", "DB101.W248")); |
|
|
|
|
|
list.add(new ItemDto(item_to_standard_size_height2, "标准尺寸高度2", "DB101.W252")); |
|
|
|
|
|
list.add(new ItemDto(item_to_standard_size_height3, "标准尺寸高度3", "DB101.W256")); |
|
|
|
|
|
list.add(new ItemDto(item_to_standard_size_height4, "标准尺寸高度4", "DB101.W260")); |
|
|
return list; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|