Specifications

SIMATIC Instructions
9-121
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Rotate Right Double Word, Rotate Left Double Word
The Rotate Right Double Word and Rotate Left
Double Word instructions rotate the input double word
value (IN) right or left by the shift count (N), and load the
result in the output double word (OUT).
If the shift count (N) is greater than or equal to 32, a
modulo-32 operation is performed on the shift count (N)
before the rotation is executed. This results in a shift
count of 0 to 31. If the shift count is 0, a rotation is not
performed. If the rotation is performed, the value of the
last bit rotated is copied to the overflow bit (SM1.1).
If the shift count is not an integer multiple of 32, the last
bit rotated out is copied to the overflow memory bit
(SM1.1). The zero memory bit (SM1.0) is set when the
value to be rotated is zero.
Rotate right double word and rotate 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, SMD, LD, AC, HC, Constant, *VD, *AC, SD, *LD DWORD
N VB, IB, QB, MB, SMB, LB, AC, Constant, *VD, *AC, SB, *LD BYTE
OUT VD, ID, QD, MD, SMD, LD, AC, *VD, *AC, SD, *LD DWORD
L
A
D
S
T
L
OUT
ROR_DW
EN
IN
N
OUT
OUT
ROL_DW
EN
IN
N
OUT
RRD OUT, N
RLD OUT, N
F
B
D
ENO
ENO
222 224
333
221