R_TRIG

Detects a rising edge of a Boolean variable.
lrsb_rtr1
Arguments
CLK
BOOL
Any Boolean variable
Q
BOOL
TRUE when CLK rises from FALSE to TRUE
FALSE in all other cases
Example
(* FBD program using the R_TRIG block *)
lrsb_rtr2
(* ST Equivalence: We suppose R_TRIG1 is an instance of the R_TRIG block *)
R_TRIG1(cmd); nb_edge := ANA(R_TRIG1.Q) + nb_edge;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal