Delta Electronics DVP15MC11T Operation Manual page 176

Table of Contents

Advertisement

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
TRUNC_EN
TRUNC _In
Out1
Variable 2
Variable name
TRUNC_EN
TRUNC _In
Out1
The program
Data type
BOOL
REAL
LINT
Data type
BOOL
REAL
LINT
1
TRUNC
TRUNC_EN
EN
E NO
TRUNC_I n
In
Out
Chapter 8 Logic Instructions
Current value
TRUE
-5.6
-5
Current value
TRUE
10.8
10
O ut1
8_
8-105

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents