RF_TRIG (Functionblock) |
Top Previous Next |
RF_TRIG is a rising and falling edge detector. It will activate the "rq" output for one execution when a rising edge is detected on the "trig" input. The "fq" output will be active for one scan if a falling edge is detected on "trig" .
For a rising edge trigger, please see the R_TRIG function block. For a falling edge trigger, please see the F_TRIG function block.
Input: trig : BOOL (true/false) On the falling edge of this input, the output "q" will go high for one scan.
Output: rq : BOOL (true/false) Output from the rising edge trigger detector.
fq : BOOL (true/false) Output from the falling edge trigger detector.
Declaration: FUNCTION_BLOCK RF_TRIG;
Example: INCLUDE rtcu.inc |