领胜LDS 键盘AOI检测项目
patrick.xu
2022-02-24 3322022068ab818912d6f5d9e5eb31f51cc639c2
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
using Bro.Common.Base;
using Bro.Common.Base.UI;
using Bro.Common.Helper;
using Bro.Common.Interface;
using System.Collections.Generic;
using System.ComponentModel;
 
namespace SchneiderPLC_ModbusTcp
{
    [Device("SchneiderPLC", "施耐德PLC", EnumHelper.DeviceAttributeType.OperationConfig)]
    public class SchneiderOperationConfig : PLCOperationConfigBase
    {
        public int StartAddress { get; set; }
 
        public int OpLength { get; set; }
 
        public List<int> OpValues { get; set; }
    }
 
    [Device("SchneiderPLC", "施耐德PLC", EnumHelper.DeviceAttributeType.InitialConfig)]
    public class SchneiderInitialConfig : PLCInitialConfigBase
    {
        [Category("PLC设置")]
        [Description("PLCIP地址")]
        [DisplayName("PLC IP")]
        public string PLCIpAddress { get; set; }
 
        [Category("PLC设置")]
        [Description("PLC端口号")]
        [DisplayName("PLC端口")]
        [DefaultValue(502)]
        public int PLCPort { get; set; } = 502;
 
        [Category("PLC设置")]
        [Description("PLC节点号")]
        [DisplayName("PLC节点")]
        public int PLCUnitNum { get; set; } = 1;
    }
 
    [Device("SchneiderPLC", "施耐德PLC", EnumHelper.DeviceAttributeType.RunCtrl)]
    public class SchneiderPLCRunCtrl : CtrlPLCRunBase
    {
        public SchneiderPLCRunCtrl(IDevice device) : base(device) { }
    }
}