-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCommandParams.cs
65 lines (61 loc) · 2.08 KB
/
CommandParams.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IEDExplorer
{
public enum CommandType
{
SingleCommand,
DoubleCommand,
IntegerCommand,
EnumCommand,
BinaryStepCommand,
AnalogueSetpoint,
AnalogueByBinary,
}
public enum CommandCtrlModel
{
State_Only = 0,
Direct_Control_With_Normal_Security,
Select_Before_Operate_With_Normal_Security,
Direct_Control_With_Enhanced_Security,
Select_Before_Operate_With_Enhanced_Security,
Unknown,
}
public class CommandParams
{
public CommandType CommType;
public scsm_MMS_TypeEnum DataType;
public CommandCtrlModel CommandFlowFlag;
public object ctlVal;
public OrCat orCat;
public string orIdent;
public DateTime T;
public bool Test;
public bool interlockCheck;
public bool synchroCheck;
public string Address;
}
public enum OrCat
{
/** Not supported - should not be used */
NOT_SUPPORTED = 0,
/** Control operation issued from an operator using a client located at bay level */
BAY_CONTROL = 1,
/** Control operation issued from an operator using a client located at station level */
STATION_CONTROL = 2,
/** Control operation from a remote operator outside the substation (for example network control center) */
REMOTE_CONTROL = 3,
/** Control operation issued from an automatic function at bay level */
AUTOMATIC_BAY = 4,
/** Control operation issued from an automatic function at station level */
AUTOMATIC_STATION = 5,
/** Control operation issued from a automatic function outside of the substation */
AUTOMATIC_REMOTE = 6,
/** Control operation issued from a maintenance/service tool */
MAINTENANCE = 7,
/** Status change occurred without control action (for example external trip of a circuit breaker or failure inside the breaker) */
PROCESS = 8
}
}