Bin 32-Bit Multiplication And Division Operations (D*(P), D/(P)) - Mitsubishi MELSEC QS Series Programming Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

D*(P), D/(P)
6.2.4

BIN 32-bit multiplication and division operations (D*(P), D/(P))

D*(P), D/(P)
D*, D/
P, D/ P
D*
Function
D*
(1) Multiplies BIN 32-bit data designated by
stores the result in the device designated by
(2) If
D
the upper 32 bits cannot be designated.
Example
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 (
(3) The values for
(BIN 32 bits).
(4) Judgments whether
most significant bit (b31 for
• 0: Positive
• 1: Negative
6-16
6.2 Arithmetic Operation Instructions
6.2.4 BIN 32-bit multiplication and division operations (D*(P), D/(P))
Command
Command
: Data to be multiplied/divided or start number of the devices where the data to be multiplied/divided is stored
S1
(BIN 32 bits)
: Data for multiplying/dividing or start number of the devices where the data for multiplying/dividing is stored
S2
(BIN 32 bits)
: Start number of the devices where the multiplication/division operation result will be stored (BIN 64 bits)
D
Internal Devices
Set
Data
Bit
S1
S2
D
+1
S2
+1
S1
S1
b31
b16 b15
b0
b31
567890 (BIN)
123456 (BIN)
is a bit device, only the lower 32 bits of the multiplication result will be considered, and
K1........ Lower 4 bits (b0 to b3)
K4........ Lower 16 bits (b0 to b15)
K8........ Lower 32 bits (b0 to b31)
+ 2) and (
D
and
can be designated at between
S1
S2
,
, and
S2
S1
S1
P
Constants
Others
K, H
Word
––
––
––
––
and BIN 32-bit data designated by
S1
.
D
D
D
S2
+3
b16 b15
b0
b63 b48
b47 b32
70109427840 (BIN)
+ 3) data.
D
are positive or negative are made on the basis of the
D
and
, b63 for
).
S2
D
indicates "D , D/".
D
S1
S2
D
S1
S2
, and
S2
D
D
+2
+1
b31 b16
b15
b0
2147483648 and 2147483647

Advertisement

Table of Contents
loading

Table of Contents