Mitsubishi Electric MELSEC-Q/L Programming Manual page 251

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

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.
Error
Error details
code
4140
The specified device value is not within the following range:
-1022
 | Specified device value | < 2
0, 2
The specified device value is -0, unnormalized number, nonnumeric, and .
4141
The operation result exceeds the following range. (when an overflow
occurs):
1024
|Operation result| < 2
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 stores the result at D3 to D6.
[Ladder Mode]
[Operation]
D6 D5
D4
D3
D13 D12
5961.437
• The following program subtracts the 64-bit floating decimal point type real number at D10 to D13 from the 64-bit floating
decimal point type real number at D20 to D23, and stores the result of the subtraction at D20 to D23.
[Ladder Mode]
[Operation]
D23 D22
D21
D20
D13 D12
97365.203
1024
D11
D10
D6 D5
12003.200
D11
D10
D23 D22
76059.797
Q00J/
QnH
Q00/
Q01
[List Mode]
Instruction
Step
D4
D3
17964.637
[List Mode]
Instruction
Step
D21
D20
21305.406
6.2 Arithmetic Operation Instructions
QnPH
QnPRH
QnU
LCPU
Device
Device
6 BASIC INSTRUCTIONS
6
249

Advertisement

Table of Contents
loading

Table of Contents