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

Page 449

Advertising
background image

Appendix E
Application Example Programs

E–6

Rung 2:5
Calls the drill sequence subroutine. This subroutine manages the
operation of a drilling sequence and restarts the conveyor upon completion
of the drilling sequence.

| +JSR–––––––––––––––+ |
|––––––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE+–|
| |SBR file number 6| |
| +––––––––––––––––––+ |

Rung 2:6
Calls the subroutine that tracks the amount of wear on the current drill
bit.
| +JSR–––––––––––––––+ |
|––––––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE+–|
| |SBR file number 7| |
| +––––––––––––––––––+ |

Rung 2:7
| |
|–––––––––––––––––––––––––––––––––––––+END+–––––––––––––––––––––––––––|
| |

Rung 4:0
Resets the hole count sequencers each time that the low preset is reached.
The low preset has been set to zero to cause an interrupt to occur each
time that a reset occurs. The low preset is reached anytime that a reset
C5:0 or hardware reset occurs. This ensures that the first preset value
is loaded into the high–speed counter at each entry into the RRUN mode and
each time that the external reset signal is activated.

| interrupt 3-hole |
| occurred preset |
| due to sequencer |
| low preset |
| reached |
| +INT––––––––––––––––––––+ C5:0 R6:4 |
|–+INTERRUPT SUBROUTINE +––––] [–––––––––––––––––––––+–––(RES)––––+–|
| +–––––––––––––––––––––––+ IL | | |
| | 5-hole | |
| | peset | |
| | sequencer | |
| | R6:5 | |
| +–––(RES)––––+ |
| | | |
| | 7-hole | |
| | preset | |
| | sequencer | |
| | R6:6 | |
| +–––(RES)––––+ |
| |

Advertising