AH500 Programming Manual 
6-240 
D13 D12 D11 D10
D35 D34 D33 D32 D31 D30 D29 D28 D27
3
4
5
Four registers as a group are shifted to the right.
D26 D25 D24 D23 D22 D21 D20
12
Being carried
 
Example 2: 
1.  When X0.0 is switched from OFF to ON, the data in the sixteen word devices starting from D20 
is divided into groups (five words as a group), and these groups are shifted to the right. 
2.  The shift of the data in the word devices to the right during a scan is illustrated as follows. 
 
D14 D13 D12 D11
D35 D34 D33 D32 D31 D30 D29 D28 D27
3
4
5
Five registers as a group are shifter to the right.
D26 D25 D24 D23 D22 D21 D20
1
2
Being carried
D10
 
Additional remark: 
1.  If S+n
2
-1 or D+n
1
-1 exceeds the device range, the instruction is not executed, SM0 is ON, and 
the error code in SR0 is 16#2003. 
2.  If n
1
 is less than 1, or if n
1
 is larger than 512, the instruction is not executed, SM0 is ON, and 
the error code in SR0 is 16#200B. 
3.  If n
2
 is less than 1, or if n
2
 is larger than n
1
, the instruction is not executed, SM0 is ON, and the 
error code in SR0 is 16#200B.