FallingTrigger
- Namespace
- ZCore
- Implements
FUNCTION_BLOCK FallingTrigger IMPLEMENTS ZCore.ITrigger
This function block can be used to check if a variable changed from TRUE to FALSE by providing it to the method (Trigger)[xref:ZCore.FallingTrigger#Trigger].
If that happens, the trigger method returns TRUE for exactly one call. The function block implements the same behavior as F_TRIG.
Methods
HasTriggered
METHOD HasTriggered () : BOOL
returns TRUE if the last call to Trigger returned TRUE as well
Returns
- BOOL
Trigger
METHOD Trigger (
[input] input : BOOL) : BOOL
Returns TRUE if input changed from TRUE to FALSE in consecutive calls to this method.
IF falling.Trigger(_io.IsActive())
THEN
;(* do something *);
END_IF
Inputs
inputBOOLvariable or output of a function/function block which should be observed to a falling trigger
Returns
- BOOL