beautypg.com

Reference – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual

Page 359

background image

Application Example Programs

E–9

Rung 4:1

Keeps track of the hole number that is being drilled and loads the
correct high-speed counter preset based on the hole count. This rung
is only active when the ”hole selector switch” is in the ”3-hole”
position. The sequencer uses step 0 as a null step upon reset. It
uses the last step as a ”go forever” in anticipation of the ”end of
manual” hard wired external reset.

| hole |hole 3 hole |
| selector |selector preset |
| switch |switch sequencer |
| bit 0 |bit 1 |
| I:0 I:0 +SQO–––––––––––––––+ |
|––––]/[––––––––] [–––––––––––––––––––––+–+SEQUENCER OUTPUT +–(EN)–+–|
| 9 10 | |File #N7:50+–(DN) | |
| | |Mask FFFF| | |
| | |Dest N7:7| | |
| | |Control R6:4| | |
| | |Length 5| | |
| | |Position 0| | |
| | +––––––––––––––––––+ | |
| | | |
| | force the | |
| | sequencer | |
| | to increment | |
| | on next scan | |
| | R6:4 | |
| +––––(U)––––––––––––––––––––+ |
| EN |

Rung 4:2
Is identical to the previous rung except that it is only active when
the ”hole selector switch” is in the ”5-hole” position.

| hole |hole 5 hole |
| selector |selector preset |
| switch |switch sequencer |
| bit 0 |bit 1

|

| I:0 I:0 +SQO–––––––––––––––+ |
|––––] [––––––––]/[–––––––––––––––––––––+–+SEQUENCER OUTPUT +–(EN)–+–|
| 9 10 | |File #N7:55+–(DN) | |
| | |Mask FFFF| | |
| | |Dest N7:7| | |
| | |Control R6:5| | |
| | |Length 7| | |
| | |Position 0| | |
| | +––––––––––––––––––+ | |
| | force the | |
| | sequencer | |
| | to increment | |
| | on the next | |
| | scan | |
| | R6:5 | |
| +––––(U)––––––––––––––––––––+ |
| EN |

This rung accesses I/O only available with 32 I/O controllers. Do not include it if you are using a 16 I/O controller.

This instruction accesses I/O only available with 32 I/O controllers. Do not include it if you are using a 16 I/O
controller.

Reference