EasyManua.ls Logo

Delta Electronics DVP15MC11T

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
Loading...
Chapter 8 Logic Instructions
8_
Programming Example
The data type of TRUNC _In is REAL with the value -5.6. The data type of Out1 is LINT. Then the
value of Out1 is -5 when TRUNC _EN changes to TRUE. And the value of Out1 is 10 as the values
of TRUNC _In 10.8.
Variable 1
Variable name
Data type
Current value
TRUNC_EN
BOOL
TRUE
TRUNC _In
REAL
-5.6
Out1
LINT
-5
Variable 2
Variable name
Data type
Current value
TRUNC_EN
BOOL
TRUE
TRUNC _In
REAL
10.8
Out1
LINT
10
The program
1
TRUNC
EN ENO
In Out
TRUNC_EN
TRUNC_In Out1
8-105

Table of Contents

Related product manuals