EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #339 background imageLoading...
Page #339 background image
337
DROL, DROLP, DRCL, DRCLP
1
2
3
4
4
6
7
8
7.2 Rotation instruction
7.2.4 DROL, DROLP, DRCL, DRCLP
: Head number of the devices to rotate (BIN 32 bits)
n : Number of rotations (0 to 31) (BIN 16 bits)
Function
DROL
(1) The 32-bit data of the device designated at , 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.
(2) When a bit device is designated for , a rotation is performed within the device range 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 31 and (specified number of bits) 24 bits, the remainder of 31/24 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 34, the data is rotated 2 bits to the left since the remainder of 34/32 1 is "2".
DRCL
(1) Rotates 32-bit data of the device designated by , including the carry flag, n-bits to the left. The carry flag turns ON or
OFF depending on its status prior to the execution of the DRCL instruction.
(2) When a bit device is designated for , a rotation is performed within the device range 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 31 and (specified number of bits) 24 bits, the remainder of 31/24 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 34, the data is rotated 2 bits to the left since the remainder of 34/32 1 is "2".
7.2.4 DROL, DROLP, DRCL, Left rotation of 32-bit data
DRCLP
7.2.4
DROL, DROLP, DRCL, DRCLP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
–– ––
n ––
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
P
D n
D
n
DROL, DRCL
DROLP, DRCLP
indicates an instruction symbol of DROL/DRCL.
D
D
D
b2b16b31 b17b30b29 b28b27 b18 b15b14 b5 b4 b3
Carry flag
(SM700)
b1 b0
D
D
n-bit rotation
+1
D
D
b2b16b31 b17b30b29 b28b27 b18 b15b14 b5 b4 b3
Carry flag
(SM700)
b1 b0
D D
n-bit rotation
+1
D

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals