Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual
Page 97

Function Block Library
4–35
1336 FORCE — 5.9 August 1995
MULTIPLY
BLOCK TYPE 28 decimal 1C hexadecimal
Multiply
ID =
Exec =
Out MSW
NODE 0
In 1
NODE 1
In 2
NODE 3
Out LSW
NODE 2
DEFINITION
Multiplies two 16 bit inputs. This block calculates a 32 bit result that
is stored in two words Out LSW and Out MSW.
INPUTS
In 1 — A signed input integer.
In 2 — A signed input integer.
OUTPUTS
Out LSW — A least significant result word value representing bits
0–15 of a 32 bit output value.
Out MSW — A most significant result word value representing bits
16–31 of a 32 bit output value.
FUNCTION
Out LSW, Out MSW = In 1
×
In 2.
PARAMETERS
DATA TYPE
LINKABLE
DEFAULT VALUE
RANGE
In 1
Signed Integer
Yes
0
±
32767
In 2
Signed Integer
Yes
0
±
32767
Out LSW
Unsigned Integer
No
—
0 to 65535
Out MSW
Signed Integer
No
—
±
32767
DOUBLE WORD VALUES
Both the Most Significant Word and the Least Significant Word are
interpreted together by the function algorithm as one word when
using 32 bit values. The range of a double word value is
±
2,147,483,647. The range of the more common, signed single-word
16 bit node is
±
32767.
31
16 15
0
Most Significant Word
Least Significant Word
Node 3
Node 2