Chapter 6 Instruction Details
XBC E-Type Main Unit
6-167
Ver. 1
6.28.7 MULU, MULUP, DMULU, DMULUP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
MULU(P)
DMULU(P)
S1 O O O O O O O - O -
- O O O O O
4~6
-
O
-
S2 O O O O O O O - O -
- O O O O O
D O O O - O O O - O -
-
- O O O O
Operand
Description
Data Type
S1
Data to be multiplied by S2
WORD/DWORD
S2
Data to be multiplied by S1
WORD/DWORD
D
Address to save operation result in
DWORD/LWORD
[Flag Set]
Flag
Description
Device Number
Zero
To be set if operation result is Zero.
F111
1) MULU (Unsigned Binary Multiply)
(1) Saves the result of word data S1 multiplied by S2 in D+1,D (16-bit).
(2) Performs Unsigned Operation.
2) DMULU (Unsigned Binary Double Multiply)
(1) Saves the result of word data (S1+1,S1) multiplied by (S2+1,S2) in D+3,D+2,D+1,D (32-bit).
(2) Performs Unsigned Operation.
3) Program Example
(1) For P1000=’1234’ and P1100=’2’, Input Signal P00000 is changed from Off to On status, the result of
Unsigned addition ‘2468’ is saved in P1200.
MULU P1000 P1100 P1200
P00000
(D)MULU
P S1 S2
(D)MULUP
S1 S2
means
MULU/DMULU
D
D
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...