EasyManuals Logo

Omron CJ2M-CPU Series User Manual

Omron CJ2M-CPU Series
278 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #142 background imageLoading...
Page #142 background image
7 High-speed Counters
7-32
CJ2M CPU Unit Pulse I/O Module User’s Manual
2 Set the target-value comparison table in words D1000 to D1006.
3 Create the programs for interrupt tasks 10 and 11.
4 Use the CTBL(882) instruction to start the comparison operation with high-speed counter 0 and
interrupt tasks 10 and 11.
When execution condition W0.00 turns ON, the comparison starts for high-speed counter 0.
When the PV of high speed counter 0 is incremented to 30,000, cyclic task execution is
interrupted, and interrupt task 10 is executed.
When the PV of high speed counter 0 is decremented to 20,000, cyclic task execution is
interrupted, and interrupt task 11 is executed.
When interrupt task 10 or 11 execution has been completed, execution of the interrupted
cyclic task resumes.
Word Setting Description
D1000 #0002 Number of target values = 2
D1001 #7530 Rightmost 4 digits of the target value 1 data (30,000) Target value = 30,000
D1002 #0000 Leftmost 4 digits of the target value 1 data (30,000)
D1003 #000A Target value 1
Bit 15: 0 (incrementing)
Bits 00 to 07: A hex (interrupt task number 10)
D1004 #4E20 Rightmost 4 digits of the target value 2 data (20,000) Target value = 20,000
D1005 #0000 Leftmost 4 digits of the target value 2 data (20,000)
D1006 #800B Target value 2
Bit 15: 1 (decrementing)
Bits 00 to 07: B hex (interrupt task number 11)
@CTBL
#0000
#0000
D1000
W0.00
Uses high-speed counter 0.
Registers a target value comparison
table and starts comparison.
First comparison table word
W0.00
0
CIO 2960.08
CIO 2960.09
A270 and A271
(High-speed
Counter 0 PV)
Counting enabled
Cyclic task
processing
Cyclic task
processing
Cyclic task
processing
Interrupted Interrupted
Interrupt task
10 processing
Interrupt task
11 processing
Target value = 20,000 (4E20 hex)
Target value = 30,000 (7530 hex)

Table of Contents

Other manuals for Omron CJ2M-CPU Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ2M-CPU Series and is the answer not in the manual?

Omron CJ2M-CPU Series Specifications

General IconGeneral
Power Supply24 VDC
Number of InstructionsOver 400 instructions
ModelCJ2M-CPU11, CJ2M-CPU12, CJ2M-CPU13, CJ2M-CPU14, CJ2M-CPU15
Program Capacity5K steps to 60K steps
I/O CapacityUp to 2, 560 points
Communication PortsEthernet, USB, RS-232C
Execution Time0.04 µs per basic instruction
Operating Temperature0 to 55°C
Position ControlSupported
High-speed Counter100 kHz max.
Pulse Output100 kHz max.
Maximum Units40 units
Storage Temperature-20 to 75°C
Interrupt InputsSupported

Related product manuals