-

MOD

Type Function
Description Divides the operand connected to IN1 by the operand connected to IN2 and returns the remainder of the division at OUT.
Notes
  • A division by zero leads to a runtime exception which results in calling an Event Handler and a controller halt.

    This applies only if the ENO output is not connected. For the EN/ENO behavior of the function in case of a division by zero, see the description below.

  • The function provides implicit data type conversion at its input and output parameters according to the rules defined by the IEC 61131 standard.
Parameters Inputs

IN1

IN2

Output

OUT
Error behaviorError behavior
Additional information EN/ENO behavior