A SERVICE OF

logo

8. Function Commands
ROR, RORP
- 250 -
{ ROR, RORP ... Right rotation of 16-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
ROR
Right rotation command
n
D
Setting data
n
No. of device where right
rotation data is stored.
D
Times (0 to 15)
ROR
RORP
RORP
n
D
Function
The 16-bit data designated with D is rotated n bits to the right excluding the carry flag.
Carry flag
SM12
B15B14B13B12B11B10B9 B8 B7 B6 B5 B4B3 B2 B1 B0
D (16 bits)
n bit rotation
Execution conditions
The execution conditions for the ROR, RORP are as shown below.
Right rotation command OFF
ROR
ON
Executed per scan
Executed per scan
RORP