AH500 Programming Manual 
6-216 
6.10.2 Explanation of Rotation Instructions 
API 
Instruction code  Operand 
Function 
0900  D
ROR  P 
D, n 
Rotating to the right 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#  “$”  DF 
Pulse instruction
16-bit instruction (5 steps)  32-bit instruction (5 steps)
AH500  AH500  AH500 
Symbol: 
   
D 
:
Device which is rotated  Word/Double word 
n 
:
Number of bits forming a 
group 
Word/Double word 
Explanation:   
1.  The values of the bits in the device specified by D are divided into groups (n bits as a group), 
and these groups are rotated to the right. 
2.  Only the instruction DROR can use the 32-bit counter. 
3.  The operand n used in the 16-bit instruction should be within the range between 1 and 16. The 
operand n used in the 32-bit instruction should be within the range between 1 and 32. 
4.  Generally, the pulse instructions RORP and DRORP are used. 
Example:   
When X0.0 is switched from OFF to ON, the values of the bits in D10 are divided into groups (four 
bits as a group), and these groups are rotated to the right. (The value of the bit marked ※ is 
transmitted to the carry flag SM602.)