Cmp/Cmpl - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

CMP/CMPL

Instruction
COMPARE
DOUBLE COMPARE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
CMP: Comparison data 1
S1
CMPL: Comparison data 1, rightmost word address
CMP: Comparison data 2
S2
CMPL: Comparison data 2, rightmost word address
Operand Specifications
Word addresses
Area
CIO
WR
HR
CMP
S1, S2
OK
OK
OK
CMPL
S1, S2
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
CMP
!CMP
CMPL
---
CMP
CMP(020)
S
1
S
: Comparison data 1
1
S
2
S
: Comparison data 2
2
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Compares two unsigned binary values (constants
and/or the contents of specified words) and out-
020
puts the result to the Arithmetic Flags in the Auxil-
iary Area.
Compares two double unsigned binary values
(constants and/or the contents of specified words)
060
and outputs the result to the Arithmetic Flags in
the Auxiliary Area.
Subroutines
OK
Data type
CMP
CMPL
UINT
UDINT
UINT
UDINT
Indirect
DM/EM
Registers
Con-
addresses
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
OK
3. Instructions
Function
CMPL
CMPL(060)
S
1
S
: Comparison data 1
1
S
2
S
: Comparison data 2
2
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
CMP
CMPL
1
1
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
---
3
2
2
TR
bits
---
259

Advertisement

Table of Contents
loading

Table of Contents