R_TRIG
Detects a rising edge of a Boolean variable

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 *)

(* 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