Cps/Cpsl - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

CPS/CPSL

Instruction
SIGNED BINARY COMPARE
DOUBLE SIGNED BINARY
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
CPS
S1, S2
OK
OK
OK
CPSL
S1, S2
262
Mnemonic
Variations
CPS
!CPS
CPSL
---
CPS
CPS(114)
S1: Comparison data 1
S 1
S2: Comparison data 2
S 2
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Compares two signed binary values (constants
and/or the contents of specified words) and out-
114
puts the result to the Arithmetic Flags in the Auxil-
iary Area.
Compares two double signed binary values (con-
stants and/or the contents of specified words) and
115
outputs the result to the Arithmetic Flags in the
Auxiliary Area.
Subroutines
OK
Data type
CPS
CPSL
INT
DINT
INT
DINT
Indirect
DM/EM
Registers
Con-
addresses
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
CPSL
CPSL(115)
S 1
S1: Comparison data 1
S 2
S2: Comparison data 2
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
CPS
CPSL
1
1
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
---
2
2
TR
bits
---

Advertisement

Table of Contents
loading

Table of Contents