Delta AS Series Programming Manual page 787

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Example 2: Clear the counter value of its channel when the counter value reached the set value.
1.
Set the value in Comp 1 to 2500, the value in Action1 to 2, and the value in Yno1 to 0; set the value in Comp 2 to
5000, the value in Action2 to 8, and the value in Yno2 to 1.
2.
When M0 = ON, the counter starts counting and sets parameters for DHCCMP instruction and then waits for the
counter value to meet the set value.
3.
When the counter value reached Comp 1, the Match 1 flag is ON. Y0.0 is OFFON.
_6
4.
When the counter value reached Comp 2, start the Action 2 = 8: clear the counter value of its channel, clear the
flags of Match 1 / Match 2 and Y0.0 / Y0.1 to OFF.
5.
When the counter value reached Comp 1 once again, the Match 1 flag is ON. Y0.0 is OFFON.
6-508
H'7FFFFFFF
Comp1
Channel 1
Counter
0
Value
Comp2
H'80000000
MATCH1
Y0.0
MATCH2
Y0.1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents