11 PROCESS CONTROL INSTRUCTIONS
11.6 Comparison Operation Instructions
1389
11
■Block memory
■Operation constant
This instruction compares input values 1 (E1) and 2 (E2) and outputs the result (d1) to the comparison output (BB1).
Operand: (d1)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0
+1
BW Output value The same value as the input value 1 (E1) is stored. Single-precision
real number
System
+2 BB BB1 Comparison
output
The comparison result of E1 and E2 is stored.
16-bit unsigned
binary
System
Operand: (s2)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0
+1
K Set value -999999 to 999999 Single-precision
real number
0.0 User
+2
+3
HS Hysteresis 0 to 999999 Single-precision
real number
0.0 User
Condition BB1
E1(E2+K) 1
E1>(E2+K+HS) 0
(E2+K)<E1(E2+K+HS) Last value is output.
Error code Error content
3402H The value specified by (s1) or (s2) is a subnormal number or NaN (not a number).
3403H An overflow has occurred.
3405H Hysteresis (HS) is less than 0.