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.

Conversion Instructions<br />

3.13 CAW Change Byte Sequence in ACCU 1-L (16-Bit)<br />

Format<br />

Description<br />

Status word<br />

Example<br />

CAW<br />

CAW reverses the sequence of bytes in ACCU 1-L. The result is stored in the low<br />

word of accumulator 1. The high word of accumulator 1 and accumulator 2 remain<br />

unchanged.<br />

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

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

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

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

CAW //Reverse the sequence of bytes in ACCU 1-L.<br />

T MW20 //Transfer the result to MW20.<br />

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

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

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

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

A5E00706960-01 3-13

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

Saved successfully!

Ooh no, something went wrong!