This function enables you to :
Multiply 2 operand values,
Divide the product by a third operand.
The product of the multiplication operation is temporarily stored in a long integer to avoid overflow problems.
Since there is no Ladder element for this function; you perform it by storing values into:
SI 141 to provide Operand A (multiplicand),
SI 142 to provide Operand B (multiplicand),
SI 143 to provide Operand C (divisor),
Store 100 into SI 140 to call the function. In your application, call the function after you have entered all of the other parameters.
The results will be placed in:
SI 144,
SI 4: Divide Remainder.
If the result is out of the integer range:
SB 141 will turn ON.
If the value contained in Operand C (divisor) is 0:
SB 4: Divide by 0, will turn ON.
To use this function:
|
Note that when you run Test (Debug) Mode, the current value in SI 140 will not be displayed. |