chengsc
2025-04-14 d2588d8d1305171e7716055b23a6b5706e9cc04b
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
 
namespace WCS.Application;
/// <summary>
/// PLC类型枚举
/// </summary>
[Description("PLC类型枚举")]
public enum PLCTypeEnum
{
    /// <summary>
    /// 堆跺机
    /// </summary>
    [Description("堆跺机")]
    StackingMachine = 0,
    /// <summary>
    /// 托盘输送线
    /// </summary>
    [Description("托盘输送线")]
    ConveyorLine = 1,
    /// <summary>
    /// AGV小车
    /// </summary>
    [Description("AGV小车")]
    AGV = 2,
    /// <summary>
    /// 叠拆托机
    /// </summary>
    [Description("叠拆托机")]
    PalletMachine = 3,
    /// <summary>
    /// 件箱输送线
    /// </summary>
    [Description("件箱输送线")]
    BoxConveyorLine = 4,
    /// <summary>
    /// 码垛机器人
    /// </summary>
    [Description("码垛机器人")]
    RobotPalletizer = 5,
    /// <summary>
    /// 拆垛机器人
    /// </summary>
    [Description("拆垛机器人")]
    StackingRobot = 6,
    /// <summary>
    /// 穿梭车
    /// </summary>
    [Description("穿梭车")]
    ShuttleCar = 7
}
 
/// <summary>
/// 设备级别枚举
/// </summary>
[Description("设备级别枚举")]
public enum DeviceLevelEnum
{
    /// <summary>
    /// DB区域级别
    /// </summary>
    [Description("DB区域级别")]
    DB = 1,
    /// <summary>
    /// 工位级别
    /// </summary>
    [Description("工位级别")]
    Station = 2,
}
/// <summary>
/// PLC枚举
/// </summary>
[Description("PLC枚举")]
public enum PLCEnum
{
    //未定义
    [Description("未定义")]
    None = 0,
    //西门子S7-200
    [Description("西门子S7-200")]
    S7_200 = 1,
    //西门子S7-200Smar
    [Description("西门子S7-200Smar")]
    S7_200Smart = 2,
    //西门子S7-300
    [Description("西门子S7-300")]
    S7_300 = 3,
    //西门子S7-400
    [Description("西门子S7-400")]
    S7_400 = 4,
    //西门子S7-1200
    [Description("西门子S7-1200")]
    S7_1200 = 5,
    //西门子S7-1500
    [Description("西门子S7-1500")]
    S7_1500 = 6,
    //ModBusTcp
    [Description("ModBusTcp")]
    ModBusTcp = 7,
    //ModBusRtu
    [Description("ModBusRtu")]
    ModBusRtu = 8,
    //ModBusAscii
    [Description("ModBusAscii")]
    ModBusAscii = 9,
    //ModbusRtuOverTcp
    [Description("ModbusRtuOverTcp")]
    ModbusRtuOverTcp = 10,
    //三菱
    [Description("三菱")]
    Mitsubishi = 11,
    //欧姆龙
    [Description("欧姆龙")]
    OmronFins = 12,
    //罗克韦尔
    [Description("罗克韦尔")]
    AllenBradley = 13,
 
    //HTTP
    [Description("HTTP")]
    HTTP = 14,
}
/// <summary>
/// PLC数据类型枚举
/// </summary>
[Description("PLC数据类型枚举")]
public enum PLCDataTypeEnum
{
    //Bit
    [Description("Bit")]
    Bit = 1,
    //Byte
    [Description("Byte")]
    Byte = 2,
    //Short
    [Description("Short")]
    Short = 3,
    //UShort
    [Description("UShort")]
    UShort = 4,
    //Int
    [Description("Int")]
    Int = 5,
    //DInt
    [Description("UInt")]
    UInt = 6,
    //Long
    [Description("Long")]
    Long = 7,
    //ULong
    [Description("ULong")]
    ULong = 8,
    //Float
    [Description("Float")]
    Float = 9,
    //Double
    [Description("Double")]
    Double = 10,
    //String
    [Description("String")]
    String = 11,
}
/// <summary>
/// 交互类型
/// </summary>
[Description("交互类型")]
public enum DeviceTypeEnum
{
    /// <summary>
    /// 业务
    /// </summary>
    [Description("业务")]
    Business = 1,
    /// <summary>
    /// 页面展示
    /// </summary>
    [Description("页面展示")]
    Show = 2,
}