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