User`s manual
12 - 4 12 - 4
MELSEC-Q
12 COMPARISON OPERATION INSTRUCTIONS
Control data
(1) Data specified in S. instruction
Specified position Symbol Name Recommended range
*1
Unit Data format
Standard
Value
Store
S1
+0
+1
E1 Input value 1 -999999 to 999999
Real
number
U
Input
data
+2
+3
E2 Input value 2 -999999 to 999999
Real
number
U
D1
+0
+1
BW Output value
(The same value as the input value 1 (E1) is
stored)
Real
number
S
BB
Block
memory
+2
BB1
Comparison
output
b15 b12 b8 b4 b0
B
B
1
(The result of comparison between E1 and
E2 is stored.)
BIN
16Bit
S
S2
+0
+1
K Set value -999999 to 999999
Real
number
0.0 U
Operation
constant
+2
+3
HS Hysteresis 0 to 999999
Real
number
0.0 U
*1: The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the system.
Users cannot set the data.
Processing contents
(1) Compares the input value 1 (E1) with the input value 2 (E2), and outputs the result of the
comparison to BB1 of the block memory.
Condition BB1
E1 (E2
K) 1
E1 (E2
K
HS) 0
(E2
K)
E1 (E2
K HS) Last value is output
Error
• When the hysteresis value is negative Error code: 4100










