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.

Program Control Instructions<br />

10.2 BE Block End<br />

Format<br />

Description<br />

Status word<br />

Example<br />

BE<br />

BE (block end) terminates the program scan in the current block and causes a jump<br />

to the block that called the current block. The program scan resumes with the first<br />

instruction that follows the block call statement in the calling program. The current<br />

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

local data area. The data blocks that were opened when the block was called are<br />

re-opened. In addition, the MCR dependency of the calling block is restored and the<br />

RLO is carried over from the current block to the block that called the current block.<br />

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

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

destination within the block.<br />

The BE instruction is not identical to the S5 software. The instruction has the same<br />

function as BEU when used on S7 hardware.<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 />

BE //Block end<br />

NEXT: NOP<br />

0<br />

//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-2 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!