DVP-15MC Series Motion Controller Operation Manual
8-68
_8
The input parameters
In1
~
InN
are allowed to be the variables of different data types in this
instruction. When
In1
~
InN
are the variables of different data types, the multiplication will be
performed based on the data type which can contain valid ranges of
In1
~
InN
values. For
example, the data type of
Out
is DINT if the data type of
In1
is INT and
In2
is DINT.
The input and output variables are allowed to be of different data types in this instruction. When the
data types of input and output variables are different, the range of the data type of the output
variable must include the valid ranges of data types of all input variables. Otherwise, there will be
an error during the compiling of the software. For example, if the data types of
In1
and
In2
are INT
and DINT respectively, the data type of
Out
is DINT. There will be an error during the compiling of
the software if the data type of the variable that
Out
is connected to is INT. No error will occur
during the compiling of the software if the data type of the variable that
Out
is connected to is LINT.
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 multiplication result of
In1
~
In2
may be out of the valid range of the data type of
Out.
For example, the data types of “MUL _In1” and “MUL _In2” are both INT with their respective
values, 20000 and 2. If the data type of the output variable is INT, the output variable value will be -
25536 as shown in the following table, Variable 1. If the data type of the output variable is set to
DINT, the output variable value will be 40000 as shown in the following table, Variable 2.
Variable 1
Variable name
Data type
Current value
MUL_EN
BOOL
TRUE
MUL _In1
INT
20000
MUL _In2
INT
2
Out1
INT
-25536
Variable 2
Variable name
Data type
Current value
MUL_EN
BOOL
TRUE
MUL _In1
INT
20000
MUL _In2
INT
2
Out1
DINT
40000
The Program
1
MUL
EN
ENO
In1
Ou t
In2
MUL_E N
MUL_I n1
MUL_I n2
O ut1
Programming Example
The data types of variables
MUL
_In1, MUL
_In2
and
Out1
are all INT. The values of
MUL
_In1
and
MUL
_In2
are 10 and 50 respectively. The value of
Out1
is 500 when
MUL
_EN
changes to TRUE.
In1
In2
InN
In put pa rameter Multiplicat ion
Res ult
as sign ment
O ut
Outp ut
paramete r
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...