AH500 Programming Manual 
6-236 
X0.3
X0.2 X0.1 X0.0
M15
M14 M13 M12 M11 M10 M9
M8
M7 M6
3
4
5
Four bits as a group are shifted to the right.
M5 M4
M3
M2 M1 M0
1
2
 
Example 2: 
1.  When X0.0 is switched from OFF to ON, the states of the sixteen bit devices starting from M0 
are divided into groups (five bits as a group), and these groups are shifted to the right. 
2.  The shift of the states of the bit devices to the right during a scan is illustrated as follows. 
 
X0.3
X0.2 X0.1 X
0.0
M15
M14 M13 M12 M11 M10 M9
M8
M7 M6
3
5
Five bits as a group is shifted to the right. 
M5 M4
M3
M2 M1 M0
1
2
X0.4
4
 
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 1024, 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.