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.

Conversion Instructions<br />

3.14 CAD Change Byte Sequence in ACCU 1 (32-Bit)<br />

Format<br />

Description<br />

Status word<br />

Example<br />

CAD<br />

CAD reverses the sequence of bytes in ACCU 1. The result is stored in accumulator<br />

1. Accumulator 2 remains unchanged.<br />

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

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

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

L MD10 //Load the value of MD10 into ACCU 1.<br />

CAD //Reverse the sequence of bytes in ACCU 1.<br />

T MD20 //Transfer the results to MD20.<br />

Contents ACCU1-H-H ACCU1-H-L ACCU1-L-H ACCU1-L-L<br />

before execution of CAD value A value B value C value D<br />

after execution of CAD value D value C value B value A<br />

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

3-14 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!