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.

Load and Transfer Instructions<br />

9.2 L Load<br />

Format<br />

Description<br />

Status word<br />

Examples<br />

L <br />

Address Data type Memory area Source address<br />

BYTE<br />

E, A, PE, M, L, D, 0...65535<br />

WORD<br />

Pointer, Parameter 0...65534<br />

DWORD<br />

0...65532<br />

L loads the addressed byte, word, or double word into ACCU 1 after the<br />

old contents of ACCU 1 have been saved into ACCU 2, and ACCU 1 is reset to "0".<br />

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

writes: - - - - - - - - -<br />

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

L IB10 //Load input byte IB10 into ACCU 1-L-L.<br />

L MB120 //Load memory byte MB120 into ACCU 1-L-L.<br />

L DBB12 //Load data byte DBB12 into ACCU 1-L-L.<br />

L DIW15 //Load instance data word DIW15 into ACCU 1-L.<br />

L LD252 //Load local data double word LD252 ACCU 1.<br />

L P# I 8.7 //Load the pointer into ACCU 1.<br />

L OTTO //Load the parameter "OTTO" into ACCU 1.<br />

L P# ANNA //Load the pointer to the specified parameter in ACCU 1. (This instruction<br />

loads the relative address offset of the specified parameter. To calculate<br />

the absolute offset in the instance data block in multiple instance FBs, the<br />

contents of the AR2 register must be added to this value.<br />

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

9-2 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!