EasyManuals Logo

Omron CPM1 Programming Manual

Omron CPM1
541 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 #79 background imageLoading...
Page #79 background image
58
CQM1 Interrupt Functions Section 1-5
Controlling High-speed Counter 1 and 2 Interrupts
1,2,3... 1. Use the CTBL(63) instruction to save the comparison table in the CQM1
and begin comparisons.
If C is set to 000, then comparisons will be made by the target matching
method; if 001, then they will be made by the range comparison method.
The comparison table will be saved, and, when the save operation is com-
plete, then comparisons will begin. While comparisons are being executed,
high-speed interrupts will be executed according to the comparison table.
For details on the contents of the comparison tables that are saved, refer
to the explanation of the CTBL(63) instruction in SECTION 5 Instruction
Set.
Note The comparison results are normally stored in AR 1100 through
AR 1107 while the range comparison is being executed.
If C is set to 002, then comparisons will be made by the target matching
method; if 003, then they will be made by the range comparison method.
For either of these settings, the comparison table will be saved, but com-
parisons will not begin, and the INI(61) instruction must be used to begin
comparisons.
2. To stop comparisons, execute the INI(61) instruction as shown below.
Specify port 1 or 2 in P (P=001 or 002).
To start comparisons again, set the second operand to “000” (execute
comparison), and execute the INI(61) instruction.
Once a table has been saved, it will be retained in the CQM1 during oper-
ation (i.e., during program execution) as long as no other table is saved.
Reading the PV
There are two ways to read the PV. The first is to read it from SR 232 and SR
233 (port 1) or SR 234 and SR 235 (port 2), and the second is to use
PRV(62).
Reading SR 232 and SR 233 or SR 234 and SR 235
The PV of high-speed counter 1 is stored in SR 232 and SR 233, and the PV
of high-speed counter 2 is stored in SR 234 and SR 235 as shown below. In
linear mode, the leftmost digit will be F for negative values.
(@)CTBL(63)
P
C
TB
P: Port
001: Port 1
002: Port 2
C: (3 digits BCD)
000: Target table set and comparison begun
001: Range table set and comparison begun
002: Target table set only
003: Range table set only
TB: Beginning word of comparison table
(@)INI(61)
P
001
000
Leftmost 4 digits Rightmost 4 digits Linear Mode Ring Mode
SR 233 SR 232 F8388607 to 08388607
(–8,388,607 to 8,388,607)
00000000 to 00064999Port 1:
SR 235 SR 234Port 2:

Table of Contents

Other manuals for Omron CPM1

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CPM1 and is the answer not in the manual?

Omron CPM1 Specifications

General IconGeneral
ModelCPM1
ManufacturerOmron
Instruction SetBasic and advanced instructions
Power Supply100 to 240 VAC or 24 VDC
CommunicationRS-232C
I/O Points10, 20, 30, or 40 points depending on the model
TimersYes, multiple timers available
CountersYes, multiple counters available
Input Voltage24V DC
Output TypeRelay or transistor
Number of I/O Points10, 20, 30, 40
Communication PortsRS-232C (optional)
Operating Temperature0°C to 55°C
Storage Temperature-20°C
Humidity10% to 90% (non-condensing)
DimensionsVaries depending on the model
WeightVaries depending on the model
Program Memory2048 steps (2K steps)

Related product manuals