11 High-speed Counters
11-24
CP1E CPU Unit Software User’s Manual(W480)
In this example, high-speed counter 1 operates in circular (ring) mode and starts interrupt task 12
when the PV is between 25,000 (0000 61A8 hex) and 25,500 (0000 639C hex).
The maximum ring count is set to 50,000 (0000 C350 hex).
1
Set high-speed counter 1 on the PLC Setup’s Built-in Input Tab Page.
2
Set the range comparison table starting at word D2000. Even though range 1 is the only range
being used, all 30 words must still be dedicated to the range comparison table.
Example 2: Range Comparison
Item Setting
High-speed counter 1 Use counter
Counting mode Circular mode
Circular Max. Count 50,000
Reset method Software reset (continue comparing)
Input Setting Up/Down inputs
Word Setting Function
D2000 #61A8 Rightmost 4 digits of range 1 lower
limit
Lower limit value: 25,000
D2001 #0000 Leftmost 4 digits of range 1 lower limit
D2002 #639C Rightmost 4 digits of range 1 upper
limit
Upper limit value: 25,500
D2003 #0000 Leftmost 4 digits of range 1 upper limit
D2004 #000C Range 1 interrupt task number = 12 (C hex)
D2005
to
D2008
All
#0000
Range 2 lower and upper limit values
(Not used and do not need to be set.)
Range 2 settings
D2009 #FFFF Disables range 2.
~
D2014
D2019
D2024
D2029
#FFFF Set the fifth word for ranges 3 to 6 (listed at left) to #FFFF (Range
settings are invalid) to disable those ranges.
W0.00
0
0.00
0.01
High-speed counter 0 PV
(in A270 and A271)
Counting enabled
Cyclic task
execution
Cyclic task
execution
Cyclic task
execution
Processing
interrupted
Processing
interrupted
Interrupt task
10 execution
Interrupt task
11 execution
Lower limit:
20,000 (4E20 Hex)
Upper limit:
30,000 (7530 Hex)