DVP15MC11T Operation Manual
The data type of Out is a real number for the division of an integer and a real number or the division
of two real numbers. The value of Out is shown as below including its fractional part when there is a
remainder for this type of division.
Programming Example
The data types of variables DIV _In1, DIV _In2 and Out1 are all INT. The values of DIV _In1 and
DIV _In2 are 100 and 20 respectively. The value of Out1 is 5 when DIV _EN changes to TRUE.
The variable table and program
DIV_In2
INT
20
Out1
INT
5
1
DIV
EN ENO
In1 Out
In2
DIV_EN
DIV_In1
DIV_In2
Out1
In1 In2/
=
Division result
Out
INT
2.510 4 2.5
REALINT INT
8-64