Drol, Drolp, Drcl; Left Rotation Of 32-Bit Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents