Right Rotation Of 32-Bit Data (Dror(P),Drcr(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

7.2.3

Right rotation of 32-bit data (DROR(P),DRCR(P))

DROR(P),DRCR(P)
DROR, DRCR
DRORP, DRCRP
Setting
Data
D
n
Function
DROR
(1) The 32-bit data of the device designated at
to the right.
The carry flag turns ON or OFF depending on its status prior to the execution of the DROR
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
of 34 / 32
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
D
+1
b31
b30 b29 b28 b27
b18
b17
n-bit rotation
31 and (specified number of bits)
34, the contents are rotated two bits to the right since the remainder
1 is "2".
High
Basic
performance
indicates an instruction symbol of DROR/DRCR.
J
\
U
\G
Bit
Word
, not including the carry flag, is rotated n-bits
D
D
b16
b15b14
b5 b4 b3
b2
, a rotation is performed within the device range
D
DROR(P),DRCR(P)
Process
Redundant Universal
D
n
P
D
n
Constants
Zn
Other
K, H
––
Carry flag
(SM700)
b1 b0
24 bits, the remainder of 31/24
1
LCPU
2
3
4
6
6
7
––
––
8
7-41

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents