Delta Electronics DVP15MC11T Operation Manual page 122

Table of Contents

Advertisement

Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
CTUD is used as an up counter for counting up and a down counter for counting down.
Precautions for Correct Use
The counter will not count down while Load is TRUE.
The counter will not count up while Reset is TRUE.
Programming Example
The variable table and program
Variable name
CTUD1
CTUD1_EN
CTUD1_CU
CTUD1_CD
CTUD1_Reset
CTUD1_Load
CTUD1_PV
CTUD1_QU
CTUD1_QD
CTUD1_CV
Timing Chart:
CTUD1_CU
CTUD1_ CD
CTUD1_Res et
CTUD1_ Load
CTUD1_ PV
CTUD1 _CV
CTUD1_QU
CTUD1_QD
Case 1: If CTUD counts up normally, the value of CTUD1_CV is increased by 1 whenever
CTUD1_CU is triggered once.
Case 2: When CTUD1_Reset is TRUE, CTUD1_CV is cleared to 0, CTUD1_QU changes to
FALSE and CTUD1_QD changes to TRUE.
Data type
CTUD1
CTUD
CTUD1_EN
EN
CTUD1_ CU
CU
CTUD1_ CD
CD
CTUD1_Res et
Re set
CTUD1_ Load
L oad
CTUD1 _PV
P V
Cas e 1
Cas e 2
Chapter 8 Logic Instructions
CTUD
BOOL
BOOL
BOOL
BOOL
BOOL
UDINT
BOOL
BOOL
UDINT
1
E NO
CTUD1 _QU
Q U
CTUD1 _QD
Q D
CV
CTUD1 _CV
Cas e 3
Cas e 4
Initial value
FALSE
FALSE
FALSE
FALSE
FALSE
4
8-51
8_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents