12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

438 Program Control <strong>Instructions</strong> (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT)Jump to Subroutine (JSR)Subroutine (SBR) Return(RET)The JSR instruction jumps execution to a different routine. The SBRand RET instructions are optional instructions that exchange data withthe JSR instruction.JSR Operands:Relay LadderOperand Type Format DescriptionRoutine ROUTINE name routine to execute (that is, subroutine)nameInputparameterBOOLSINTINTDINTREALimmediatetagarray tagdata from this routine that you want to copyto a tag in the subroutine• Input parameters are optional.• Enter multiple input parameters, ifneeded.structureReturnparameterBOOLSINTINTDINTtagarray tagtag in this routine to which you want to copya result of the subroutine• Return parameters are optional.• Enter multiple return parameters, ifneeded.REALstructurePublication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!