Delta Electronics DVP15MC11T Operation Manual page 180

Table of Contents

Advertisement

Programming Example
The data type of variable FRACTION _In is REAL with the value -5.6. The data type of Out1 is
LREAL. Then the value of Out1 is -0.6 when FRACTION _EN changes to TRUE. And the value of
Out1 is 0.8 as the values of FRACTION _In 10.8.
Variable 1
Variable name
FRACTION_EN
FRACTION _In
Out1
Variable 2
Variable name
FRACTION_EN
FRACTION _In
Out1
The program
Data type
BOOL
REAL
LREAL
Data type
BOOL
REAL
LREAL
FRACTIO N
FRACTION_E N
EN
FRACTIO N_ In
In
Chapter 8 Logic Instructions
Current value
TRUE
-5.6
-0.6
Current value
TRUE
10.8
0.8
1
E NO
Out
O ut1
8_
8-109

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents