CTD

Counts (integer) from a given value down to 0 1 by 1
lrsb_ctd1_aadvance
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 *)
lrsb_ctd2_aadvance
(* ST Equivalence: CTD1 is an instance of block*)
CTD1(trigger,load_cmd,100); underflow := CTD1.Q; result := CTD1.CV;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal