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.

11.2.4 RLDA Rotate ACCU 1 Left via CC 1 (32-Bit)<br />

Format<br />

Description<br />

Status word<br />

Examples<br />

RLDA<br />

Shift and Rotate Instructions<br />

RLDA (rotate left double word via CC 1) rotates the entire contents of ACCU 1 to the<br />

left by one bit position via CC 1. The status word bits CC 0 and OV are reset to 0.<br />

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

writes: - x 0 0 - - - - -<br />

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

Bit 31 . . . . . . . . . . 16 15 . . . . . . . . . . 0<br />

before execution of RLDA X 0101 1111 0110 0100 0101 1101 0011 1011<br />

after execution of RLDA 0 1011 1110 1100 1000 1011 1010 0111 011X<br />

(X = 0 or 1, previous signal state of CC 1)<br />

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

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

RLDA //Rotate bits in ACCU 1 one place to the left via CC 1.<br />

JP NEXT //Jump to NEXT jump label if the bit rotated out last (CC 1) = 1.<br />

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

A5E00706960-01 11-19

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

Saved successfully!

Ooh no, something went wrong!