Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
230
6  BASIC INSTRUCTIONS
6.2  Arithmetic Operation Instructions
BIN 32-bit multiplication and division operations
D*(P), D/(P)
Processing details
D*
 • Multiplies BIN 32-bit data designated by (S1) and BIN 32-bit data designated by (S2), and stores the result in the device 
designated by (D).
 • If (D) is a bit device, only the lower 32 bits of the multiplication result will be considered, and the upper 32 bits cannot be 
designated.
Ex.
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 ((D)+2) and ((D)+3) data.
 • The values for (S1) and (S2) can be designated at between -2147483648 and 2147483647 (BIN 32 bits).
 • Judgments whether (S1), (S2), and (D) are positive or negative are made on the basis of the most significant bit (b31 for 
(S1) and (S2), b63 for (D)).
(S1):  Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored (BIN 32 bits)
(S2):  Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored (BIN 32 bits)
(D):   Head number of the devices where the multiplication/division operation result will be stored (BIN 64 bits)
Setting 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
(S1)
(S2)
(D)
• 0 
 Positive
• 1 
 Negative
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
P
S1
S2
D
S1
S2
D
D
D/
D*, D/
D*P, D/P
indicates an instruction symbol of    *       .
123456 (BIN)
b0
b63 b48
b31 b16
70109427840 (BIN)
b0
b16 b15
567890 (BIN)
b31
S1
S2
D
S1
b0
b16 b15
b31
b47 b32
b15
S2
D
D
D