Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 736

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Flags
696
Options
With the three input types and six symbols, there are 18 different possible
combinations.
Symbol
=
(Equal)
< >
(Not equal)
<
(Less than)
<=
(Less than or equal)
>
(Greater than)
>=
(Greater than or equal)
Summary of Input Comparison Instructions
The following table shows the function codes, mnemonics, names, and func-
tions of the 18 single-precision floating-point input comparison instructions.
(C1=S
+3, S
+2, S
+1, S
1
1
1
Code Mnemonic
335
LD=D
LOAD DOUBLE FLOATING EQUAL
AND=D
AND DOUBLE FLOATING EQUAL
OR=D
OR DOUBLE FLOATING EQUAL
336
LD<>D
LOAD DOUBLE FLOATING NOT EQUAL
AND<>D
AND DOUBLE FLOATING NOT EQUAL
OR<>D
OR DOUBLE FLOATING NOT EQUAL
337
LD<D
LOAD DOUBLE FLOATING LESS THAN
AND<D
AND DOUBLE FLOATING LESS THAN
OR<D
OR DOUBLE FLOATING LESS THAN
338
LD<=D
LOAD DOUBLE FLOATING LESS THAN OR
EQUAL
AND<=D
AND DOUBLE FLOATING LESS THAN OR EQUAL
OR<=D
OR DOUBLE FLOATING LESS THAN OR EQUAL
339
LD>D
LOAD DOUBLE FLOATING GREATER THAN
AND>D
AND DOUBLE FLOATING GREATER THAN
OR>D
OR DOUBLE FLOATING GREATER THAN
340
LD>=D
LOAD DOUBLE FLOATING GREATER THAN OR
EQUAL
AND>=D
AND DOUBLE FLOATING GREATER THAN OR
EQUAL
OR>=D
OR DOUBLE FLOATING GREATER THAN OR
EQUAL
In this table, C1 = content of S1 to S1+3 and C2 = content of S2 to S2+3.
Name
Label
Error Flag
ER
Greater Than
>
Flag
Greater Than or
> =
Equal Flag
Equal Flag
=
Not Equal Flag
=
Option (data format)
D: Double-precision floating-point data
and C2=S
+3, S
+2, S
1
2
2
Name
Operation
OFF
ON if C1 > C2.
OFF in all other cases.
ON if C1
C2.
OFF in all other cases.
ON if C1 = C2.
OFF in all other cases.
ON if C1
C2.
OFF in all other cases.
Section 3-16
+1, S
.)
2
2
Function
True if
C1 = C2
True if
C1
C2
True if
C1 < C2
True if
C1
C2
True if
C1 > C2
True if
C1
C2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents