
Instruction Set
Counter
3-7
Counter Instructions
Instruction
Description
Count Up
CTU
Status Bits:
CU-Count Up
CD-Count Down
DN-Count Done
OV-Overflow
UN-Underflow
If the input conditions go true, counter C5:1 starts counting, incrementing by 1 every time the
rung goes from false-to-true. When the accumulated value is greater than or equal to the preset
value (10), the counter sets the counter done bit.
COUNT UP
Counter
C5:1
Preset
10
Accum
0
CTU
Rung
Condition
CU
15
DN
13
OV
12
ACC
Value
CTU
Status
False
0
0
0
0
Reset
Toggle True
1
0
0
incr by 1
Counting
True
1
1
0
>=preset
Done
True
1
1
1
>32767
Overflow