Bin 16-Bit Multiplication And Division Operations - Mitsubishi Electric MELSEC Q Series Programming Manual

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU

5.4.5 BIN 16-bit multiplication and division operations: *, /

Setting
data
X
Y
M
(S1)
(S2)
(D)
[Setting data]
[Function]
Bit device
SM
F
T
C
D
[Instruction]
Command
*
Command
/
Setting data
Number of the devices where the data to be multiplied/divided is stored
(S1)
(S2)
Head number of the devices where the multiplication/division operation
(D)
(1) BIN 16-bit multiplication operation (*)
• Multiplies BIN 16-bit data designated by (S1) and BIN 16-bit data designated by
(S2), and stores the result in the device designated by (D), (D)+1 (As BIN 32
bits).
• Values for (S1), (S2) can be designated between -32768 and 32767 (BIN, 16
bits).
• Judgments whether (S1), (S2), and (D) are positive or negative are made on
the basis of the most significant bit (b15 for (S1), and (S2), for (D) and b31).
0: Positive
1: Negative
Usable device
Word device
W
T
C
SD
Z
*
(S1)
/
(S1)
Data for multiplying/dividing or head number of the devices where the
data for multiplying/dividing is stored (BIN 16 bits)
result will be stored (BIN 32 bits)
5 - 34
Constant
Pointer
Level
K
H
P
N
(S2)
(D)
(S2)
(D)
Description
(BIN 16 bits)
Digit
desig-
Index
nation
: Usable

Advertisement

Table of Contents
loading

Table of Contents