Delta AS Series Programming Manual page 612

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 1
Supposedly the value in D0 is 9, and n is 4. When M0 is ON, the instruction stores the data in D4 to D20. And then the
instruction deletes the data in D4. After that it shifts the data in D5–D9 to the right, and decrements the value in D0 by
one.
D
D20
D9
D8
4712
857
D9
D8
D20
22
0
4712
Example 2
Supposedly the value in D0/D1 is 4, and n is 3. When M0 is ON, the instruction stores the data in D6/D7 to D20. And
then the instruction deletes the data in D6/D7. After that it shifts the data in D8/D9 to the right, and decrements the value
in D0/D1 by one.
D20/D21
D8/D9
20000
D20/D21
D8/D9
50000
0
n=4
D7
D6
D5
D4
22
123
100
111
T he data is deleted.
D7
D6
D5
D4
857
123
100
111
n=3
D6/D7
D4/D5
D2/D3
50000
45000
40000
The length of the data
D6/D7
D4/D5
D2/D3
20000
45000
40000
The length of the data
C ha pt er 6 A p pl i e d In s tr uc t io ns
S
D3
D2
D0
D1
48
5
799
9
T he length of the data
D3
D2
D0
D1
48
5
799
8
T he length of the data
D0/D1
4
D0/D1
3
6_
6 - 3 3 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents