Standard function blocks
366
CTUD_DINT
(10050)
Illustration
Execution time
1.40 µs
Operation
The counter output (CV) value is increased by 1 if the counter input (CU) changes from
0 -> 1 and the reset input (R) is 0 and the load input (LD) is 0.
The counter output (CV) value is decreased by 1 if the counter input (CD) changes from
0 -> 1 and the load input (LD) is 0 and the reset input (R) is 0.
If the counter output has reached its minimum or maximum value, -2147483648 or
+2147483647, the counter output remains unchanged until it is reset (R) or until the load
input (LD) is set to 1.
If the load input (LD) value is 1, the preset input (PV) value is stored as the counter
output (CV) value.
The counter output (CV) is reset to 0 if the reset input (R) is 1.
The up counter status output (QU) is 1 if the counter output (CV) value > preset input
(PV) value.
The down counter status output (QD) is 1 if the counter output (CV) value < 0.
Example:
CTUD_DINT
98
TLA1 1 msec
(1)
>CU
>CD
R
LD
PV
CV
CV(98)
QU
QU(98)
QD
QD (98)
CU
CD
R
LD
PV
QU
QD
CV
prev
CV
0 -> 0
0 -> 0
0
0
2
0
1
0
0
0 -> 0
0 -> 0
0
1
2
1
0
0
2
0 -> 0
0 -> 0
1
0
2
0
1
2
0
0 -> 0
0 -> 0
1
1
2
0
1
0
0
0 -> 0
0 -> 1
0
0
2
0
1
0
0 - 1 = -1
0 -> 0
1 -> 1
0
1
2
1
0
-1
2
0 -> 0
1 -> 1
1
0
2
0
1
2
0
0 -> 0
1 -> 1
1
1
2
0
1
0
0
0 -> 1
1 -> 0
0
0
2
0
0
0
0 + 1 = 1
1 -> 1
0 -> 0
0
1
2
1
0
1
2
1 -> 1
0 -> 0
1
0
2
0
1
2
0
1 -> 1
0 -> 0
1
1
2
0
1
0
0
1 -> 1
0 -> 1
0
0
2
0
1
0
0 - 1 = -1
1 -> 1
1 -> 1
0
1
2
1
0
-1
2
1 -> 1
1 -> 1
1
0
2
0
1
2
0
1 -> 1
1 -> 1
1
1
2
0
1
0
0
CV
prev
is the previous cycle counter output value.
Summary of Contents for ACSM1 Series
Page 1: ...ABB motion control drives Firmware manual ACSM1 motion control program ...
Page 4: ......
Page 34: ...Drive programming using PC tools 34 ...
Page 86: ...Drive control and features 86 ...
Page 265: ...Parameters and firmware blocks 265 1 100 us 100 µs 2 1 ms 1 ms 3 50 ms 50 ms ...
Page 302: ...Parameter data 302 ...
Page 422: ...Application program template 422 ...
Page 430: ...Appendix A Fieldbus control 430 ...
Page 500: ...Appendix D Application examples 500 ...
Page 508: ...Appendix E Control chain and drive logic diagrams 508 ...
Page 510: ...3AFE68848270 REV H EN 2015 06 26 Contact us www abb com drives www abb com drivespartners ...