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 #278 background imageLoading...
Page #278 background image
257
Comparison Instructions Section 5-18
limit LL and upper limit UL and outputs the result to the GR, EQ, and LE flags
in the SR area. The resulting flag status is shown in the following table.
Precautions Placing other instructions between ZCP(––) and the operation which
accesses the EQ, LE, and GR flags may change the status of these flags. Be
sure to access them before the desired status is changed.
Flags ER: Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
LL is greater than UL.
EQ: ON if LL
CD UL
LE: ON if CD < LL.
GR: ON if CD > UL.
Example In the following example, the content of IR 002 (#6FA4) is compared to the
range #0010 to #AB1F. Since #0010
#6FA4 #AB1F, the EQ flag and IR
10001 are turned ON.
Comparison result Flag status
GR (SR 25505) EQ (SR 25506) LE (SR 25507)
CD < LL 0 0 1
LL CD UL 010
UL < CD 1 0 0
ZCP(––)
#0010
002
00000
25505
10000
25507
10002
TR
0
25506
10001
Greater Than
(above range)
Equal
(within range)
Less Than
(below range)
Address
Instruction
Operands Address Instruction Operands
00000 LD 00000
00001 OUT TR 0
00002 ZCP(––)
002
#0010
# AB1F
00003 AND 25505
00004 OUT 10000
00005 LD TR 0
00006 AND 25506
00007 OUT 10001
00008 LD TR 0
00009 AND 25507
00010 OUT 10002
#AB1F
UL: #AB1F
AB 1 F
<
CD: 002
6F A 4
<
LL: #0010
00 1 0
10000: OFF
10001: ON
10002: OFF

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