Chapter 8 Logic Instructions
8_
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
Data type
Initial value
CTUD1
CTUD
CTUD1_EN
BOOL
FALSE
CTUD1_CU
BOOL
FALSE
CTUD1_CD
BOOL
FALSE
CTUD1_Reset
BOOL
FALSE
CTUD1_Load
BOOL
FALSE
CTUD1_PV
UDINT
4
CTUD1_QU
BOOL
CTUD1_QD
BOOL
CTUD1_CV
UDINT
Timing Chart:
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.
1
CTUD
EN
E NO
Q U
CTUD1
CU
CD
Q D
Re set
L oad
P V
CV
CTUD1_EN
CTUD1_ CU
CTUD1_ CD
CTUD1_Res et
CTUD1_ Load
CTUD1 _PV
CTUD1 _QU
CTUD1 _QD
CTUD1 _CV
CTUD1_CU
CTUD1_ CD
CTUD1 _CV
CTUD1_QU
CTUD1_ PV
CTUD1_Res et
CTUD1_ Load
CTUD1_QD
Cas e 1
Cas e 2
Cas e 3
Cas e 4
8-51
Содержание DVP15MC11T
Страница 9: ...Memo viii...
Страница 15: ...DVP15MC11T Operation Manual _2 MEMO 2 4...
Страница 71: ...DVP15MC11T Operation Manual _7 Memo 7 10...
Страница 81: ...DVP15MC11T Operation Manual _8 Timing Chart F_TRG_CLK F_TRG_Q 8 10...
Страница 158: ...Chapter 8 Logic Instructions 8_ The program 1 ASIN EN ENO In Out ASIN_EN ASIN_In Out1 8 87...
Страница 213: ...DVP15MC11T Operation Manual _8 The program 1 LIMIT EN ENO MN Out MX In LIMIT_EN LIMIT_MN LIMIT_MX LIMIT_In Out1 8 142...
Страница 216: ...Chapter 8 Logic Instructions 8_ The program 1 BAND EN ENO MN Out MX In BAND_EN BAND_MN BAND_MX BAND_In Out1 8 145...
Страница 249: ...DVP15MC11T Operation Manual _8 8 178...
Страница 285: ...DVP15MC11T Operation Manual _8 Memo 8 214...
Страница 286: ...9 Chapter 9 Introductions of Axis Parameters Table of Contents 9 1 Description of Axis Parameters 9 2 9 1...
Страница 323: ...DVP15MC11T Operation Manual 10 MEMO 10 34...
Страница 549: ...DVP15MC11T Operation Manual A MEMO A 16...
Страница 571: ...DVP15MC11T Operation Manual C Memo C 10...
Страница 572: ...D Appendix D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2 D 1...