Bin 32-Bit Multiplication And Division Operations - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

D*, D*P, D/, D/P
6.2.4
D*, D*P, D/, D/P

BIN 32-bit multiplication and division operations

6.2.4
D*, D*P, D/, D/P
D*, D/
D*P, D/P
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored (BIN 32 bits)
S1
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored (BIN 32 bits)
S2
: Head number of the devices where the multiplication/division operation result will be stored (BIN 64 bits)
D
Setting
Internal Devices
Data
Bit
Word
S1
S2
D
Function
D*
(1) Multiplies BIN 32-bit data designated by
designated by
.
D
S1
b31
567890 (BIN)
(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
D
designated.
Example
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
S1
S2
(4) Judgments whether
,
S1 S2
and
, b63 for
).
S2
D
• 0: Positive
• 1: Negative
196
Command
Command
J
R, ZR
Bit
and BIN 32-bit data designated by
S1
S1
S2
b16 b15
b0
b31
b16 b15
123456 (BIN)
can be designated at between -2147483648 and 2147483647 (BIN 32 bits).
, and
are positive or negative are made on the basis of the most significant bit (b31 for
D
Basic
indicates an instruction symbol of
S1
P
S1
\
U
\G
Word
––
, and stores the result in the device
S2
D
D
S2
b0
b63 b48
b47 b32
b31 b16
70109427840 (BIN)
High
Process
Redundant Universal
performance
D
*
D/
.
S2
D
S2
D
Constants
Zn
K, H
D
D
b15
b0
D
D
LCPU
Other
––
––
––
S1

Advertisement

Table of Contents
loading

Table of Contents