192
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
*2 There are CPU modules that will not result in an operation error if -0 is specified. For details, refer to Page 87 Using single/double-
precision real number data.
• The following program compares 32-bit floating decimal point real number data at D0 and D1 to 32-bit floating decimal point
real number data at D3 and D4.
• The following program compares the floating decimal point real number 1.23 to the 32-bit floating decimal point real number
data at D3 and D4.
• The following program compares 32-bit floating decimal point real number data at D0 and D1 to 32-bit floating decimal point
real number data at D3 and D4.
• The following program compares the 32-bit floating decimal point data at D0 and D1 to the floating decimal point real
number 1.23.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The specified device value is -0.
*2
*2
4140 The specified device value is not within the following range:
0, 2
-126
| Specified device value | < 2
128
The specified device value is -0, unnormalized number, nonnumeric, and .
*2
[Ladder Mode] [List Mode]
[Ladder Mode] [List Mode]
[Ladder Mode] [List Mode]
[Ladder Mode] [List Mode]