Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
192
6  BASIC INSTRUCTIONS
6.1  Comparison Operation Instructions
Floating-point data comparisons (single precision)
LDE, ANDE, ORE
*1 Applicable for the Universal model QCPU, LCPU.
Processing details
 • The 32-bit floating decimal point data from device designated by (S1) and 32-bit floating decimal point data from device 
designated by (S2) as a normally-open contact, and performs comparison operation.
 • The results of the comparison operations for the individual instructions are as follows:
Note that use of the E= instruction can on occasion result in situations where errors cause the two values not 
to be equal.
 • When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 90 
• Basic model QCPU: The serial number (first five digits) is "04122" or later.
(S1), (S2):  Data for comparison or head number of the devices where the data for comparison is stored (real number)
Setting 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
E
Others
Bit
Word
Bit
Word
(S1)
(S2)
Instruction symbol
Condition
Comparison 
operation result
Instruction symbol
Condition
Comparison 
operation result
E=
(S1)=(S2)
Continuity
E=
(S1)(S2)
Non-continuity
E<>
(S1)(S2)
E<>
(S1)=(S2)
E>
(S1)>(S2)
E>
(S1)
(S2)
E<=
(S1)
(S2)
E<=
(S1)>(S2)
E<
(S1)<(S2)
E<
(S1)
(S2)
E>=
(S1)
(S2)
E>=
(S1)<(S2)
Basic
Process
High
performance
Redundant Universal
LCPU
Ver.
LD
AND
OR
S1
S2
S1
S2
S1
S2
E
E
E
E
E
E
/
/
/
/
/
Command
Command Command
indicates an instruction symbol of                                                           .
EMOV E
1.23 D0
E
D0
M0
D2
X0
D0
E4.56
D2
D2
E4.56
D2
E*
E/
Tw
o values may not be equal.
Ex
ample