Left Rotation Of 32-Bit Data: Drol, Drcl - 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.28 Left rotation of 32-bit data: DROL, DRCL

Setting
data
X
Y
M
(D)
n
[Setting data]
[Function]
Bit device
SM
F
T
C
D
[Instruction]
Command
DROL
Command
DRCL
Setting data
(D)
n
(1) Left rotation of 32-bit data (Not include the carry flag) (DROL)
• The 32-bit data of the device designated at (D), not including the carry flag, is
rotated n-bits to the left. The carry flag turns ON or OFF depending on its status
prior to the execution of the DROL instruction.
Carry flag
(SM12)
• 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 left since the
remainder of 34 / 32 = 1 is "2".
Usable device
Word device
W
T
C
SD
Z
DROL
DRCL
Number of device where left rotation data is stored. (BIN 32 bits)
(D)+1
b31
b30b29
n-bit rotation
5 - 65
Constant
Pointer
Level
K
H
P
N
(D)
n
(D)
n
Description
Times (0 to 31)
(D)
b16b15
b2 b1 b0
Digit
desig-
Index
nation
: Usable

Advertisement

Table of Contents
loading

Table of Contents