5.11 Standard Counter Function Blocks
5.11.2 Down counter
5-197
5
APPLICATION
FUNCTIONS
CTD(_E)
CTD(_E)
5.11.2 Down counter
CTD(_E)
Function
Operation processing
Counts down (-1) when is turned ON.
sets the initial value for subtraction.
turns ON when count value reaches 0.
When is turned ON, turns OFF and initial value for subtraction is set for count value
.
CTD(_E)
_E: With EN/ENO
indicates any of the following
functions.
CTD CTD_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s1:
Count signal input :Bit
s2:
Count reset :Bit
n:
Count start value :Word (signed)
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error or stop) :Bit
d1:
Count match output :Bit
d2:
Count value :Word (signed)
Universal
UD
High
Performance
CUD_E
(EN,
s1, s2, n, d1, d2
);
ENO:=
Structured ladder
ST
EN ENO
s1 d1
d2
s2
n
CTD_E
d2
s1
n
d1
s2
d1
n
d2