Mitsubishi MELSEC Q Series Programming Manual page 657

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
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.
• The values specified by
-126
0, 2
• The value of
• The values in the operation result is within the range shown below.
126
2
| Value resulted from operation |
Program Example
(1) 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
D1
0.22
or
are out of the ranges shown below.
S1
S2
| Specified value (Storage value) | < 2
or
is
0.
S1
S2
D10
1.2
Exponentiation
D0
D21
operation
0.163
128
[List Mode]
Step
Instruction
Device
D20
POW(P)
1
2
(Error code: 4140)
3
(Error code: 4140)
(Error code: 4141)
4
6
6
7
8
7-283

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents