Delta AS Series Programming Manual page 790

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 4: Execute interrupts when the counter value reached the set value.
1.
DHCCMP instruction can be used for interrupt. Set the flags of Match 1 and Match 2 as interrupts of I400 and I401
respectively.
2.
Set the value in Comp 1 to 5000, the value in Action1 to 3, and the value in Yno1 to 0; set the value in Comp 2 to
10000, the value in Action2 to 3, and the value in Yno2 to 1.
3.
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.
4.
When the counter value reached Comp 1, I400 interrupt is executed and start the Action 1 = 3: Y0.0 toggles
between ON /OFF.
5.
When the counter value reached Comp 2, I401 interrupt is executed and start the Action 2 = 3: Y0.1 toggles
between ON /OFF.
Cha p ter 6 App l ied Ins truc tio ns
6_
6-511

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents