26.10.2012 Views

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

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.

6.2 JU Jump Unconditional<br />

Format<br />

Description<br />

Status word<br />

Example<br />

JU <br />

Address Description<br />

Symbolic name of jump destination.<br />

Logic Control Instructions<br />

JU interrupts the linear program scan and jumps to a jump<br />

destination, regardless of the status word contents. The linear program scan<br />

resumes at the jump destination. The jump destination is specified by a jump label.<br />

Both forward and backward jumps are possible. Jumps may be executed only within<br />

a block, that is, the jump instruction and the jump destination must lie within one and<br />

the same block. The jump destination must be unique within this block. The<br />

maximum jump distance is -32768 or +32767 words of program code. The actual<br />

maximum number of statements you can jump over depends on the mix of the<br />

statements used in your program (one-, two-, or three word statements).<br />

BR CC 1 CC 0 OV OS OR STA RLO /FC<br />

writes: - - - - - - - - -<br />

<strong>STL</strong> Explanation<br />

A I 1.0<br />

A I 1.2<br />

JC DELE //Jump if RLO=1 to jump label DELE.<br />

L MB10<br />

INC 1<br />

T MB10<br />

JU FORW //Jump unconditionally to jump label FORW.<br />

DELE: L 0<br />

T MB10<br />

FORW: A I 2.1 //Program scan resumes here after jump to jump label FORW.<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) for S7-300 and S7-400 Programming<br />

A5E00706960-01 6-3

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

Saved successfully!

Ooh no, something went wrong!