CTD
Counts (integer) from a given value down to 0 1 by 1

Arguments | ||
---|---|---|
CD | BOOL | Counting input (down-counting when CD is a rising edge) |
LOAD | BOOL | Load command (dominant) (CV = PV when LOAD is TRUE) |
PV | DINT | Programmed initial value |
Q | BOOL | Underflow: TRUE when CV <= 0 |
CV | DINT | Counter result |
Example
(* FBD program using the CTD block *)

(* ST Equivalence: CTD1 is an instance of block*)
CTD1(trigger,load_cmd,100); underflow := CTD1.Q; result := CTD1.CV;
Provide Feedback