Floating-Point Data Comparisons (Single Precision) - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

(4) The following program compares the data in D0 and D1 with the data in D3 and D4, and establishes continuity if the data
in D0 and D1 is equal to or less than the data in D3 and D4.
[Ladder Mode]
6.1.3
E=, E<>, E>, E<=, E<,

Floating-point data comparisons (Single precision)

E>=
6.1.3
E=, E<>, E>, E<=, E<, E>=
LD
AND
OR
,
: Data for comparison or head number of the devices where the data for comparison is stored (real number)
S1
S2
Setting
Internal Devices
Data
Bit
Word
––
S1
––
S2
*1:
Available only in multiple Universal model QCPU and LCPU
(1) The 32-bit floating decimal point data from device designated by
designated by
as A normally-open contact, and performs comparison operation.
S2
(2) The results of the comparison operations for the individual instructions are as follows:
Instruction
Condition
Symbol in
E=
E<>
S1
E>
E<=
S1
E<
E>=
S1
Note that use of the E= instruction can on occasion result in situations where errors cause the two values not to be equal.
X0
Example
[List Mode]
Step
indicates an instruction symbol of
Command
Command Command
J
R, ZR
Bit
––
––
Comparison
Operation Result
=
S2
S1
S2
>
S1
S2
Continuity
S2
<
S1
S2
S2
EMOV E1.23 D0
E*
D0
E4.56 D2
E/
D2
E4.56 D2
E
D0
D2
Two values may not be equal.
E=, E<>, E>, E<=, E<, E>=
Device
Instruction
Ver.
Basic
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
E
/
E
S1
S2
S1
S2
S1
S2
\
U
\G
Word
and 32-bit floating decimal point data from device
S1
Instruction
Condition
Symbol in
E=
S1
E<>
=
S2
E>
S1
E<=
>
S1
E<
S1
E>=
<
S1
M0
High
Process
Redundant Universal
performance
.
/
E
/
E
/
E
/
E
Constants
Zn
E
*1
*1
Comparison
Operation Result
S2
S1
S2
Non-continuity
S2
S2
S2
1
2
3
4
LCPU
6
7
8
Other
––
––
175

Advertisement

Table of Contents
loading

Table of Contents