Logical Rotate Right Double Word, Rotate Left Double Word - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

Logical Rotate Right Double Word, Rotate Left Double Word

L
A
EN
D
F
IN
B
D
N
EN
IN
N
S
RRD
T
L
RLD
221
222 224
Inputs/Outputs
IN
VD, ID, QD, MD, SMD, LD, AC, HC, Constant, *VD, *AC, SD, *LD
N
VB, IB, QB, MB, SMB, LB, AC, Constant, *VD, *AC, SB, *LD
OUT
VD, ID, QD, MD, SMD, LD, AC, *VD, *AC, SD, *LD
S7-200 Programmable Controller System Manual
A5E00066097-02
The Rotate Right Double Word and Rotate Left
Double Word instructions rotate the input double word
ROR_DW
ENO
value (IN) right or left by the shift count (N), and load the
result in the output double word (OUT).The rotate is
OUT
OUT
circular.
If the shift count (N) is greater than or equal to 32, a
modulo-32 operation is performed on the shift count (N)
ROL_DW
before the rotation is executed. This results in a shift
ENO
count of 0 to 31. If the shift count is 0, a rotation is not
OUT
OUT
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
OUT, N
(SM1.1). The zero memory bit (SM1.0) is set when the
value to be rotated is zero.
OUT, N
Note that the sign bit is shifted when you are using
signed data types.
226
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)
Operands
SIMATIC Instructions
Data Types
DWORD
BYTE
DWORD
9-125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents