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

Create successful ePaper yourself

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

Program Control Instructions<br />

10.4 BEU Block End Unconditional<br />

Format<br />

Description<br />

Status word<br />

Example<br />

BEU<br />

BEU (block end unconditional) terminates the program scan in the current block and<br />

causes a jump to the block that called the current block. The program scan resumes<br />

with the first instruction that follows the block call. The current local data area is<br />

released and the previous local data area becomes the current local data area. The<br />

data blocks that were opened when the block was called are re-opened. In addition,<br />

the MCR dependency of the calling block is restored and the RLO is carried over<br />

from the current block to the block that called the current block. BEU is not<br />

dependent on any conditions. However, if the BEU instruction is jumped over, the<br />

current program scan does not end and will continue starting at the jump destination<br />

within the block.<br />

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

writes: - - - - 0 0 1 - 0<br />

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

A I 1.0<br />

JC NEXT //Jump to NEXT jump label if RLO = 1 (I 1.0 = 1).<br />

L IW4 //Continue here if no jump is executed.<br />

T IW10<br />

A I 6.0<br />

A I 6.1<br />

S M 12.0<br />

BEU //Block end unconditional.<br />

NEXT: NOP 0 //Continue here if jump is executed.<br />

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

10-4 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!