Delta AS Series Programming Manual page 353

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
API
Instruction code
0117
Device
X
S
1
S
2
D
Data
type
S
1
S
2
D
Symbol
_6
Explanation
1.
This instruction multiplies the signed binary value in S
2.
Only the MUL32 instruction can use an HC device.
3.
16-bit binary multiplication:
The product is a 16-bit value stored in D which is a 16-bit register. If b15 in D is 0, the product stored in D is a positive
value. If b15 in D is 1, the product stored in D is a negative value.
6 - 7 4
MUL16
P
MUL32
Y
M
S
T
C
S
1
b15..............b0
Bit 15 is a sign bit.
Operand
,S
,D
S
1
2
HC
D
FR
SM
Pulse instruction
AS
: Multiplicand
S
1
: Multiplier
S
2
D : Product
by the signed binary value in S
1
S
2
b15..............b0
b15..............b0
=
*
Bit 15 is a sign bit. Bit 15 is a sign bit.
Function
Multiplying 16-bit binary numbers
Multiplying 32-bit binary numbers
SR
E
K
16#
16-bit instruction
32-bit instruction
AS
, and stores the product in D.
2
D
"$"
F
AS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents