Right Rotation Of 32-Bit Data: Dror, Drcr - Mitsubishi Electric MELSEC Q Series Programming Manual

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU

5.4.26 Right rotation of 32-bit data: DROR, DRCR

Setting
data
X
Y
M
(D)
n
[Setting data]
[Function]
Bit device
SM
F
T
C
D
[Instruction]
Command
DROR
Command
DRCR
Setting data
(D)
n
(1) Right rotation of 32-bit data (Not include the carry flag) (DROR)
• The 32-bit data of the device designated at (D), not including the carry flag, is
rotated n-bits to the right. The carry flag turns ON or OFF depending on its
status prior to the execution of the DROR instruction.
b31
b30b29
• Specify any of 0 to 31 as n. If the value specified as n is out of range, the
remainder of n / 32 is used for rotation. (As n is BIN 16 bits unsigned value.) For
example, when n=34, the contents are rotated two bits to the right since the
remainder of 34 / 32 = 1 is "2".
Usable device
Word device
W
T
C
SD
Z
DROR
DRCR
Number of device where right rotation data is stored. (BIN 32 bits)
(D)+1
b16b15
n-bit rotation
5 - 61
Constant
Pointer
Level
K
H
P
N
(D)
n
(D)
n
Description
Times (0 to 31)
(D)
Carry flag
(SM12)
b2 b1 b0
Digit
desig-
Index
nation
: Usable

Advertisement

Table of Contents
loading

Table of Contents