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 := ANA(R_TRIG1.Q) + nb_edge;
Provide Feedback