High-speed counter instructions
897
Part III FP Instructions
Incremental and decremental counting with maximum target value control:
14000
10000
8000
4000
2000
t [ms]
y
1
2
0
1
2
3
4
3
y Elapsed value of high-speed counter 14000 Maximum target value
1
Execution condition 10000 Target value 4
2
High-speed counter control flag 8000 Target value 3
3
Output relay 0-4 4000 Target value 2
2000 Target value 1
Overview:
Maximum target value
control:
enabled disabled (see note)
Incremental counting:
The pointer of the data table
moves from target value 1
to the last target value.
When the elapsed value reaches the
maximum target value:
the pointer returns to target
value 1
output relay 0 turns to TRUE
the elapsed value is set to 0
When the elapsed value reaches the last
target value:
the pointer returns to target value 1
output relay 0 turns to TRUE
the elapsed value continues to
increment and restarts at the
minimum value of the ring counter
Decremental counting:
The pointer of the data table
moves from the last target
value to target value 1.
When the elapsed value reaches the
value -1:
the pointer returns to the last
target value
the output relay corresponding
to the last target value turns to
TRUE
the elapsed value is set to the
maximum target value
When the elapsed value reaches the
value -1:
the pointer returns to target value n
the output relay corresponding to
the last target value turns to TRUE
the elapsed value continues to
decrement and restarts at the
maximum value of the ring counter
Provided that neither a reset input nor a software reset is being used.
Hardware reset operation
Channel Hardware reset input
0
1
X2
2
3
X5