Mitsubishi Electric M800VW Series Programming Manual page 186

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.1 Comparison Operation Instructions
E=, E<>, E>, E<=, E<, E>= : Floating-point data comparison (single precision)
Setting
Bit devices
data
X
Y
M
L
F
S1
S2
△ : S1 and S2 cannot be specified as constant at the same time.
[Instruction symbol] [Execution condition]
LD
AND
OR
 Setting data
Setting data
S1
Comparative data, or the first number of the device where comparative data is
stored.
S2
 Functions
 Treats 32-bit floating-point data from device designated by (S1) and 32-bit floating-point data from device designated by
(S2) as an A contact, and performs comparison operation.
 The results of the comparison operations for the individual instructions are as follows:
Instruction sym-
Condition
bol in
E=
S1=S2
E<>
S1 ≠ S2
E>
S1>S2
E<=
S1≤S2
E<
S1<S2
E>=
S1≥S2
POINT
When the E= instruction is used, note that the two values may not be equal due to errors.
(Example)
X0
EMOV E1.23 D0
E* D0 E4.56 D2
E/ D2 E4.56 D2
E= D0 D2
Two values may not
be equal.
 When setting input values from programming tools, rounding errors may occur.
For precautions when setting input values from programming tools, refer to "6.3.4 Single/Double-Precision Real Number
Data".
Usable devices
B SB
T SM V
T
C
Meaning
Instruction sym-
Comparison oper-
ation result
bol in
Continuity
E=
E<>
E>
E<=
E<
E>=
M0
Con-
Word devices
stant
D
R/ZR W SW SD
Z
indicates the signs "E=", "E<>", "E>", "E<=", "E<", "E>=".
S1
S1
S1
Comparison oper-
Condition
ation result
Non-continuity
S1 ≠ S2
S1=S2
S1≤S2
S1>S2
S1≥S2
S1<S2
165
Digit
Pointer
designa-
Index
tion
E
P
S2
S2
S2
Data type
Real number
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents