6-52
6.2 Arithmetic Operation Instructions
6.2.12 Floating-point data multiplication and division (double precision)
ED*, ED/
ED/(P)
(1) Divides the 64-bit floating-point real number specified for
by the 64-bit floating-point real
number specified for
, and stores the result to
.
(2) Values which can be specified for
,
and
, and can be stored, are as follows.
0, 2
-1022
| specified value (storing value) | < 2
1024
(3) When the operation results in -0 or an underflow, the result is processed as 0.
O
p
erat
i
on
E
rror
In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON, and
the corresponding error code is stored to SD0.
• The value of the specified device is not within the following range.
(Error code: 4140)
0, 2
-1022
| value of the specified device | < 2
1024
• The value of the specified device is
-
0.
(Error code: 4140)
• The value of
in the division instruction is 0.
(Error code: 4100)
• The operation result exceeds the following range. (An overflow occurs.)
2
1024
| operation result |
(Error code: 4141)
Program
E
xam
pl
e
(1) In the following program, the 64-bit floating-point real number in Var_D3 is multiplied by the
64-bit floating-point real number in Var_D10, and the result is stored to Var_R0.
[Structured ladder]
[Operation]
s
1
s
2
d
6
4-
b
it
f
loating-
p
oint
real num
b
er
d
s
2
s
1
/
6
4-
b
it
f
loating-
p
oint
real num
b
er
6
4-
b
it
f
loating-
p
oint
real num
b
er
s
1
s
2
d
s
2
Var_D3
Var_D
1
0
Var_R0
438.8
1
90
3
6
.789
6
11
.9
2
78
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......