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 #141 background imageLoading...
Page #141 background image
7-31
7 High-speed Counters
CJ2M CPU Unit Pulse I/O Module User’s Manual
7-3 High-speed Counter Interrupts
7
7-3-3 High-speed Counter Interrupt Instructions
The INI(880) instruction is used for the following items.
Starting and Stopping Comparison for a High-speed Counter Comparison Table
Use the CTBL(882) instruction to register the target value or range comparison table before using
INI(880) to start or stop comparison.
If the comparison is started simultaneously with registering the comparison table and the high-
speed counter interrupts are always enabled, the INI(880) instruction is not required.
Changing the PV of a High-speed Counter
In this example, high-speed counter 0 operates in linear mode and starts interrupt task 10 when the PV
reaches 30,000 (0000 7530 hex) and starts interrupt task 11 when the PV reaches 20,000 (0000 4E20
hex).
1 Set high-speed counter 0 on the I/O Module Tab Page in the PLC Setup.
MODE CONTROL Instruction: INI(880)
Operand Setting
P Port specifier #0010 High-speed counter 0
#0011 High-speed counter 1
#0012 High-speed counter 2
#0013 High-speed counter 3
C Control data #0000 Starts comparison.
#0001 Stops comparison.
#0002 Changes the PV.
#0006 Changes the maximum ring count.
NV First word of
new PV
Stores the new value when changing the PV (C = #0002)
or when changing the ring counter maximum value (C =
#0006)
Example 1: Target Value Comparison
Item Setting
Counter setting Input pulse frequency (60 kHz max.)
Counting Mode Linear mode
Ring Counter Max. Value ---
Reset Method Software reset
Comparing After Counter Reset Stop
Pulse Input Mode Up/Down pulses
@INI
P
C
NV
P: Port Specifier
C: Control Data
NV: First word with new PV
Execution condition

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