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

Create successful ePaper yourself

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

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 />

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 />

RET<br />

RETURN()<br />

Return par N7:22<br />

Return par N7:23<br />

Return par N7:24<br />

Available on: Micrologix, PLC-5

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

Saved successfully!

Ooh no, something went wrong!