DVP15MC11T Operation Manual
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur during the compiling of the software if
any input variable is omitted. But the output variable is allowed to omit.
The input value of In2 can not be 0. In other words, the divisor in the division operation can not be 0.
The value of Out will be 0 if the value of In2 is 0.
Programming Example
The data types of variables MODTURNS _In1, MODTURNS _In2 are both REAL and Out1 is DINT.
The values of MODTURNS _In1 and MODTURNS _In2 are 800.23 and 360.0 respectively. The
value of Out1 is 2 when MODTURNS _EN changes to TRUE.
The variable table and program
1
MODTURNS
EN ENO
In1 Out
In2
MODTURNS_EN
MODTURNS_In1
MODTURNS_In2
Out1
8-70