Mitsubishi Electric MELSEC-Q/L Programming Manual page 247

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
4100
The specified device value is not within the following range:
-126
 | Specified device value | < 2
0, 2
The specified device value is -0.
4141
The operation result exceeds the following range. (when an overflow
occurs):
128
|Operation result| < 2
The specified device value is -0, unnormalized number, nonnumeric, and .
4140
*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.
Program example
• 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 turns ON, and stores the result at D3 and D4.
[Ladder Mode]
[Operation]
D4
D3
D11
5961.437
12003.200
• The following program subtracts the 32-bit floating decimal point type real number at D10 and D11 from the 32-bit floating
decimal point type real number at D20 and D21, and stores the result of the subtraction at D20 and D21.
[Ladder Mode]
[Operation]
D21
D20
D11
97365.203
76059.797
128
*1
D10
D4
D3
17964.637
D10
D21
D20
21305.406
Q00J/
QnH
QnPH
QnPRH
Q00/
Q01
[List Mode]
Step
Instruction
[List Mode]
Instruction
Step
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
QnU
LCPU
Device
Device
245
6

Advertisement

Table of Contents
loading

Table of Contents