Mitsubishi Electronics QCPU Welding System User Manual


  Open as PDF
of 1204
 
6-57
ED*(P),ED/(P)
1
2
3
4
4
6
7
8
6.2 Arithmetic Operation Instructions
6.2.12 Multiplication and division of floating decimal point data (Double precision) (ED*(P),ED/(P))
ED/
(1) Divides the 64-bit floating decimal point real number designated by by the 64-bit floating
decimal point real number designated by and stores the operation result at the device
designated by .
(2) Values which can be designated at , and and which can be stored, are as follows:
0, 2
-1022
| Designated value (stored value) | < 2
1024
(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: (Error code: 4140)
0, 2
-1022
| Contents of designated device | < 2
1024
The value of the designated device is 0. (Error code: 4140)
The value of at division operation is 0. (Error code: 4100)
The result of multiplication/division exceeds the following range (Operation results in an
overflow):
2
1024
| Result of operation | (Error code: 4141)
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] [List Mode]
[Operation]
S1
S2
D
64-bit floating-point
real number
64-bit floating-point
real number
+3
64-bit floating-point
real number
D
+2
D
D
+1
D
+3 +2 +1 +3 +2 +1
S1 S1 S1 S1 S2 S2
S2 S2
S1
S2
D
S2
Step
Instruction
Device
D4
36.7896
D3D6 D5
D11
11.9278
D10D13 D12
R1
438.8190
R0R3 R2