[DIV_DI] Division of DINT values

Description

This instruction divides the IN1 input value by the IN2 input value and outputs the quotient at the output parameter OUT.

OUT = IN1 / IN2

Troubleshooting

ENO = 0 at division by 0 or division of –2147483648 by –1.

Parameters

Parameters

Declaration

Data type

Description

Default

IN1

Input

DINT

Dividend

0

IN2

Input

DINT

Divisor

1

OUT

Output

DINT

Quotient

0