7. APPLICATION INSTRUCTIONS
7 − 27
MELSEC-A
7.2.3 32-bit data right rotation
(DROR, DRORP, DRCR, DRCRP)
Available Device
Bit device Word (16-bit) device Constant Pointer
Level
Carry
flag
Error
flag
X Y M L S B F T C D W R A0 A1 Z V K H P I N
Digit specification
Index
M9012 (M9010, M9011)
n O O O O
Functions DROR
Rotates the data of A0 and 1 "n" bits to the right, without including the carry flag.
• The carry flag is 1 or 0 depending on the status prior to the execution of DROR.
DRCR
Rotates the data of A0 and 1 "0" bits to the right, including the carry flag.
• The carry flag is 1 or 0 depending on the status prior to the execution of DRCR.
Execution Conditions
Applicable
CPU
All CPUs
Right rotation commands
n
n
DROR, DRCR
❏ Indicates the instruction symbol.
n Number of times (0 to 31)
Setting data
P
OFF
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
Right rotation command
P
ON
Carry flag
(M9012)
n bit rotation
Carry flag
(M9012)
n bit rotation