The math function Divide is executed by the Divide function block shown below. The input values in a Divide function may be:
With the exception of Constant Value, any of these operands may be used to contain the output value.
T
This Divide function can only return whole numbers. To divide floating point numbers, use the Divide function on the Float menu.
Signed remainder values are stored in SL 4 - Divide Remainder (Signed); unsigned results are stored in SDW 4 Divide Remainder (Unsigned).
Note that you must store the remainder values immediately after the division function because these registers will be overwritten by the next division function.
Values may not be divided by zero. In the event that this occurs, System Bit 4 (SB 4 - Divide by Zero) turns ON.