R_TRIG

Detects a rising edge of a Boolean variable
lrsb_rtr1_aadvance
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_aadvance
(* ST Equivalence: We suppose R_TRIG1 is an instance of the R_TRIG block *)
R_TRIG1(cmd); nb_edge := ANY_TO_DINT(R_TRIG1.Q) + nb_edge;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal