Specifications
SIMATIC Instructions
9-118
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Shift Right Double Word, Shift Left Double Word
The Shift Right Double Word and Shift Left Double
Word instructions shift the input double word value (IN)
right or left by the shift count (N), and load the result in
the output double word (OUT).
The Shift instructions fill with zeros as each bit is shifted
out. If the shift count (N) is greater than or equal to 32,
the value is shifted a maximum of 32 times. If the shift
count is greater than 0, the overflow memory bit (SM1.1)
takes on the value of the last bit shifted out. The zero
memory bit (SM1.0) is set if the result of the shift
operation is zero.
Shift right and shift left double word operations are
unsigned.
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
These instructions affect the following Special Memory
bits: SM1.0 (zero); SM1.1 (overflow)
Inputs/Outputs Operands Data Types
IN VD, ID, QD, MD, SD, SMD, LD, AC, HC, Constant, *VD, *AC, *LD DWORD
N VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *VD, *AC, *LD BYTE
OUT VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *AC, *LD DWORD
L
A
D
S
T
L
OUT
SHR_DW
EN
IN
N
OUT
OUT
SHL_DW
EN
IN
N
OUT
SRD OUT, N
SLD OUT, N
ENO
F
B
D
ENO
222 224
333
221