EasyManuals Logo

Allen-Bradley Logix5000 Reference Manual

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #459 background imageLoading...
Page #459 background image
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 459
Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT) Chapter 11
Example 1: The JSR instruction passes value_1 and value_2 to routine_1.
The SBR instruction receives value_1 and value_2 from the JSR instruction and
copies those values to value_a and value_b, respectively. Logic execution
continues in this routine.
The RET instruction sends float_a to the JSR instruction. The JSR instruction
receives float_a and copies the value to float_value_1. Logic execution continues
with the next instruction following the JSR instruction.
Relay Ladder
Structured Text
Routine Program
Main routine
Subroutine
[Other rungs of code]
Routine Program
Main routine JSR(routine_1,2,value_1,value_2,float_value_1);
Subroutine SBR(value_a,value_b);
<statements>;
RET(float_a);

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals