Standard function blocks
252
Operation
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. If the counter output has reached its
maximum value 32767, the counter output remains unchanged.
The counter output (CV) is reset to 0 if the reset input (R) is 1.
The status output (Q) is 1 if the counter output (CV) value > preset input (PV) value.
Example:
Inputs
Counter input (CU): Boolean
Reset input (R): Boolean
Preset input (PV): INT
Outputs
Status output (Q): Boolean
Counter output (CV): INT
CTU_DINT
(10048)
Illustration
Execution time
0.92 µs
Operation
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. If the counter output has reached its
maximum value 2147483647, the counter output remains unchanged.
The counter output (CV) is reset to 0 if the reset input (R) is 1.
The status output (Q) is 1 if the counter output (CV) value > preset input (PV) value.
Example:
R
CU
PV
Q
CV
prev
CV
0
1 -> 0
20
0
10
10
0
0 -> 1
11
1
10
10 + 1 = 11
1
1 -> 0
20
0
11
0
1
0 -> 1
5
0
0
0
0
0 -> 1
20
0
0
0 + 1 = 1
0
0 -> 1
30
1
32767
32767
CV
prev
is the previous cycle counter output value.
CTU_DINT
96
TLA1 1 msec
(1)
>CU
R
PV
CV
CV(96)
Q
Q(96)
R
CU
PV
Q
CV
prev
CV
0
1 -> 0
20
0
10
10
0
0 -> 1
11
1
10
10 + 1 = 11
1
1 -> 0
20
0
11
0
1
0 -> 1
5
0
0
0
0
0 -> 1
20
0
0
0 + 1 = 1
0
0 -> 1
30
1
2147483647
2147483647
CV
prev
is the previous cycle counter output value.
Summary of Contents for ACSM1 Series
Page 1: ...ACSM1 Firmware Manual ACSM1 Speed and Torque Control Program...
Page 2: ......
Page 4: ......
Page 12: ...Table of contents 12...
Page 49: ...Drive control and features 49...
Page 282: ...Standard function blocks 282...
Page 306: ...Application program template 306...
Page 312: ...Control chain block diagrams 312...
Page 331: ...331...
Page 332: ...332...
Page 333: ......