DVP-15MC Series Motion Controller Operation Manual
8-72
_8
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
Variable name
Data type
Initial value
DIV_EN
BOOL
TRUE
DIV_In1
INT
100
DIV_In2
INT
20
Out1
INT
5
1
DIV
EN
ENO
I n1
O ut
I n2
DIV _EN
DIV _In1
DIV _In2
Out 1
I n1
In2
/
=
Divis ion res ult
Ou t
I NT
2.5
10
4
2 .5
REA L
INT
I NT
Summary of Contents for DVP-15MC Series
Page 19: ...DVP 15MC Series Motion Controller Operation Manual 1 4 _1 MEMO...
Page 23: ...DVP 15MC Series Operation Manual 2 4 _2 MEMO...
Page 31: ...DVP 15MC Series Motion Controller Operation Manual 3 8 _3 MEMO...
Page 75: ...DVP 15MC Series Motion Controller Operation Manual 6 26 _6 MEMO...
Page 87: ...DVP 15MC Series Motion Controller Operation Manual 7 12 _7 MEMO...
Page 432: ...Chapter 8 Logic Instructions 8 345 8_ MEMO...
Page 470: ...DVP 15MC Series Motion Controller Operation Manual 10 34 10 MEMO...
Page 878: ...DVP 15MC Series Motion Controller Operation Manual 11 408 11 1 MEMO...
Page 920: ...DVP 15MC Series Motion Controller Operation Manual A 16 A MEMO...
Page 941: ...D 1 D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2...
Page 966: ...DVP 15MC Series Motion Controller Operation Manual D 26 D MEMO...