Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
6-32
D*(P),D/(P)
6.2.4  
BIN 32-bit multiplication and division operations (D*(P),D/(P))
D*(P),D/(P)
Function
D*
(1) Multiplies BIN 32-bit data designated by 
 and BIN 32-bit data designated by 
, and 
stores the result in the device designated by 
.
(2) If 
 is a bit device, only the lower 32 bits of the multiplication result will be considered, and 
the upper 32 bits cannot be designated.
K1.......... Lower 4 bits (b0 to b3)
K4.......... Lower 16 bits (b0 to b15)
K8.......... Lower 32 bits (b0 to b31)
If the upper 32 bits of the bit device are required for the result of the multiplication operation, 
first temporarily store the data in a word device, then transfer the word device data to the bit 
device by designating (
+2) and (
+3) data.
(3) The values for 
 and 
 can be designated at between  2147483648 and 2147483647 
(BIN 32 bits).
(4) Judgments 
whether , , 
and  
are 
positive 
or negative are made on the basis of the 
most significant bit (b31 for 
 and 
, b63 for 
).
 • 0: Positive
 • 1: Negative
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored 
(BIN 32 bits)
:
 
Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored 
(BIN 32 bits)
:
 
Head number of the devices where the multiplication/division operation result will be stored (BIN 64 bits)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
Basic
Process
High
performance
Redundant Universal
Command
Command
P
S1
S2
D
S1
S2
D
, D/
D
D/
P,D/P
D*
D*
indicates an instruction symbol of    *       .
S1
S2
D
S1
S2
D
S1
S2
D
123456 (BIN)
b0
b63 b48
b31 b16
70109427840 (BIN)
b0
b16 b15
567890 (BIN)
b31
S1
S2
D
S1
b0
b16 b15
b31
b47 b32
b15
S2
D
D
D
D
Example
D
D
S1
S2
S1
S2
D
S1
S2
D