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.

14.3 POP CPU with Two ACCUs<br />

Format<br />

Description<br />

Status word<br />

Example<br />

POP<br />

Accumulator Instructions<br />

POP (CPU with two ACCUs) copies the entire contents of ACCU 2 to ACCU 1.<br />

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

without affecting, the status bits.<br />

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

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

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

T MD10 //Transfer contents of ACCU 1 (= value A) to MD10<br />

POP //Copy entire contents of ACCU 2 to ACCU 1<br />

T MD14 //Transfer contents of ACCU 1 (= value B) to MD14<br />

Contents ACCU 1 ACCU 2<br />

before executing POP instruction value A value B<br />

after executing POP instruction value B value B<br />

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

A5E00706960-01 14-3

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

Saved successfully!

Ooh no, something went wrong!