Delta Electronics DVP15MC11T Operation Manual page 110

Table of Contents

Advertisement

Programming Example
The data types of NE_In1 and NE_In2 are INT and DINT respectively and the data type of Out1
is BOOL.
Out1 changes to TRUE when the values of NE_In1 and NE_In2 are 100 and 50 respectively and NE
_EN changes to TRUE as shown in Variable 1.
Out1 changes to FALSE when the values of NE_In1 and NE _In2 are 100 and 100 respectively and
NE_EN changes to TRUE as shown in Variable 2.
Variable 1
Variable name
NE_EN
NE _In1
NE _In2
Out1
Variable 2
Variable name
NE_EN
NE _In1
NE _In2
Out1
The Program
The data types of NE_In1 and NE_In2 are both TIME and the data type of Out1 is BOOL.
Out1 changes to TRUE when the values of NE_In1 and NE_In2 are T#10ms and T#50ms
respectively and NE_EN changes to TRUE.
The variable table and program
Variable name
NE_EN
NE _In1
NE _In2
Out1
Data type
BOOL
INT
UINT
BOOL
Data type
BOOL
INT
UINT
BOOL
1
NE
NE_ EN
E N
ENO
NE_ In1
In 1
O ut
Out1
NE_ In2
In2
Data type
BOOL
TIME
TIME
BOOL
1
NE
NE_ EN
E N
ENO
NE_ In1
In 1
O ut
Out1
NE_ In2
In2
Chapter 8 Logic Instructions
Current value
TRUE
100
50
TRUE
Current value
TRUE
100
100
FALSE
Current value
TRUE
T#10ms
T#50ms
TRUE
8-39
8_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents