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.

Accumulator Instructions<br />

14.6 PUSH CPU with Four ACCUs<br />

Format<br />

Description<br />

Status word<br />

Example<br />

PUSH<br />

PUSH (CPU with four ACCUs) copies the contents of ACCU 3 to ACCU 4, the<br />

contents of ACCU 2 to ACCU 3, and the contents of ACCU 1 to ACCU 2. ACCU 1<br />

remains unchanged. The instruction is executed without regard to, and without<br />

affecting, the status bits.<br />

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

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

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

L MW10 //Load the contents of MW10 into ACCU 1.<br />

PUSH //Copy the entire contents of ACCU 1 to ACCU 2, the contents of ACCU 2 to ACCU<br />

3, and the contents of ACCU 3 to ACCU 4.<br />

Contents ACCU 1 ACCU 2 ACCU 3 ACCU 4<br />

before executing PUSH instruction value A value B value C value D<br />

after executing PUSH instruction value A value A value B value C<br />

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

14-6 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!