M182轴承端盖外观缺陷AOI
kingno
2025-05-26 5a405c7dce20d8c79a733c9c786cc42eb59fe81c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using Bro.Common.Helper;
using Bro.Common.Model;
using Bro.M141.Process;
using System.ComponentModel;
using System.Drawing.Design;
 
namespace Bro.M141_AOI2.Process
{
    [Process("AOI2", EnumHelper.DeviceAttributeType.InitialConfig)]
    public class AOI2Config : M141Config
    {
        [Category("工位2配置")]
        [Description("工位2检测运动点位集合")]
        [DisplayName("工位2检测运动点位")]
        [TypeConverter(typeof(CollectionCountConvert))]
        [Editor(typeof(ComplexCollectionEditor<CheckPoint>), typeof(UITypeEditor))]
        public List<CheckPoint> CheckPoints_P2 { get; set; } = new List<CheckPoint>();
 
 
        [Category("工位1配置")]
        [Description("工位1检测运动点位集合")]
        [DisplayName("工位1检测运动点位")]
        [TypeConverter(typeof(CollectionCountConvert))]
        [Editor(typeof(ComplexCollectionEditor<CheckPoint>), typeof(UITypeEditor))]
        public List<CheckPoint> CheckPoints_P1 { get; set; } = new List<CheckPoint>();
 
        //[Category("工位3配置")]
        //[Description("产品测量点位集合")]
        //[DisplayName("产品测量点位集合")]
        //[TypeConverter(typeof(CollectionCountConvert))]
        //[Editor(typeof(ComplexCollectionEditor<ContourPoint>), typeof(UITypeEditor))]
        //public List<ContourPoint> MeasurePointCollection { get; set; } = new List<ContourPoint>();
 
        //[Category("工位3配置")]
        //[Description("检测项配置集合,设置包含组合点位的检测项")]
        //[DisplayName("检测项配置集合")]
        //[TypeConverter(typeof(CollectionCountConvert))]
        //[Editor(typeof(ComplexCollectionEditor<MeasureItemBind>), typeof(UITypeEditor))]
        //public List<MeasureItemBind> MeasureItemBinds { get; set; } = new List<MeasureItemBind>();
 
        //[Category("工位3配置")]
        //[DisplayName("轮廓点计算偏移")]
        //[Description("计算轮廓点位置时的点位偏移大小,单位mm")]
        //public float CountLineShift { get; set; } = 0.5f;
 
        [Category("条码配置")]
        [Description("工位1产品条码正则判断表达式,设置为空时不需要判断")]
        [DisplayName("产品条码判断")]
        public string BarcodeRegex { get; set; } = "";
 
        [Category("条码配置")]
        [Description("选择条码标准配置信息,方便条码NG输出")]
        [DisplayName("条码标准")]
        [TypeConverter(typeof(SpecCodeSelectorConverter))]
        public string BarcodeSpecCode { get; set; } = "";
    }
}