Alarm Devices
2 minute read
Alarm devices can be used to generate output signals based on a defined input source. Common use is to control RGB light or generate beeper signals.
How To Configure Alarm Device Input Signal
The input signal for the alarm devices are configurable via xxx.link.json. Per default the Alarm device input for the beeper and light is linked to Motorcortex states.
Inside base.link.json
, the state is linked to the Beeper/Light input.
{
"Name": "From Logic To Alarm",
"SystemMode": "All",
"Enable": true,
"Links": [
{
"Source": {
"Path": "root/Logic/state"
},
"Destination": {
"Path": "root/AlarmDevices/Beeper/input"
}
},
{
"Source": {
"Path": "root/Logic/state"
},
"Destination": {
"Path": "root/AlarmDevices/Light/input"
}
}
]
},
Default motorcortex state information (root/Logic/state
):
INIT_S = 0
OFF_S = 1
IDLE_S = 2
PAUSED_S = 3
ENGAGED_S = 4
HOMING_S = 5
FORCEDIDLE_S = 6
ESTOP_OFF_S = 7
OFF_TO_IDLE_T = 102
OFF_TO_REFERENCING_T = 105
IDLE_TO_OFF_T = 201
PAUSED_TO_IDLE_T = 302
IDLE_TO_ENGAGED_T = 204
ENGAGED_TO_PAUSED_T = 403
TO_FORCEDIDLE_T = 600
RESET_FORCEDIDLE_T = 602
TO_ESTOP_T = 700
RESET_ESTOP_T = 701
You can change the “Source Path” to your preferred input path for example a user-parameter.
How To Configure Alarm Device VIA DESK-Tool
You can configure the alarm device parameters via the DESK-Tool, the provided example is for Light:
Desk parameter: Prefix: root/AlarmDevices/Light/.. | Description: |
---|---|
input | Input parameter: default: root/Logic/state. |
defaultOutput | If no sequencer is active this value is written to the output. |
output | Generated output based on the input, defaultOutput and configured sequencer. |
../Sequencer0x/.. | |
channel_0x | 5-channel configurable sequence. |
durations | 5-channel, time of active signal in secondes, applied to every channel_0x. |
ids | If the input is equal to one of the defined ids the sequencer is Enabled, default not used = -1. |
Example Constant Output Signal: ch0 output = 1 if input = 1:
Example Interval Output Signal: ch0 output = switching between 1 and 0 at 1 second interval if input = 1:
How To Link Alarm Device Output To A Digital Output.
- Make sure you configured a Digital Output Device via ECAT-tool.
- How to configure a Digital In/Out Device?
- Open ECAT-Tool and Link
root/AlarmDevices/Light/output ch0
to Digital Output01,
- How to Link Motorcortex parameter to Digital Output?