Delta AS Series Programming Manual page 796

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example
1.
Set up the following parameters.
CurNo
Source value for
comparison (32-bit)
1
D50 = 1000
2
D52 = 2000
3
D54 = 3000
4
D56 = 4000
5
D58 = 5000
6
D60 = 6000
7
D62 = 7000
8
D64 = 8000
9
D66 = 9000
10
D68 = 10000
Executing the instruction (En OFF  ON) and set the Update to ON. Once the values are updated, the instruction
2.
uses the updated values for comparison. The current counted number less than the corresponding value in
Compsis set for comparison. The starting current value is less than 1000, its corresponding CurNo is 0 and no
action is taken.
3.
When the counter value met 1000 (999→1000), its corresponding CurNo switches from 0 to 1 and Y0.0 switches
from OFF to ON, and I400 interrupt is executed. If the input interface is pulse, the comparison begins when the
counter value is reaching 1001 (1000→1001).
4.
When the counter value met 2000 (1999→2000), its corresponding CurNo switches from 1 to 2 and Y0.1 switches
from OFF to ON, and I401 interrupt is executed. If the input interface is pulse, the comparison begins when the
counter value is reaching 2001 (2000→2001).
5.
When the counter value met 3000 (2999→3000), its corresponding CurNo switches from 2 to 3 and Y0.2 switches
from OFF to ON, and I402 interrupt is executed. If the input interface is pulse, the comparison begins when the
counter value is reaching 3001 (3000→3001).
6.
Follow the same rule to do the comparison, until the CurNo is 10. After the last comparison is done, set the counter
value to 1000 so that the CurNo can go back to 1.
7.
If you are using the ring counter, when the counter value met 1000 again, the comparison starts again. The CurNo is
1, Y0.0 switches from OFF to ON, and I400 interrupt is executed. And follow the same rule to do the comparison.
CompS
ActionS
To take when the
value is met
D70 = 3 (Toggle)
D71 = 3 (Toggle)
D72 = 3 (Toggle)
D73 = 3 (Toggle)
D74 = 3 (Toggle)
D75 = 3 (Toggle)
D76 = 3 (Toggle)
D77 = 3 (Toggle)
D78 = 3 (Toggle)
D79 = 3 (Toggle)
Cha p ter 6 App l ied Ins truc tio ns
YnoS
(output point
(interrupt number)
number)
D80 = 0 (Y0.0)
D90 = 400
D81 = 1 (Y0.1)
D91 = 401
D82 = 2 (Y0.2)
D92 = 402
D83 = 3 (Y0.3)
D93 = 403
D84 = 0 (Y0.0)
D94 = 404
D85 = 1 (Y0.1)
D95 = 405
D86 = 2 (Y0.2)
D96 = 406
D87 = 3 (Y0.3)
D97 = 407
D88 = 0 (Y0.0)
D98 = 408
D89 = 1 (Y0.1)
D99 = 409
InoS
6_
6-517

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents