High−level Instructions
3 − 83
Outline Multiplies two 16-bit data items and stores the result in the specified
16-bit area.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P34 (P*W)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
F34 *W, DT10, DT20, DT3010
R0
S2 DS1
Trigger
10
11
ST R 0
F34 (*W)
DT 10
DT 20
DT 30
S1 16-bit equivalent constant or 16-bit area (for multiplicand)
S2 16-bit equivalent constant or 16-bit area (for multiplier)
D 16-bit area for storing multiplied result
Operands
Relay Timer/Counter Register
Index
register
Constant
Inde
er
Operand
WX WY WR WL SV EV DT LD
FL
(*1)
I K H f
device
S1 A A A A A A A A A A A A N/A A N/A
S2 A A A A A A A A A A A A N/A A N/A
D N/A A A A A A A A A A N/A N/A N/A A N/A
(*1) This cannot be used with the FP0R, FPΣ and FP−X.
Explanation of example
Multiplies the contents of data register DT10 and data register DT20 when trigger R0 turns on. The multiplied
result is stored in data register DT30.
····
Bit position
·····
DT10
15
000
12
0
11
000
8
0
7
000
4
0
3
100
0
0
Multiplicand [S1]: K8
R0: on
····
Bit position
·····
DT20
15
000
12
0
11
000
8
0
7
000
4
0
3
001
0
0
Multiplier [S2]: K2
····
Bit position
·····
DT30
15
000
12
0
11
000
8
0
7
000
4
1
3
000
0
0
Result [D]: K16
F34
P34
(P*W)
(*W)
16-bit data multiplication
(result in 16 bits)
vailable
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com