User Tools

Site Tools


eeros_architecture:safety_system:io_actions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eeros_architecture:safety_system:io_actions [2016/11/29 14:16] – [toggle(...)] grafeeros_architecture:safety_system:io_actions [2021/07/08 20:09] (current) – [range(...)] ursgraf
Line 29: Line 29:
 ==== range(...) ==== ==== range(...) ====
 <code c> <code c>
-  range(eeros::hal::Input<T>* input, T min, T max, SafetyEvent event);+  range(eeros::hal::Input<T>* input, T min, T max, SafetyEvent event, bool offRange = false);
 </code> </code>
-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 ''offRange'' is set to true, the //range// action checks if the value is lower then min or higher than max
  
 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 //doMotionStopping// is fired, which causes a transition to the level //slMotionStopping//. 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 //doMotionStopping// is fired, which causes a transition to the level //slMotionStopping//.
eeros_architecture/safety_system/io_actions.1480425411.txt.gz · Last modified: 2016/11/29 14:16 (external edit)