[DIV_I] Division of INT 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 –32768 by –1.
Parameters
Parameters | Declaration | Data type | Description | Default |
|---|---|---|---|---|
IN1 | Input | INT | Dividend | 0 |
IN2 | Input | INT | Divisor | 1 |
OUT | Output | INT | Quotient | 0 |