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.13 UC Unconditional Call<br />

Format<br />

Description<br />

Status word<br />

Example 1<br />

UC <br />

UC (unconditional block call) calls a logic block of the FC or<br />

SFC type. UC is like the CALL instruction, except that you cannot transfer<br />

parameters with the called block. The instruction saves the return address (selector<br />

and relative address) selectors of the two current data blocks, as well as the MA bit<br />

into the B (block) stack, deactivates the MCR dependency, creates the local data<br />

area of the block to be called, and begins executing the called code.<br />

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

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

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

UC FC6 //Call function FC6 (without parameters).<br />

Example 2<br />

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

UC SFC43 //Call system function SFC43 (without parameters).<br />

Note<br />

When the CALL instruction is used for a function block (FB) or system function block<br />

(SFB) an instance data block (DB no.) is expressed explicitly in the instruction. For a<br />

call made with the UC instruction, you cannot associate a data block in the UC<br />

address<br />

Depending on the network you are working with, the Program Editor either generates<br />

the UC instruction or the CC instruction during conversion from the Ladder Logic<br />

programming language to the <strong>Statement</strong> <strong>List</strong> programming language. You should<br />

attempt to use the CALL instruction instead to avoid errors occurring in your<br />

programs.<br />

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

10-16 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!