eeros_architecture:safety_system:properties
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
eeros_architecture:safety_system:properties [2017/02/27 15:25] – [Level Actions] graf | eeros_architecture:safety_system:properties [2017/07/25 08:46] – [Safety Events] graf | ||
---|---|---|---|
Line 9: | Line 9: | ||
Define critical output signals, get references to them from the HAL and assign them. | Define critical output signals, get references to them from the HAL and assign them. | ||
<code c> | <code c> | ||
- | eeros:: | + | eeros:: |
- | eeros:: | + | eeros:: |
HAL& hal = HAL:: | HAL& hal = HAL:: | ||
- | watchdog = hal.getLogicSystemOutput(" | + | watchdog = hal.getLogicOutput(" |
- | enable0 = hal.getLogicSystemOutput(" | + | enable0 = hal.getLogicOutput(" |
... | ... | ||
criticalOutputs = {watchdog, enable0, ...}; | criticalOutputs = {watchdog, enable0, ...}; | ||
Line 22: | Line 22: | ||
Define critical input signals, get references to them from the HAL and assign them. | Define critical input signals, get references to them from the HAL and assign them. | ||
<code c> | <code c> | ||
- | eeros:: | + | eeros:: |
- | eeros:: | + | eeros:: |
| | ||
- | q0 = hal.getRealSystemInput(" | + | q0 = hal.getScalableInput(" |
- | limitSwitchQ0p = hal.getLogicSystemInput(" | + | limitSwitchQ0p = hal.getLogicInput(" |
... | ... | ||
criticalInputs = {q0, runButton, ...}; | criticalInputs = {q0, runButton, ...}; | ||
Line 62: | Line 62: | ||
addEventToLevelAndAbove(slPowerOn, | addEventToLevelAndAbove(slPowerOn, | ||
</ | </ | ||
+ | Two more functions serve a similar purpose. | ||
+ | <code c> | ||
+ | // Add events to all levels equal or smaller than srcLevel | ||
+ | addEventToLevelAndBelow(srcLevel, | ||
+ | </ | ||
+ | |||
===== Input and Output Actions ===== | ===== Input and Output Actions ===== |
eeros_architecture/safety_system/properties.txt · Last modified: 2024/06/10 09:45 by ursgraf