Omron CP1E CPU UNIT SOFTWARE User Manual page 162

Cp1e cpu unit software
Table of Contents

Advertisement

11 High-speed Counters
High-speed counter 0 PV
(in A270 and A271)
Example 2: Range Comparison
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.
High-speed counter 1
Counting mode
Circular Max. Count
Reset method
Input Setting
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.
Word
D2000
D2001
D2002
D2003
D2004
D2005
to
D2008
D2009
D2014
D2019
D2024
D2029
11-24
W0.00
0.00
0.01
Upper limit: 30,000 (7530 Hex)
Lower limit: 20,000 (4E20 Hex)
0
Counting enabled
Cyclic task
execution
Item
Use counter
Circular mode
50,000
Software reset (continue comparing)
Up/Down inputs
Setting
#61A8
Rightmost 4 digits of range 1 lower
limit
#0000
Leftmost 4 digits of range 1 lower limit
#639C
Rightmost 4 digits of range 1 upper
limit
#0000
Leftmost 4 digits of range 1 upper limit
#000C
Range 1 interrupt task number = 12 (C hex)
All
Range 2 lower and upper limit values
(Not used and do not need to be set.)
#0000
#FFFF
Disables range 2.
#FFFF
Set the fifth word for ranges 3 to 6 (listed at left) to #FFFF (Range
settings are invalid) to disable those ranges.
Processing
Cyclic task
Processing
interrupted
execution
interrupted
Interrupt task
Interrupt task
10 execution
11 execution
Setting
Function
Lower limit value: 25,000
Upper limit value: 25,500
Range 2 settings
CP1E CPU Unit Software User's Manual(W480)
Cyclic task
execution

Advertisement

Table of Contents
loading

Table of Contents