EasyManuals Logo
Home>Omron>Controller>CJ2M-CPU Series

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 #137 background imageLoading...
Page #137 background image
7-27
7 High-speed Counters
CJ2M CPU Unit Pulse I/O Module User’s Manual
7-3 High-speed Counter Interrupts
7
7-3-2 Present Value Comparison
The specified interrupt task is executed when the high-speed counter PV enters or leaves the range
defined by the upper and lower limit values.
The comparison conditions (upper and lower limits and entering or leaving the range) are registered
in the comparison table along with the corresponding interrupt task numbers. The specified interrupt
task will be executed once when the high-speed counter PV enters or leaves the range.
There are two ways to register comparison tables for range comparison. You can register a fixed-
length comparison table with eight ranges, or you can register a variable-length comparison table
with 1 to 32 ranges.
If you register a fixed-length table, the programming and data for CJ1M PLCs can be used without
modifications.
If you register a variable-length comparison table, you can register up to 32 ranges or you can regis-
ter only the required number of ranges so that less memory is used.
The ranges can overlap.
A different interrupt task can be registered for each range.
The leftmost bit (bit 15) of the word containing the interrupt task number specifies if the interrupt task
is to be executed when the range is entered or left.
Bit 15 = OFF: The interrupt task will be executed when the range is entered.
Bit 15 = ON: The interrupt task will be executed when the range is left.
The counter PV is compared with the 8 ranges or 1 to 32 ranges once each cycle.
When the PV of the high-speed counter is changed, the applicable interrupt tasks will be executed if
the new PV falls within any table ranges regardless of whether interrupt execution is specified when
the PV enters or leaves the range.
Precautions for Correct UsePrecautions for Correct Use
When more than one comparison condition is met in a cycle, the first interrupt task in the table
will be executed in that cycle. Even if more than one comparison condition is met when the PV
enters or exits the range, the first interrupt task in the table will be executed. The next interrupt
task in the table will be executed in the next cycle.
Once an interrupt task has been executed from a table, the interrupt task will not be executed
again for the same table until the PV enters or leaves that comparison range. However, regard-
less of whether interrupt execution is specified when the PV enters or leaves a particular
range, the Range Comparison Condition In-range Flag will be ON when the PV is within the
set range
Even if a table range is left because the PV is reset to zero (for either a software reset or phase
Z + software reset), the applicable interrupt task will not be executed.
Range Comparison
No.255
No.000 No.000 No.255
Upper
limit 1
Lower
limit 1
Upper
limit 2
Lower
limit 2
Comparison Table
Upper limit value 1
Lower limit value 1
Interrupt task number = 000 (8000 hex)
Upper limit value 2
Lower limit value 2
Interrupt task number = 255 (00FF hex)
High-speed Counter PV
Comparison is
executed
regardless of the
order of the ranges
in the table.
Interrupt task number to execute
Time

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
BrandOmron
ModelCJ2M-CPU Series
CategoryController
LanguageEnglish

Related product manuals