AH500 Programming Manual 
6-238 
1
2
3
Four bits as a group are shifted to the left
Being carried
M15 M14 M13 M12
M11
M10 M9 M8 M7
X0.3 X0.2
X0.1
X0.0
4
5
M6 M5 M4 M3 M2 M1 M0
 
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 left. 
2.  The shift of the states of the bit devices to the left during a scan is illustrated as follows. 
 
1
2
3
Five bits as a group are shifted to the left.
Being carried
M15 M14 M13 M12 M11 M10 M9 M8 M7
X0.3 X0.2
X0.1
X0.0
4
M6 M5 M4 M3 M2 M1 M0
5
X0.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.