CTU
Counts (integer) from 0 up to a given value 1 by 1

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

(* ST Equivalence: CTU1 is an instance of CTU block*)
CTU1(command,NOT(auto_mode),100); overflow := CTU1.Q; result := CTU1.CV;
Provide Feedback