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

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

Advertisement

*(P), /(P)
6.2.3

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

*(P), /(P)
/
*
P
, / P
*
Function
*
(1) Multiplies BIN 16-bit data designated by
stores the result in the device designated by
(2) If
D
Example
(3) Values for
(4) Judgments whether
most significant bit (b15 for
• 0: Positive
• 1: Negative
6-14
6.2 Arithmetic Operation Instructions
6.2.3 BIN 16-bit multiplication and division operations (*(P), /(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 16 bits)
: Data for multiplying/dividing or start number of the devices where the data for multiplying/dividing is stored
S2
(BIN 16 bits)
: Start number of the devices where the multiplication/division operation result will be stored (BIN 32 bits)
D
Internal Devices
Set
Data
Bit
S1
S2
D
S1
b15
b0
5678 (BIN)
is a bit device, designation is made from the lower bits.
K1........ Lower 4 bits (b0 to b3)
K4........ Lower 16 bits (b0 to b15)
K8........ 32 bits (b0 to b31)
and
can be designated between
S1
S2
,
, and
S1
S2
, and
S1
S1
P
S1
Constants
Others
K, H
Word
––
––
––
––
and BIN 16-bit data designated by
S1
.
D
D
S2
b15
b0
b31
1234 (BIN)
7006652 (BIN)
32768 and 32767 (BIN, 16 bits).
are positive or negative are made on the basis of the
D
, for
and b31).
S2
D
indicates " , /".
D
S2
D
S2
, and
S2
D
+1
b16 b15
b0

Advertisement

Table of Contents
loading

Table of Contents