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

Table of Contents

Advertisement

*, *P, /, /P
6.2.3
*, *P, /, /P

BIN 16-bit multiplication and division operations

6.2.3
*, *P, /, /P
*, /
*P, / P
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored (BIN 16 bits)
S1
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored (BIN 16 bits)
S2
: Head number of the devices where the multiplication/division operation result will be stored (BIN 32 bits)
D
Setting
Internal Devices
Data
Bit
Word
S1
S2
D
Function
*
(1) Multiplies BIN 16-bit data designated by
designated by
.
D
(2) If
is a bit device, designation is made from the lower bits.
D
Example
K1..........Lower 4 bits (b0 to b3)
K4..........Lower 16 bits (b0 to b15)
K8..........32 bits (b0 to b31)
(3) Values for
and
can be designated between -32768 and 32767 (BIN, 16 bits).
S1
S2
(4) Judgments whether
,
S1 S2
and
, for
and b31).
S2
D
• 0: Positive
• 1: Negative
194
Command
Command
J
\
R, ZR
Bit
and BIN 16-bit data designated by
S1
S1
b15
b0
b15
5678 (BIN)
1234 (BIN)
, and
are positive or negative are made on the basis of the most significant bit (b15 for
D
High
Basic
performance
indicates an instruction symbol of *
S1
S2
P
S1
S2
U
\G
Word
, and stores the result in the device
S2
D
D
S2
b0
b31
b16 b15
7006652 (BIN)
Process
Redundant Universal
LCPU
, /
.
D
D
Constants
Zn
Other
K, H
––
––
––
––
b0
,
S1

Advertisement

Table of Contents
loading

Table of Contents