Comparison Operation Instructions - Mitsubishi Electric M800VW Series Programming Manual

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

8.1 Comparison Operation Instructions
=, <>, >, <=, <, >=: 16-bit data comparison
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 device No. where comparative data is stored
S2
 Functions
 Treats BIN 16-bit data from device designated by (S1) and BIN 16-bit 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
=
S1=S2
<>
S1 ≠ S2
>
S1>S2
<=
S1≤S2
<
S1<S2
>=
S1≥S2
 When the hexadecimal constants have been set to S1 or S2 and the highest bit (b15) of the value is "1" (in other words, the
value is any of "8" to "F"), the value is regarded as a negative number of the BIN value and compared.
 Operation errors
 There are no arithmetic errors associated with the "=", "<>", ">", "<=", "<", or ">=" instructions.
Usable devices
B SB
T SM V
T
C
Meaning
Instruction sym-
Comparison oper-
ation result
bol in
Continuity
=
<>
>
<=
<
>=
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
indicates the signs "=", "<>", ">", "<=", "<", ">=".
S1
S1
S1
Comparison oper-
Condition
ation result
Non-continuity
S1 ≠ S2
S1=S2
S1≤S2
S1>S2
S1≥S2
S1<S2
161
Digit
Pointer
designa-
Index
tion
H
P
S2
S2
S2
Data type
BIN 16 bits
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents