EasyManuals Logo

Delta Electronics DVP15MC11T User Manual

Delta Electronics DVP15MC11T
601 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #131 background imageLoading...
Page #131 background image
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 Out
In2
MUL_EN
MUL_In1
MUL_In2
Out1
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
Input parameter
Multiplication
Result
assignment
Out
Output
parameter
8-60

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta Electronics DVP15MC11T and is the answer not in the manual?

Delta Electronics DVP15MC11T Specifications

General IconGeneral
BrandDelta Electronics
ModelDVP15MC11T
CategoryController
LanguageEnglish

Related product manuals