Mitsubishi Electric MELSEC-Q/L Programming Manual page 631

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 value of the specified device is -0, a subnormal number, NaN (not a
number), or .
4141
The operation result exceeds the following range.
(when an overflow occurs)
1024
|Operation result| < 2
Program example
• The following program raises the 64-bit floating-point data type real number specified by D200 to D203 to the number nth
specified by D0 to D3 power, when X10 is turned on. Then the program stores the operation result into D100 to D103.
[Ladder Mode]
[Operation]
D3
D2
D1
3
D203 D202 D201
D200
15.6
1024
D0
Exponentiation
operation
D103 D102 D101
Q00J/
QnH
Q00/
Q01
[List Mode]
Instruction
Step
D100
3796.416
QnPH
QnPRH
QnU
Device
7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
LCPU
7
629

Advertisement

Table of Contents
loading

Table of Contents