Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 451

Advertising
background image

Appendix E
Application Example Programs

E–8

Rung 4:3

Is identical to the two previous rungs except that it is only active when
the ”hole selector switch” is in the ”7-hole” position.

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

Rung 4:4
Ensures that the high–speed counter preset value (N7:7) is immediately
applied to the HSC instruction.

| High Speed Counter |
| +HSL–––––––––––––––+ |
|––––––––––––––––––––––––––––––––––––––––––––––––+HSC LOAD +–|
| |Counter C5:0| |
| |Source N7:5| |
| |Length 5| |
| +––––––––––––––––––+ |

Rung 4:5
Interrupt occurred due to low preset reached.

| C5:0 +RET–––––––––––––––+–|
|––––][––––––––––––––––––––––––––––––––––––––––––+RETURN + |
| IL +––––––––––––––––––+ |

Rung 4:6
Signals the main program (file 2) to initiate a drilling sequence. The
high-speed counter has already stopped the conveyor at the correct
position using its high preset output pattern data (clear O:0/0). This
occurred within microseconds of the high preset being reached (just prior
to entering this high-speed counter interrupt subroutine). The drill
sequence subroutine resets the drill sequence start bit and sets the
conveyor drive bit (O:0/0) upon completion of the drilling sequence.

| interrupt occurred | Drill Sequence Start |
| due to high preset reached | |
| C5:0 B3 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––|
| IH 32 |

Rung 4:7

| |
|–––––––––––––––––––––––––––––––+END+–––––––––––––––––––––––––––––––––|
| |

➀ This rung accesses I/O only available with 32 I/O controllers. Therefore, do not include this rung

if you are using a 16 I/O controller.

Advertising