CTU

Counts (integer) from 0 up to a given value 1 by 1
lrsb_ctu1_aadvance
Arguments
CU
BOOL
Counting input (counting when CU is TRUE)
RESET
BOOL
Reset command (dominant)
PV
DINT
Programmed maximum value
Q
BOOL
Overflow: TRUE when CV >= PV
CV
DINT
Counter result
Example
(* FBD program using the CTU block *)
lrsb_ctu2_aadvance
(* ST Equivalence: CTU1 is an instance of CTU block*)
CTU1(command,NOT(auto_mode),100); overflow := CTU1.Q; result := CTU1.CV;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal