Mitsubishi Electric MELSEC-Q/L Programming Manual page 629

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:
-126
 | 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)
128
|Operation result| < 2
Program example
• The following program raises the 32-bit floating-point data type real number data specified by D0 and D1 to the data
specified by (D10 and D11)th power, when X10 is turned on. Then the program stores the operation result into D20 and
D21.
[Ladder Mode]
[Operation]
D11
D10
1.2
Exponentiation
D1
D0
operation
0.22
128
[List Mode]
Step
D21
D20
0.163
Q00J/
QnH
QnPH
QnPRH
Q00/
Q01
Device
Instruction
7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
QnU
LCPU
7
627

Advertisement

Table of Contents
loading

Table of Contents