Chapter 8 Logic Instructions
8_
Programming Example
The variable table and program
Variable name
Data type
Initial value
CTD1
CTD
CTD1_EN
BOOL
FALSE
CTD1_CD
BOOL
FALSE
CTD1_Load
BOOL
FALSE
CTD1_PV
UDINT
4
CTD1_Q
BOOL
CTD1_CV
UDINT
Timing Chart:
Case 1
:
There is no impact on the ouput by triggering CTD1_CD when the value of CTD1_CV is
0.
Case 2
:
When CTD1_Load is TRUE and CTD1_CV equals the set value of CTD1_PV, CTD1_Q
changes from TRUE to FALSE. At the moment, CTD1_CV does not count down when
CTD1_CD is triggered.
Case 3
:
If CTD counts down normally and CTD1_Load is FALSE, the value of CTD1_CV is
decreased by 1 whenever CTD1_CD is triggered once. CTD1_Q is TRUE when the
value of CTD1_CV is decreased to 0.
1
CTD
EN
ENO
Q
CTD1
CD
Q
Lo ad
CV
P V
CTD1 _EN
CTD1_CD
CTD1_Lo ad
CTD1_P V
CTD1_ Q
CTD1_ CV
CTD1_CD
CTD1_Lo ad
CTD1_Q
CTD1 _CV
CTD1_ PV
Cas e 1
Ca se 2
Case 3
8-49
Summary of Contents for DVP15MC11T
Page 9: ...Memo viii...
Page 15: ...DVP15MC11T Operation Manual _2 MEMO 2 4...
Page 71: ...DVP15MC11T Operation Manual _7 Memo 7 10...
Page 81: ...DVP15MC11T Operation Manual _8 Timing Chart F_TRG_CLK F_TRG_Q 8 10...
Page 158: ...Chapter 8 Logic Instructions 8_ The program 1 ASIN EN ENO In Out ASIN_EN ASIN_In Out1 8 87...
Page 249: ...DVP15MC11T Operation Manual _8 8 178...
Page 285: ...DVP15MC11T Operation Manual _8 Memo 8 214...
Page 323: ...DVP15MC11T Operation Manual 10 MEMO 10 34...
Page 549: ...DVP15MC11T Operation Manual A MEMO A 16...