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

Page 226

Advertising
background image

Chapter 12
Using Program Flow Control Instructions

12–10

To demonstrate the use of program flow control instructions, this section
provides ladder rungs followed by the optimized instruction list for these
rungs. The rungs are part of the paper drilling machine application example
described in appendix E. You will be adding to the main program in file 2.
The new rungs are needed to call the other subroutines containing the logic
necessary to run the machine.

Ladder Rungs

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+–––––––––––––––––––––––––––|
| |

Instruction List

File 2, Rung 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.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
132 JSR SBR# 6

File 2, Rung 6

Calls the subroutine that tracks the amount of wear on the current drill
bit.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
132 JSR SBR# 7

Program Flow Control
Instructions in the Paper
Drilling Machine Application
Example

Advertising