[MOD_DI] Modulo function of DINT values

Description

This instruction outputs the remainder of the division of the input value IN1 by the input value IN2 at the output parameter OUT.

The instruction DIV_DI is used for the integer division of data type DINT.

Troubleshooting

ENO = 0 in the case of division by 0.

Parameters

Parameters

Declaration

Data type

Description

Default

IN1

Input

DINT

Dividend

0

IN2

Input

DINT

Divisor

1

OUT

Output

DINT

Remainder

0