Comparison Instructions - Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual

Programmable controllers
Table of Contents

Advertisement

Comparison Instructions

3-5

Comparison Instructions

Instruction
Symbol/Operand
Mnemonic
Code
Symbol Compari-
Symbol & options
son (Unsigned)
LD, AND, OR + =,
<>, <, <=, >, >=
300 (=)
305 (<>)
310 (<)
S
: Comparison
1
315 (<=)
data 1
320 (>)
S
: Comparison
2
325(>=)
data 2
Symbol Compari-
S
: Comparison
1
son (Double-
data 1
word, unsigned)
S
: Comparison
2
LD, AND, OR + =,
data 2
<>, <, <=, >, >= +
L
301 (=)
306 (<>)
311 (<)
316 (<=)
321 (>)
326 (>=)
Symbol Compari-
S
: Comparison
1
son (Signed)
data 1
LD, AND, OR + =,
S
: Comparison
2
<>, <, <=, >, >=
data 2
+S
302 (=)
307 (<>)
312 (<)
317 (<=)
322 (>)
327 (>=)
88
*1
: Not supported by CS1D CPU Units for Duplex-CPU Systems.
Symbol comparison instructions (unsigned) compare two values
(constants and/or the contents of specified words) in 16-bit binary
S
data and create an ON execution condition when the comparison
1
condition is true. There are three types of symbol comparison
S
2
instructions, LD (LOAD), AND, and OR.
LD
<
AND
OR
<
Symbol comparison instructions (double-word, unsigned) compare two
values (constants and/or the contents of specified double-word data) in
unsigned 32-bit binary data and create an ON execution condition when
the comparison condition is true. There are three types of symbol com-
parison instructions, LD (LOAD), AND, and OR.
Symbol comparison instructions (signed) compare two values (con-
stants and/or the contents of specified words) in signed 16-bit binary (4-
digit hexadecimal) and create an ON execution condition when the
comparison condition is true. There are three types of symbol compari-
son instructions, LD (LOAD), AND, and OR.
Function
ON execution condition when
comparison result is true.
ON execution condition
when comparison result
is true.
<
ON execution condition when
comparison result is true.
Section 3-5
Location
Execution
condition
LD: Not required
AND, OR:
Required
LD: Not required
AND, OR:
Required
LD: Not required
AND, OR:
Required

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents