Item number
Arithmetic instructions-6
Ladder format
d = s1 × s2
Instruction format
d = s1 × s2
Usable I/O
d
Substitution destination
s1
Multiplicand
s2
Multiplier
Function
•
Multiplies s1 and s2 as the binary data, and substitutes the result into d+1 (upper digit) and d (lower digit) in binary.
•
The DER flag is set to "1" if d+1 exceeds the usable I/O range (in this case only the lower word is substituted), and "0"
when it does not exceed.
MSB
MSB
×
MSB
d+1
d
Notes
•
The combinations of d, s1 and s2 are as follows:
d
Word
Double word
Double word
•
Since the operation results are always substituted into d and d + 1, note that the word or double-word at d + 1 is not used as
the I/O of others.
Program example
X00000
Program description
•
When input X00000 is on, the product of WR0000 value and WR0001 value is substituted into WR0002.
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
↕
Number of steps
Condition
Word
Double word
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
Example: WR0012 = WR0010 × WR0011
0
s1
0
×
s2
WR0013
0
s1
s2
Word
Word
Double word
WR0002 = WR0000 * WR0001
5-51
Chapter 5 Instruction Specifications
Binary multiplication (BINARY MULTIPLICATION)
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
43
Steps
4
112
6
Word
Double word
WR,
WM TC DX DY
Example: WR0014 = DR0010 × DR0012
WR0010
WR0011
WR0012
×
DR0012
WR0017
WR0016
DR0016
LD X00000
[
WR0002 = WR0000 * WR0001
]
Remark
Upper case: W
Lower case: DW
DR,
Other
DM
WR0011
WR0010
DR0010
WR0013
WR0012
DR0012
WR0015
WR0014
DR0014