-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalarm.msd
38 lines (33 loc) · 1.63 KB
/
alarm.msd
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
package :Alarm, 'Alarms Package, these are types of events' do
basic_type :NotifcationDescription, 'DEPRECATED: The description of the Notifcation'
attr :NativeNotifcationCode, 'DEPRECATED: An Notifcation code as defined by the component'
enum :NotifcationCode, 'DEPRECATED: Types of Notifcations' do
value :FAILURE, 'A failure'
value :FAULT, 'A fault occurred'
value :CRASH, 'A spindle crash'
value :JAM, 'A component has jammed'
value :OVERLOAD, 'The component has been overloaded'
value :ESTOP, 'E-Stop was pushed'
value :MATERIAL, 'A material failure has occurred'
value :MESSAGE, 'An operators message. Used with INFO severity'
value :OTHER, 'Another Notifcation type'
# Need to complete this list
end
enum :AlarmState, 'DEPRECATED: The active or cleared state of the notification' do
value :ACTIVE, 'The notification is active'
value :CLEARED, 'The notification has been cleared'
end
enum :Severity, 'DEPRECATED: The severity of the notification' do
value :CRITICAL, 'The notification is critical'
value :ERROR, 'An error has occurred'
value :WARNING, 'A medium level notification that should be observed'
value :INFORMATION, 'This notification is for information purposes only'
end
type :Alarm, 'DEPRECATED: An Notifcation event', :Event do
member :Code, 'The Notifcation type', :NotifcationCode
member :Severity, 'The severity', 0..1
member :State, 'The state', 0..1, :AlarmState
member :NativeCode, 'The component specific Notifcation code', :NativeNotifcationCode
member :Value, 'The Notifcation\'s description', :NotifcationDescription
end
end