EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 253

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
251
6
Operation error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Program example
The following program adds the 64-bit floating decimal point type real number at D3 to D6 and the 64-bit floating decimal
point type real number at D10 to D13 when X20 goes ON, and outputs the result at R0 to R3.
The following programs subtracts the 64-bit floating decimal point type real number at D20 to D23 from the 64-bit floating
decimal point type real number at D10 to D13, and stores the result at D30 to D33.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4140 The specified device value is not within the following range:
0, 2
-1022
| Specified device value | < 2
1024
The specified device value is -0, unnormalized number, nonnumeric, and .

4141 The operation result exceeds the following range. (when an overflow
occurs):
|Operation result| < 2
1024

[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
D4
5961.437
D3D6 D5
D11
12003.200
D10D13 D12
R1
17964.637
R0R3 R2
Step
Instruction
Device
D11
97365.203
D10D13 D12
D21
76059.797
D20D23 D22
D31
21305.406
D30D33 D32

Table of Contents

Related product manuals