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.

Shift and Rotate Instructions<br />

11.1.3 SSD Shift Sign Double Integer (32-Bit)<br />

Formate<br />

Description<br />

Status word<br />

SSD<br />

SSD <br />

Address Data type Description<br />

integer, unsigned number of bit positions to be shifted, range<br />

from 0 to 32<br />

SSD (shift right with sign double integer) shifts the entire contents of ACCU 1 to the<br />

right bit by bit. The bit places that are vacated by the shift instruction are filled with<br />

the signal state of the sign bit. The bit that is shifted out last is loaded into the status<br />

word bit CC 1. The number of bit positions to be shifted is specified either by the<br />

address or by a value in ACCU 2-L-L.<br />

SSD : The number of shifts is specified by the address . The<br />

permissible value range is from 0 to 32.The CC 0 and OV status word bits are reset<br />

to 0 if is greater than 0. If is equal to 0, the shift instruction is<br />

regarded as a NOP operation.<br />

SSD: The number of shifts is specified by the value in ACCU 2- L- L. The possible<br />

value range is from 0 to 255. A shift number > 32 always produces the same result<br />

(ACCU 1 = 32#00000000, CC 1 = 0 or ACCU 1 = 32#FFFFFFFF, CC 1 = 1). If the<br />

shift number is greater than 0, the status word bits CC 0 and OV are reset to 0. If the<br />

shift number is zero, then the shift instruction is regarded as an NOP operation.<br />

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

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

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

11-4 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!