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.

10.3 BEC Block End Conditional<br />

Format<br />

Description<br />

Status word<br />

Example<br />

BEC<br />

Program Control Instructions<br />

If RLO = 1, then BEC (block end conditional) interrupts the program scan in the<br />

current block and causes a jump to the block that called the current block. The<br />

program scan resumes with the first instruction that follows the block call. The<br />

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

current local data area. The data blocks that were current data blocks when the block<br />

was called are re-opened. The MCR dependency of the calling block is restored.<br />

The RLO (= 1) is carried over from the terminated block to the block that called. If<br />

RLO = 0, then BEC is not executed. The RLO is set to 1 and the program scan<br />

continues with the instruction following BEC.<br />

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

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

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

A I 1.0 //Update RLO.<br />

BEC //End block if RLO = 1.<br />

L IW4 //Continue here if BEC is not executed, RLO = 0.<br />

T MW10<br />

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

A5E00706960-01 10-3

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

Saved successfully!

Ooh no, something went wrong!