Mitsubishi MELSEC Q Series Programming Manual page 259

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

ED/
(1) Divides the 64-bit floating decimal point real number designated by
decimal point real number designated by
designated by
S1
+3
S1
+2
64-bit floating-point
real number
(2) Values which can be designated at
-1022
0, 2
(3) When the operation results in -0 or an underflow, the result is processed as 0.
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 value of the specified device or the result of multiplication is not within the following
range:
-1022
0, 2
• The value of the designated device is
• The value of
• The result of multiplication/division exceeds the following range (Operation results in an
overflow):
1024
2
Program Example
(1) The following program multiplies the 64-bit floating decimal point real numbers at D3 to D6
and the 64-bit floating decimal point real numbers at D10 to D13, and stores the result at R0
to R3.
[Ladder Mode]
[Operation]
D6 D5
36.7896
.
D
S1
+1
S1
S2
+3
S2
64-bit floating-point
real number
S1
| Designated value (stored value) | < 2
| Contents of designated device | < 2
at division operation is 0.
S2
| Result of operation |
D4
D3
D13 D12
D11
11.9278
and stores the operation result at the device
S2
+2
S2
+1
S2
D
+3
64-bit floating-point
real number
,
and
and which can be stored, are as follows:
S2
D
1024
1024
0.
[List Mode]
Instruction
Step
D10
R3 R2
R1
438.8190
ED*(P),ED/(P)
by the 64-bit floating
S1
D
+2
D
+1
D
(Error code: 4140)
(Error code: 4140)
(Error code: 4100)
(Error code: 4141)
Device
R0
6-57
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents