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