8. Function Commands
DRCR, DRCRP
- 256 -
{ DRCR, DRCRP ... Right rotation of 32-bit data
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
D
{ { { { { {
{
{ { { { { { { {
n
{
{ { { { { {
{
{ { { { { { { { { {
{ {
3
DRCR
Right rotation command
n
D
Setting data
n
Head No. of device where
right rotation data is stored.
D
Times (0 to 31)
DRCR
DRCRP
DRCRP
n
D
Function
The 32-bit data designated with D is rotated n bits to the right including the carry flag.
The carry flag must be set to 1 or 0 before executing DRCR, DRCRP.
Carry flag
(SM12)
B15
B31B30
B29
B16
B2
B1B0
D
nbitrotation
D+1
Execution conditions
The execution conditions for the DRCR, DRCRP are as shown below.
Right rotation command OFF
DRCR
ON
Executed per scan
Executed per scan
DRCRP