Machinekit Documentation
HAL Component — SAFETY_LATCHV2
INSTANTIABLE COMPONENTS — General
All instantiable components can be loaded in two manners
Using loadrt with or without count= | names= parameters as per legacy components
Using newinst, which names the instance and allows further parameters and arguments
primarily pincount= which can set the number of pins created for that instance (where applicable)
NAME
safety_latchv2 — latch for error signals
SYNOPSIS
safety_latchv2
USAGE SYNOPSIS
loadrt safety_latchv2
OR
newinst safety_latchv2 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
DESCRIPTION
HAL component that implements a safety latch for error singnals with customizable harm, healing and latching features.
When the component is not enabled the error input value is forwarded to output without further modififactions.
If error-in is true the error count is increased by harm. If error-in is false the error count is decreased by heal. When the error count exceeds the threscold value error-out is set to true. If latching is false the error-out pin will only return to false when reset is set to true.
The inputs pin min and max clamp the error count value to a specified range.
FUNCTIONS
safety_latchv2.N.funct ( OR <newinstname>.funct )
PINS
AUTHOR
Alexander Roessler
LICENCE
GPL