6 - 26 6 - 26
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.2.4 BIN 32-bit multiplication and division operations (D , D P, D/, D/P)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
S1
S2
D
[Instruction Symbol] [Execution Condition]
indicates the signs D
or D/
Command
Command
P
,D/D
P,D/P
D
S1 S2
D
S1 S2
D
[Set Data]
Set Data Meaning Data Type
S1
Data that will be multiplied or divided, or the head number of the device
storing data that will be multiplied or divided
S2
Data to multiply or divide by, or the head number of device storing such
data
BIN 32 bits
D
Head number of the device storing the operation results of multiplication
or division operation
BIN 64 bits
[Functions]
D
(1) 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
.
+1
123456 (BIN)
+1+2
70109427840 (BIN)
+3+1
567890 (BIN)
b31- -b16 b15- -b0
S1
S2
D
S1
b15- -b0
S2
D D
D
b31- -b16 b15- -b0
b63- -b48 b47- -b32b31- -b16
(2) 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.
Example K1...........Lower 4 bits (b0 to 3)
K4...........Lower 16 bits (b0 to 15)
K8...........Lower 32 bits (b0 to 31)
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.
(3) The values for
S1
,
S2
, and
D
can be designated at between -2147483648 to 2147483647 (BIN
32 bits).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com