Omron SYSMAC CP Series Instruction & Reference Manual page 278

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Function
The input comparison instruction
compares the data specified in S1
and S2 as single-precision floating
point values (32-bit IEEE754 data)
and creates an ON execution condi-
tion when the comparison condition
is true.
When the data is stored in words, S1
and S2 specify the first of two words
containing the 32-bit data. It is also
possible to input the floating-point
data as an 8-digit hexadecimal con-
stant.
The input comparison instructions
are treated just like the LD, AND, and
OR instructions to control the execu-
tion of subsequent instructions.
LD: The instruction can be con-
nected directly to the left bus bar.
AND: The instruction cannot be con-
nected directly to the left bus bar.
OR: The instruction can be con-
nected 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
329
LD=F
AND=F
OR=F
330
LD<>F
AND<>F
OR<>F
331
LD<F
AND<F
OR<F
332
LD<=F
AND<=F
OR<=F
333
LD>F
AND>F
OR>F
2-242
LD connection
AND connection
OR connection
Option (data format)
+
F: Single-precision floating-point
data
LOAD FLOATING EQUAL
AND FLOATING EQUAL
OR FLOATING EQUAL
LOAD FLOATING NOT EQUAL
AND FLOATING NOT EQUAL
OR FLOATING NOT EQUAL
LOAD FLOATING LESS THAN
AND FLOATING LESS THAN
OR FLOATING LESS THAN
LOAD FLOATING LESS THAN OR EQUAL
AND FLOATING LESS THAN OR EQUAL
OR FLOATING LESS THAN OR EQUAL
LOAD FLOATING GREATER THAN
AND FLOATING GREATER THAN
OR FLOATING GREATER THAN
ON execution condition when
comparison result is true.
<F
S1
S2
<F
S1
S2
<F
S1
ON execution condition when
S2
comparison result is true.
Name
CP1E CPU Unit Instructions Reference Manual(W483)
ON execution condition when
comparison result is true.
Function
True if
S
+1, S
=
1
1
S
+1, S
2
2
True if
S
+1, S
1
1
S
+1, S
2
2
True if
S
+1, S
<
1
1
S
+1, S
2
2
True if
S
+1, S
1
1
S
+1, S
2
2
True if
S
+1, S
>
1
1
S
+1, S
2
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents