DVP15MC11T Operation Manual
_8
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
8-60
Summary of Contents for DVP15MC11T
Page 9: ...Memo viii...
Page 15: ...DVP15MC11T Operation Manual _2 MEMO 2 4...
Page 71: ...DVP15MC11T Operation Manual _7 Memo 7 10...
Page 81: ...DVP15MC11T Operation Manual _8 Timing Chart F_TRG_CLK F_TRG_Q 8 10...
Page 158: ...Chapter 8 Logic Instructions 8_ The program 1 ASIN EN ENO In Out ASIN_EN ASIN_In Out1 8 87...
Page 249: ...DVP15MC11T Operation Manual _8 8 178...
Page 285: ...DVP15MC11T Operation Manual _8 Memo 8 214...
Page 323: ...DVP15MC11T Operation Manual 10 MEMO 10 34...
Page 549: ...DVP15MC11T Operation Manual A MEMO A 16...