AH500 Programming Manual
6-122
Example 2:
In order to prevent the error which results from the overlap between the source devices and the
destination devices, the data is transferred in the following way.
1. When the device number of S is larger than the device number of D, the data is transferred in
the order from
to .
2. When the device number of S is less than the device number of D, the data is transferred in
the order from
to .
Additional remark:
1. If D+n-1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error
code in SR0 is 16#2003.
2. If S+n-1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error
code in SR0 is 16#2003.
3. If n is larger than 256, or if n is less than 1, the instruction is not executed, SM0 is ON, and the
error code in SR0 is 16#200B.