EasyManuals Logo

Omron SYSMAC CP2E-E D Series User Manual

Omron SYSMAC CP2E-E D Series
578 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 #187 background imageLoading...
Page #187 background image
11-17
11 High-speed Counters
CP2E CPU Unit Software User’s Manual(W614)
11-3 High-speed Counter
Interrupts
11
11-3-2 Present Value Comparison
z Execution of CTBL and INI Instructions for Cyclic Task
Execute the instructions in the following order.
Refer to 11-3-2 Present Value Comparison for details.
The comparison of the high-speed counter PV has the following two ways: Target Value Comparison
and Range Comparison.
The specified interrupt task is executed when the high-speed counter PV matches a target value regis-
tered in the table.
• The comparison conditions (target values and counting directions) are registered in the comparison
table along with the corresponding interrupt task number. The specified interrupt task will be exe-
cuted when the high-speed counter PV matches the registered target value.
• Comparison is executed in the order set in the comparison table. Once comparison has cycled
through the comparison table, it will return and wait for a match with the first target value again.
The following examples show the operation of an interrupt task for a comparison table.
Example 1
Register the comparison table with the CTBL (COMPARISON
TABLE LOAD) instruction. Specify the interrupt tasks to be
started in this step.
Start comparison with the CTBL (COMPARISON TABLE
LOAD) or INI (MODE CONTROL) instruction. Here, high-
speed counter interrupts will be valid.
Stop with the INI (MODE CONTROL) instruction.
11-3-2 Present Value Comparison
Target Value Comparison
Register the comparison table
Start comparison
Stop comparison
No.0 No.1 No.5 No.8 No.0
High-speed counter PV
Comparison is
executed according
to the order of the
values in the table.
Target value 4
Target value 3
Target value 2
Target value 1
Interrupt task number that is started.
Time
Comparison table
Number of values = 4
Target value 1 (when counting up)
Interrupt task = 0
Target value 2 (when counting up)
Interrupt task = 1
Target value 3 (when counting up)
Interrupt task = 5
Target value 4 (when counting up)
Interrupt task = 8

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CP2E-E D Series and is the answer not in the manual?

Omron SYSMAC CP2E-E D Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CP2E-E D Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals