6 - 38 6 - 38
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.2.8 BCD 8-digit multiplication and division operations
(DB
, DB P, DB/, DB/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 DB
or DB/
Command
Command
P
, DB/
P,DB/P
DB
DB
D
S1 S2
D
S1 S2
[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
BCD 8 digits
D
Head number of the device storing the operation results of multiplication
or division operation
BCD 16 digits
[Functions]
DB
(1) Multiplies the BCD 8-digit data designated by
S1
and the BCD 8-digit data designated by
S2
,
and stores the product at the device designated by
D
.
9999 9999 9999 9999
+1
9999 9998 0000 000
1
+1 +2 +3
D D D D
S1
+1
S1 S2 S2
(2) If
D
has designated a bit device, the lower 8 digits (lower 32 bits) will be used for the product,
and the higher 8 digits (upper 32 bits) cannot be designated.
K1
. . .
Lower 1 digit (b0 to 3)
K4
. . .
Lower 4 digits (b0 to 15)
K8
. . .
Lower 8 digits (b0 to 31)
(3) The values for
S1
and
S2
can be designated from 0 to 99999999 (8 digit BCD).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com