12 - using program flow control instructions, About the program flow control instructions, Using program flow control instructions – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 217

Advertising
background image

12

Chapter

12–1

Using Program Flow Control Instructions

This chapter contains general information about the program flow
instructions and explains how they function in your application program.
Each of the instructions includes information on:

what the instruction symbol looks like

typical execution time for the instruction

how to use the instruction

how to enter the instruction

In addition, the last section contains an application example for a paper
drilling machine that shows the program flow control instructions in use.

Program Flow Control Instructions

HHP

Display

Mnemonic

Function
Code

Name

Purpose

Page

LBL

JMP

LD LBL

130

131

Jump to Label

Label

Jump forward or backward to the specified label instruction.

12–2

SBR

JSR

LD SBR

RET

132

133

134

Jump to Subroutine

Subroutine

Return from Subroutine

Jump to a designated subroutine and return.

12–3

MCR

135

Master Control Reset

Turn off all non-retentive outputs in a section of ladder program.

12–6

TND

136

Temporary End

Mark a temporary end that halts program execution.

12–7

SUS

137

Suspend

Identifies specific conditions for program debugging and system
troubleshooting.

12–7

IIM

138

Immediate Input with
Mask

Program an Immediate Input with Mask.

12–8

IOM

139

Immediate Output with
Mask

Program an Immediate Output with Mask.

12–9

Use these instructions to control the sequence in which your program is
executed.

Since these are output instructions (except LD LBL and LD SBR), they do
not have LD, AND, and OR equivalents.

About the Program Flow
Control Instructions

Advertising