eeros_architecture:safety_system:io_actions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eeros_architecture:safety_system:io_actions [2016/11/06 08:13] – [check(...)] graf | eeros_architecture:safety_system:io_actions [2021/07/08 20:09] (current) – [range(...)] ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Input / Output Actions ====== | ====== Input / Output Actions ====== | ||
- | For each safety level all the critical inputs must be checked and all the critical outputs must be driven with a signal. | + | For each safety level all the critical inputs must be checked and all the critical outputs must be driven with a signal. |
===== Input Action ==== | ===== Input Action ==== | ||
Line 7: | Line 7: | ||
==== ignore(...) ==== | ==== ignore(...) ==== | ||
<code c> | <code c> | ||
- | ignore(eeros:: | + | ignore(eeros:: |
</ | </ | ||
The //ignore// action simply ignores the given input. There is no action to be taken by the safety system. As an example, the level //slOff// ignores the state on the signal // | The //ignore// action simply ignores the given input. There is no action to be taken by the safety system. As an example, the level //slOff// ignores the state on the signal // | ||
Line 20: | Line 20: | ||
==== check(...) ==== | ==== check(...) ==== | ||
<code c> | <code c> | ||
- | check(eeros:: | + | check(eeros:: |
</ | </ | ||
The //check// action compares the value of the parameter //value// with the value of the system input. If the values are not the same an event is fired. The example below shows how a limit switch is checked. If the switch is //true// a // | The //check// action compares the value of the parameter //value// with the value of the system input. If the values are not the same an event is fired. The example below shows how a limit switch is checked. If the switch is //true// a // | ||
Line 29: | Line 29: | ||
==== range(...) ==== | ==== range(...) ==== | ||
<code c> | <code c> | ||
- | range(eeros:: | + | range(eeros:: |
</ | </ | ||
- | The //range// action checks if the value of the input is in the range of min to max, and if this is not the case, an event is fired. | + | The //range// action checks if the value of the input is in the range of min to max, and if this is not the case, an event is fired. If the parameter '' |
- | In the following example the //range// action tests whether the value of //q0// is in the interval from 0.0 to 6.283. If not, the event // | + | In the following example the //range// action tests whether the value of //q0// is in the interval from 0.0 to 6.283. If not, the event // |
<code c> | <code c> | ||
- | | + | |
</ | </ | ||
Line 43: | Line 43: | ||
==== set(...) ==== | ==== set(...) ==== | ||
<code c> | <code c> | ||
- | set(eeros:: | + | set(eeros:: |
</ | </ | ||
The //set// action sets an output to a certain value, e.g.: | The //set// action sets an output to a certain value, e.g.: | ||
<code c> | <code c> | ||
- | | + | |
</ | </ | ||
==== leave(...) ==== | ==== leave(...) ==== | ||
<code c> | <code c> | ||
- | leave(eeros:: | + | leave(eeros:: |
</ | </ | ||
The //leave// action does not change the current state or value of an output. This is particularly helpful if a certain safety level can be reached from various other levels with outputs set in those levels, and the current level does not want to change a certain output. | The //leave// action does not change the current state or value of an output. This is particularly helpful if a certain safety level can be reached from various other levels with outputs set in those levels, and the current level does not want to change a certain output. | ||
<code c> | <code c> | ||
- | | + | |
</ | </ | ||
==== toggle(...) ==== | ==== toggle(...) ==== | ||
<code c> | <code c> | ||
- | toggle(eeros:: | + | toggle(eeros:: |
</ | </ | ||
The //toggle// action changes thew current state each time the safety system runs. Please keep in mind that the safety system runs with the highest priority and highest frequency of the whole system. //toggle// is generally used to deliver a watchdog signal. | The //toggle// action changes thew current state each time the safety system runs. Please keep in mind that the safety system runs with the highest priority and highest frequency of the whole system. //toggle// is generally used to deliver a watchdog signal. | ||
<code c> | <code c> | ||
- | | + | |
</ | </ |
eeros_architecture/safety_system/io_actions.1478416420.txt.gz · Last modified: 2016/11/06 08:13 by graf