6ć14 – Rockwell Automation 1772-LV Mini-PLC - 2/15 Programmable Controller (Series B) Programming and Operations User Manual

Page 71

Advertising
background image

Advanced Instruction Set

Chapter 6

6Ć14

Section C

Jump Instructions and Subroutine Programming

You are capable of reducing scan time by using instructions that selectively
jump over portions of a program. These instructions are:

Jump
Label
Jump to subroutine
Return

This section describes how jump instructions and subroutine programming
direct the path of the program scan through the main program and the
subroutine area.

The subroutine area is located in the memory between the main program and the
message store areas (Figure 6.7). This area acts as the end of program
statement for the main program. It allows storage of small programs that are to
be accessed periodically. Subroutine areas are not scanned unless you program
the processor to jump to this area.

Introduction

What is a Subroutine Area?

Advertising