
Chapter 5. Application instructions
5-51
-
Execution conditions
2) Program example
-
Program which stores the multiplication result of D0001 and D0002 at D0010, D0011 while P020 is
on.
-
Program which stores the multiplication result of D0001, D0002 and D0003,D0004 at D0010 ~
D0013 when P020 is switched on.
Input condition
MULS, DMULS
MULSP, DMULSP
Executed only once
Executed only once
Executed per scan
Executed per scan
MULS D0001 D0002 D0010
P020
h04D2
hE9D2
hFF95
D0001
h1644
=
×
D0002
D0011
D0010
DMULSP D0001 D0003 D0010
hFDCD
hDCE8
hCC78
D0001
h4AAA
=
×
D0002
D0003
D0004
h0071
h26FC
D0013
D0012
h794F
hC210
D0011
D0010
P020
(= –7006652)
(=1234)
(= –5678)
(= –36840216)
(= –864531798)