The math function Modulo is executed by the Mod function block shown below. The input values in a Modulo function may be:
With the exception of Constant Value, any of these operands may be used to contain the output value.

This Modulo function divides the A input by the B input, and then store the remainder in the C output.
Values may not be divided by zero. In the event that this occurs, System Bit 4 (SB 4 - Divide by Zero) turns ON.