Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 576

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Function
The
input
compares the data specified in S1 and S2
as double-precision floating point values
(64-bit IEEE754 data) and creates an ON
execution condition when the comparison
condition is true. When the data is stored
in words, S1 and S2 specify the first of
four words containing the 64-bit data. The
64-bit floating-point data cannot be input
as constants.
The input comparison instructions are
treated just like the LD, AND, and OR
instructions to control the execution of
subsequent instructions
• LD: The instruction can be connected
directly to the left bus bar.
• AND:
The
connected directly to the left bus bar.
• OR: The instruction can be connected
directly to the left bus bar.
Options
With the three input types and six symbols, there are 18 different possible combinations.
Symbol
(LD, AND, and OR cannot be
used in a ladder program)
LD=, AND=, OR=, LD<>, AND<>,
OR<>, LD<, AND<, OR<, LD<=,
AND<=, OR<=LD>, AND>, OR>,
LD>=, AND>=, OR>=
Code
Mnemonic
335
LD=D
AND=D
OR=D
336
LD<>D
AND<>D
OR<>D
337
LD<D
AND<D
OR<D
338
LD<=D
AND<=D
OR<=D
339
LD>D
AND>D
OR>D
CS/CJ/NSJ Series Instructions Reference Manual (W474)
comparison
instruction
instruction
cannot
be
D: Double-precision floating-point
data
+
LOAD DOUBLE FLOATING EQUAL
AND DOUBLE FLOATING EQUAL
OR DOUBLE FLOATING EQUAL
LOAD DOUBLE FLOATING NOT EQUAL
AND DOUBLE FLOATING NOT EQUAL
OR DOUBLE FLOATING NOT EQUAL
LOAD DOUBLE FLOATING LESS THAN
AND DOUBLE FLOATING LESS THAN
OR DOUBLE FLOATING LESS THAN
LOAD DOUBLE FLOATING LESS THAN OR EQUAL
AND DOUBLE FLOATING LESS THAN OR EQUAL
OR DOUBLE FLOATING LESS THAN OR EQUAL
LOAD DOUBLE FLOATING GREATER THAN
AND DOUBLE FLOATING GREATER THAN
OR DOUBLE FLOATING GREATER THAN
LD connection
ON execution condition when
comparison result is true.
<D
AND connection
<D
OR connection
<D
ON execution condition when
comparison result is true.
Option (data format)
Name
3. Instructions
ON execution condition when
comparison result is true.
Function
True if
C1 = C2
True if
C1
C2
True if
C1 < C2
True if
C1
C2
True if
C1 > C2
539
3

Advertisement

Table of Contents
loading

Table of Contents