DVP-15MC Series Motion Controller Operation Manual
8-144
_8
When the data types of input variables are not BOOL, TIME, DATE, TOD or STRING, the input
parameters
In0~In1
are allowed to connect the variables of different data types.
When the data types of input variables are one of BOOL, TIME, DATE, TOD and STRING, all the
input variables and output variable should be of the data type. For example, if the data type of the
variable connected to
In0
is TIME, the data types of the variables connected to
In1
and
Out
must
be TIME. Otherwise, an error will occur during the compiling of the software.
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur during the compiling of the software
if the input variables are omitted. But the output variable is allowed to omit.
The length of the data type of the output variable must contain the length of the variables that the
input parameters
In0
and
In1
connect. Otherwise, an error will occur during the compiling of the
software.
Programming Example
The data types of SEL_G, SEL_In0 and SEL_In1 are BOOL, UINT and DINT and the data type of
Out1 is DINT. When SEL_EN is TRUE, the value of Out1 is 50 if the values of SEL_G, SEL_In0
and SEL_In1 are FALSE, 50 and 100 respectively as shown in the following table Variable 1. If the
values of SEL_G, SEL_In0 and SEL_In1 are TRUE, 50 and 100 respectively, the value of Out1 is
100 as shown in the following table Variable 2.
Variable 1
Variable name
Data type
Current value
SEL_EN
BOOL
TRUE
SEL_G
BOOL
FALSE
SEL_In0
UINT
50
SEL_In1
DINT
100
Out1
DINT
50
Variable 2
Variable name
Data type
Current value
SEL_EN
BOOL
TRUE
SEL_G
BOOL
TRUE
SEL_In0
UINT
50
SEL_In1
DINT
100
Out1
DINT
100
The program
1
SE L
EN
ENO
G
Ou t
In1
In0
SEL_E N
SEL _G
SEL_ In1
SEL_ In0
O ut1
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...