L9_MUL: Multiply
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9_MUL procedure multiplies unsigned VALUE1 by unsigned VALUE2, and then posts the RESULT in 2 contiguous words.
The multiply operation begins when the input to the ENABLE pin is turned ON. The OUT output turns ON upon the successful completion of the operation.
Formula
RESULT = VALUE1 × VALUE2
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
OFF to ON initiates the operation.
Node
Node
Name
Data Type
Address Range
Meaning
Top
IN
VALUE1
%IW, %MW
The multiplicand. Can be displayed as an integer constant, can be stored in a variable located in a %IW input word or a %MW memory word, or can be in an unlocated word.
Valid range: 0 to 65,535.
Middle
IN
VALUE2
UINT
%IW, %MW
The multiplier. Can be displayed as an integer constant, or can be stored in a variable located in a %IW input word, a %MW memory word or an unlocated word. Valid range: 0 to 65,535.
Bottom
IN/OUT
RESULT
ArrUINT2
%MW
The product. The first word stores the four high-order digits of the product, and the second word stored the low-order digits of the product. For example:
  • if the product is 16000, the first word holds a value of 1 and the second word holds a value of 6000.
Must be located in 2 %MW memory words or 2 unlocated UINT words.
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON indicates the multiplication operation succeeded. (Echoes the status of the ENABLE input).