beautypg.com

Call the routine – Rockwell Automation Logix5000 Logix5000 Controllers Quick Start User Manual

Page 22

background image

22

Publication 1756-QS001E-EN-P - October 2009

Chapter 1 Program and Test a Simple Project

Call the Routine

To execute a routine other than the main routine, use a Jump to Subroutine (JSR) instruction to call the
routine.

1. Add a rung.

2. On the Program Control tab, add a JSR instruction.

3. In the Routine Name field of the JSR instruction, type the name of the routine that you want to

execute.

4. To simply call the routine, remove the rest of the parameters for the JSR instruction. To remove a

parameter, right-click the parameter and choose Remove Instruction Parameter.

This manual is related to the following products: