Arithmetic instructions
65
Part II IEC Instructions
DIV
Divide
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
PLC types Availability of DIV (see page 1335)
Input and output variables must be of one of the noted data types. All
operands must be of the same data type.
The number of steps may vary depending on the PLC and parameters
used, see also Table of Code Intensive Instructions in the online help.
Data type I/O Function
INT, DINT, REAL 1st input dividend
INT, DINT, REAL 2nd input divisor
INT, DINT, REAL output as input result
Description
DIV divides the value of the first input variable by the value of the second.
Data types