Name in LL984 Editor
|
Function Block Name
|
---|---|
name of legacy 984 instruction
|
name in other tools and editors like:
|
![]() |
![]() |
Input Pin
|
Name
|
Data Type
|
Address Range
|
Meaning
|
---|---|---|---|---|
Top
|
ENABLE
|
–
|
OFF to ON initiates the operation.
|
|
Middle
|
REM
|
BOOL
|
–
|
Indicates how any remainder will be expressed; ON = decimal; OFF = fraction.
|
Bottom
|
SIGNED
|
BOOL
|
–
|
ON indicates a signed operation; OFF indicates an unsigned operation.
|
Node
|
Node Type
|
Name
|
Data Type
|
Address Range
|
Meaning
|
---|---|---|---|---|---|
Top
|
IN
|
VALUE1
|
ArrUInt2
|
%IW, %MW
|
The dividend. Can be displayed as an integer constant, can be located in a variable located in a %IW input word or a %MW memory word, or can be stored in an unlocated word. If located in a %IW input or %MW memory word, 2 words are used.
Valid range for constant value:
Valid range for %MW, %IW:
|
Middle
|
IN
|
VALUE2
|
UINT
|
%IW, %MW
|
The divisor 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:
-32,768..32,767 (signed)
0..65,535 (unsigned)
|
Bottom
|
IN/OUT
|
RESULT
|
ArrUInt2
|
%MW
|
The quotient and any remainder must be located in 2 %MW memory words or 2 unlocated UINT words; the first word holds the quotient, the second word holds the remainder. For example, if VALUE1 = 8 and VALUE2 = 3:
|
Output Pin
|
Name
|
Data Type
|
Address Range
|
Meaning
|
---|---|---|---|---|
Top
|
OUT
|
BOOL
|
–
|
ON indicates the 16-bit division operation succeeded. (Echoes the status of the ENABLE input).
|
Middle
|
OVERFL
|
BOOL
|
–
|
ON indicates an overflow: the value in the first RESULT word > 65,535 (unsigned), or the value in the first RESULT word < -32,768 (signed), or the value in the first RESULT word >+32,767 (signed).
|
Bottom
|
DIVBY0
|
BOOL
|
–
|
ON indicates VALUE2 = 0, thereby attempting division by 0.
|