DVP-15MC Series Motion Controller Operation Manual
8-74
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 MOD _In1, MOD _In2 and Out1 are all INT. The values of MOD _In1
and MOD _In2 are 10 and 4 respectively. The value of Out1 is 2 when MOD _EN changes to
TRUE.
The Variable and program
MOD _In2
INT
4
Out1
INT
2
1
MOD
EN ENO
In1 Out
In2
MOD_EN
MOD_In1
MOD_In2
Out1