11 PROCESS CONTROL INSTRUCTIONS
11.6 Comparison Operation Instructions
1381
11
■
Input data
■
Block memory
■
Operation constant
Processing details
This instruction compares input values 1 (E1) and 2 (E2) and outputs the result (d1) to the comparison output (BB1).
Operation error
Operand: (s1)
Device
Symbol
Name
Recommended range
Data type
Standard
value
Set by
+0
+1
E1
Input value 1
-999999 to 999999
Single-precision
real number
User
+2
+3
E2
Input value 2
-999999 to 999999
Single-precision
real number
User
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-HS)<E1
(E2+K)
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.
b15
b0
BB1
...
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......