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 />

Example 1: FB99 call with instance data block DB1<br />

CALL FB99,DB1<br />

Formal parameter Actual parameter<br />

MAX_RPM := #RPM1_MAX<br />

MIN_RPM := #RPM1<br />

MAX_POWER := #POWER1<br />

MAX_TEMP := #TEMP1<br />

Example 2: FB99 call with instance data block DB2<br />

CALL FB99,DB2<br />

Formal parameter Actual parameter<br />

MAX_RPM := #RPM2_MAX<br />

MIN_RPM := #RPM2<br />

MAX_POWER := #POWER2<br />

MAX_TEMP := #TEMP2<br />

Note<br />

Every function block CALL must have an instance data block. In the example above,<br />

the blocks DB1 and DB2 must already exist before the call.<br />

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

10-8 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!