Ctud_Dint - ABB ACSM1 Firmware Manual

Motion control program
Hide thumbs Also See for ACSM1:
Table of Contents

Advertisement

CTUD_DINT

(10050)
Illustration
Execution time
Operation
CTUD_DINT
TLA1 1 msec
>CU
>CD
R
LD
PV
1.40 µs
The counter output (CV) value is increased by 1 if the counter input (CU) value changes
from 0 -> 1 and the reset input (R) value is 0.
The counter output (CV) value is decreased by 1 if the counter input (CD) value
changes from 0 -> 1 and the load input (LD) value 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.
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:
CU
CD
R
0 -> 0
0 -> 0
0
0 -> 0
0 -> 0
0
0 -> 0
0 -> 0
1
0 -> 0
0 -> 0
1
0 -> 0
0 -> 1
0
0 -> 0
1 -> 1
0
0 -> 0
1 -> 1
1
0 -> 0
1 -> 1
1
0 -> 1
1 -> 0
0
1 -> 1
0 -> 0
0
1 -> 1
0 -> 0
1
1 -> 1
0 -> 0
1
1 -> 1
0 -> 1
0
1 -> 1
1 -> 1
0
1 -> 1
1 -> 1
1
1 -> 1
1 -> 1
1
CV
is the previous cycle counter output value.
prev
98
(1)
CV(98)
CV
QU(98)
QU
QD(98)
QD
LD
PV
QU
0
2
0
1
2
1
0
2
0
1
2
0
0
2
0
1
2
1
0
2
0
1
2
0
0
2
0
1
2
1
0
2
0
1
2
0
0
2
0
1
2
1
0
2
0
1
2
0
QD
CV
CV
prev
1
0
0
0
0
2
1
2
0
1
0
0
1
0
0 - 1 = -1
0
-1
2
1
2
0
1
0
0
0
0
0 + 1 = 1
0
1
2
1
2
0
1
0
0
1
0
0 - 1 = -1
0
-1
2
1
2
0
1
0
0
Standard function blocks
323

Advertisement

Table of Contents
loading

Table of Contents