Left Rotation Of 32-Bit Data (Drol(P),Drcl(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

DROL(P),DRCL(P)
7.2.4

Left rotation of 32-bit data (DROL(P),DRCL(P))

DROL(P),DRCL(P)
DROL, DRCL
DROLP, DRCLP
Setting
Data
D
n
Function
DROL
(1) The 32-bit data of the device designated at
to the left. The carry flag turns ON or OFF depending on its status prior to the execution of
the DROL instruction.
(2) When a bit device is designated for
specified by digit specification. The number of bits by which a rotation is executed is the
remainder of n /(specified number of bits).
For example, when n
1 is "7", and the data is rotated 7 bits.
(3) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the remainder of n/32
is used for rotation. For example, when n
remainder of 34/32
DRCL
(1) Rotates 32-bit data of the device designated by
The carry flag turns ON or OFF depending on its status prior to the execution of the DRCL
instruction.
7-44
Command
Command
: Head number of the devices to rotate (BIN 32 bits)
D
n
: Number of rotations (0 to 31) (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
+1
D
Carry flag
(SM700)
b31
b30 b29 b28 b27
31 and (specified number of bits)
1 is "2".
D
+1
Carry flag
(SM700)
b31
b30 b29 b28b27
High
Basic
performance
indicates an instruction symbol of DROL/DRCL.
P
J
\
U
\G
Bit
Word
, not including the carry flag, is rotated n-bits
D
D
b18
b17
b16
b15b14
b5 b4 b3
n-bit rotation
, a rotation is performed within the device range
D
24 bits, the remainder of 31/24
34, the data is rotated 2 bits to the left since the
, including the carry flag, n-bits to the left.
D
D
b18
b17
b16
b15b14
b5 b4 b3
n-bit rotation
Process
Redundant Universal
LCPU
D
n
D
n
Constants
Zn
Other
K, H
––
––
––
b2
b1 b0
b2
b1 b0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents