Mitsubishi MELSEC-Q/L Programming Manual page 217

Table of Contents

Advertisement

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Error
code
The specified device value is not within the following range:
-1022
4140
0, 2
| Specified device value | < 2
The specified device value is
The operation result exceeds the following range (when an overflow
occurs):
4141
1024
2
| Operation result |
Program Example
(1) The following program adds the 64-bit floating decimal point type real numbers at D3 to D6 and the 64-bit floating
decimal point type real numbers at D10 to D13 when X20 goes ON, and outputs the result at R0 to R3.
[Ladder Mode]
[Operation]
D6 D5
D4
D3
5961.437
(2) The following programs subtracts the 64-bit floating decimal point type real numbers at D20 to D23 from the 64-bit
floating decimal point type real numbers at D10 to D13, and stores the result at D30 to D33.
[Ladder Mode]
[Operation]
D13 D12
D11
D10
97365.203
Error details
1024
-
0.
[List Mode]
Step
D13 D12
D11
D10
12003.200
[List Mode]
Step
D23 D22
D21
D20
D33 D32
76059.797
Q00J/
Q00/
QnH
Q01
––
––
––
––
Device
Instruction
R3 R2
R1
R0
17964.637
Device
Instruction
D31
D30
21305.406
ED+, ED+P, ED-, ED-P
QnPH QnPRH
QnU
LCPU
––
––
––
––
1
2
3
4
6
7
8
215

Advertisement

Table of Contents
loading

Table of Contents