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