12.05.2014 Views

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

plc function ref - 34.32<br />

JSR/SBR/RET - Jump Subroutine / Subroutine / Return<br />

A<br />

JSR<br />

JUMP TO SUBROUTINE<br />

Program File 3<br />

Input par N7:0<br />

Input par N7:1<br />

Return par N7:10<br />

Return par N7:11<br />

Return par N7:12<br />

B<br />

SBR<br />

SUBROUTINE<br />

Input par<br />

Input par<br />

N7:20<br />

N7:21<br />

Description:<br />

Status Bits:<br />

Registers:<br />

C<br />

RET<br />

RETURN()<br />

Return par N7:22<br />

Return par N7:23<br />

Return par N7:24<br />

The JSR will jump to another program file <strong>and</strong> pass a list of arguments<br />

that can be a variable length. The first statement in the subroutine program<br />

file should be SBR to retrieve the arguments passed. The subroutine<br />

will end with the RET comm<strong>and</strong> that will go back to where the<br />

JSR function was encountered. The RET function can return a variable<br />

number of arguments.<br />

none<br />

none<br />

Available on: Micrologix, PLC-5<br />

www.PA<strong>Control</strong>.com

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

Saved successfully!

Ooh no, something went wrong!