6 - 24 6 - 24
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.2.3 BIN 16-bit multiplication and division operations ( , P, /, /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
or /
Command
Command
P
, /
P, /P
S1
D
S2
S1
D
S2
[Set Data]
Set Data Meaning Data Type
S1
Data that will be multiplied or divided, or the first number of the device
storing data that will be multiplied or divided
S2
Data to multiply or divide by, or the first number of device storing such
data
BIN 16 bits
D
First number of the device storing the operation results of multiplication or
division operation
BIN 32 bits
[Functions]
(1) 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
.
1234 (BIN)5678 (BIN)
b15- - - - - - - - - b0
+1
7006652 (BIN)
b31- -b16 b15- -b0
S1
S2
D D
b15- - - - - - - - - b0
(2) If
D
is a bit device, designation is made from the lower bits.
Example K1...........Lower 4 bits (b0 to 3)
K4...........Lower 16 bits (b0 to 15)
K8...........Lower 32 bits (b0 to 31)
(3) The values for
S1
,
S2
, and
D
can be designated at between -32768 and 32767 (BIN 16 bits).
(4) 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
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com