EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 536

Mitsubishi Electric MELSEC iQ-R Series
2110 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
Loading...
534
7 APPLICATION INSTRUCTIONS
7.1 Rotation Instructions
Processing details
DROR(P)
These instructions rotate the 32-bit binary data in the device specified by (d) to the right by (n) bit(s), excluding the carry
flag (SM700). The carry flag (SM700) is on or off depending on the status prior to the execution of the DROR(P) instruction.
When (d) is a bit device, bits are rotated to the right within the device range specified by digit specification. The number of
bits actually to be rotated is the remainder of (n)(specified number of bits). For example, when (n) is 31 and the specified
number of bits is 24, 7 bits are rotated because 31 divided by 24 equals 1 with a remainder of 7.
Specify any value between 0 and 31 for (n). If a value 32 or bigger is specified, bits are rotated by the remainder value of
n32. For example, when (n) is 34, 2 bits are rotated because 34 divided by 32 equals 1 with a remainder of 2.
DRCR(P)
These instructions rotate the 32-bit binary data in the device specified by (d) to the right by (n) bit(s), including the carry flag
(SM700). The carry flag (SM700) is on or off depending on the status prior to the execution of the DRCR(P) instruction.
When (d) is a bit device, bits are rotated to the right within the device range specified by digit specification. The number of
bits actually to be rotated is the remainder of (n)(specified number of bits). For example, when (n) is 31 and the specified
number of bits is 24, 7 bits are rotated because 31 divided by 24 equals 1 with a remainder of 7.
Specify any value between 0 and 31 for (n). If a value 32 or bigger is specified, bits are rotated by the remainder value of
n32. For example, when (n) is 34, 2 bits are rotated because 34 divided by 32 equals 1 with a remainder of 2.
Operation error
There is no operation error.
b0
b15
b31 b16b30 b29 b28 b27 b18 b17 b14
b5
b4 b3 b2 b1
(d)+1 (d)
 
(SM700)
Right rotation by (n) bits
b0
b15
b31 b16b30 b29 b28 b27 b18 b17 b14
b5
b4 b3 b2 b1
(d)+1 (d)
 
(SM700)
Right rotation by (n) bits

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals