Delta AS Series Programming Manual page 610

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 1
Supposedly the value in D0 is 7, when M0 is ON, the instruction writes the data in the device specified by D0 into D10.
After the instruction shifts the data, the instruction clears the data in the device specified by D0 to 0, and decrements the
value in D0 by 1.
D
D10
D9
D8
D10
D9
D8
1000
Example 2
Supposedly the value in D0/D1 is 4, when M0 is ON, the instruction writes the data in the device specified by D0/D1 into
D10/D11. After the instruction shifts the data, the instruction clears the data in the device specified by D0/D1 to 0, and
decrements the value in D0/D1 by 1.
D10/D11
D8/D9
1000
D10/D11
D8/D9
1000
Additional remarks
1.
If the value in S is less than 0, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003.
2.
If S+(the value in S) exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in
SR0 is 16#2003.
D7
D6
D5
D4
1000
T he data is read.
D7
D6
D5
D4
0
D6/D7
D4/D5
D2/D3
D6/D7
D4/D5
D2/D3
0
C ha pt er 6 A p pl i e d In s tr uc t io ns
S
D3
D2
D1
D0
7
Pointer
D3
D2
D1
D0
6
Pointer
D0/D1
4
Pointer
D0/D1
3
Pointer
6_
6 - 3 3 1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents