F_TRIG (Functionblock) |
Top Previous Next |
F_TRIG is a falling edge detector. It will activate the "q" output when a falling edge is detected on the "trig" input.
For a rising edge trigger, please see the R_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: q : BOOL (true/false) Output from the falling edge trigger detector.
Declaration: FUNCTION_BLOCK F_TRIG;
Example: INCLUDE rtcu.inc |