6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
247
6
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
*1 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 adds the 32-bit floating decimal point type real number at D3 and D4 and the 32-bit floating decimal
point type real number at D10 and D11 when X20 goes ON, and outputs the result to R0 and R1.
• The following programs subtracts the 32-bit floating decimal point type real number at D20 and D21 from the 32-bit floating
decimal point type real number at D11 and D10, and stores the result at D30 and D31.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The specified device value is not within the following range:
0, 2
-126
| Specified device value | < 2
128
The specified device value is -0.
*1
4141 The operation result exceeds the following range. (when an overflow
occurs):
|Operation result| < 2
128
4140 The specified device value is -0, unnormalized number, nonnumeric, and .
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
D4
5961.437
D3
D11
12003.200
D10
R1
17964.637
R0
Step
Instruction
Device
D11
97365.203
D10
D21
76059.797
D20
D31
21305.406
D30