173
Outline
Multiplies two 16-bit data and stores the result in the specified 32-bit area.
Program example
■
Operands
■
Explanation of example
• Multiplies the contents of word external input relay WX0 and decimal constant K100 when trigger X0 turns ON.
The multiplied result is stored in data registers DT1 and DT0.
Bit position
K100
0 0 0 0
0 0 0 0
11
8
0 1 1 0
0 1 0 0
3
0
Multiplier [S2]: K100
X0: ON
15
•
•
12
•
•
•
•
7
4
•
•
Bit position
DT0
0 0 0 0
1 0 0 1
11
8
1 1 0 0
0 1 0 0
3
0
15
•
•
12
•
•
•
•
7
4
•
•
Bit position
WX0
0 0 0 0
0 0 0 0
11
8
0 0 0 1
1 0 0 1
3
0
Multiplicand [S1]: K25
15
•
•
12
•
•
•
•
7
4
•
•
Bit position
DT1
0 0 0 0
0 0 0 0
11
8
0 0 0 0
0 0 0 0
3
0
Result [D+1, D]: K2500
15
•
•
12
•
•
•
•
7
4
•
•
+
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
higher 16-bit area
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
lower 16-bit area
Timer/Counter
EV
Relay
SV
WR
WY
WX
Operand
S1
A
A
A
A
A:
N/A: Not Available
Register
DT
A
IY
IX
A
A
H
K
A
A
Constant
Index
modifier
A
Index
register
Available
A
S2
A
A
A
A
A
A
A
A
A
A
A
N/A A
A
A
A
A
N/A N/A N/A
A
A
D
F30
(
✽
)
16-bit data
[S1
×
S2
→
(D+1, D)]
Availability
Step
7
All series
6-3. Description of High-level Instructions
16-bit equivalent constant or 16-bit area (for multiplicand)
16-bit equivalent constant or 16-bit area (for multiplier)
Lower 16-bit area of 32-bit data (for result)
Ladder Diagram
Boolean Non-ladder
Address
Instruction
10
X0
F30
✽
, WX0 , K 100 , DT 0
D
Trigger
S2
S1
10
11
ST
X
0
F
30
(
✽
)
WX
0
K
100
DT
0
S1
S2
D
Summary of Contents for FP1
Page 1: ...PROGRAMMABLE CONTROLLER FP1 is a global brand name of Matsushita Electric Works Hardware ...
Page 28: ...20 ...
Page 98: ...90 ...
Page 150: ...142 ...
Page 208: ...200 ...
Page 226: ...218 ...
Page 280: ...272 ...