High−level Instructions
3 − 283
Description
Rotates “n” bits of the 32-bit data specified by D to the right when the trigger turns on.
15 0
CY
[D+1] [D]
015
Data in bit position 0 of D
Trigger:
on
When “n” bits are rotated to the right,
− The data in bit position n-1 (nth bit starting from bit position 0) is transferred to special internal relay
R9009 (carry flag).
− “n” bits starting from bit position 0 are shifted out to the right and then shifted into the higher bit
positions of the 32-bit data specified by D.
Only the lower eight bits of the 16-bit data “n” are effective.
0000 0000
15 0
K0 to K255(H00 to HFF)
n
Upper 8 bits
are invalid
When “n” is specified using K0, the contents of “D+1, D” and the special internal relay R9009 (carry flag) do
not change.
Precautions during programming
If the specified “n” is a multiple of 32 bits, the data will be the same as that before the operation.
e.g.,n = K32: same operation as n = K0
Flag conditions
・Error flag (R9007): Turns on and stays on when the area specified using the index modifier
exceeds the limit.
・Error flag (R9008): Turns on for an instant when the area specified using the index modifier
exceeds the limit.
・Carry flag (R9009): Content in the nth bit from LSB (least significant bit) turns on for an instant
when the data in bit position n-1 is recognized as 1.