Delta AS Series Programming Manual page 615

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
Example 1
Supposedly the value in D0 is 8, and n is 4. When M0 is ON, the instruction inserts the data in D200 into D4, shifts the
original data in D4–D8 to D5–D9, and increments the value in D0 by one.
D
D200
22
D200
22
4712
Example 2
Supposedly the value in D0/D1 is 4, and n is 3. When M0 is ON, the instruction inserts the data in D200 into D6/D7,
shifts the original data in D6–D9 to D8–D11, and increments the value in D0/D1 by one.
_6
22000
D200/D201
22000
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+n exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003
3.
If S+(the value in S)+1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in
SR0 is 16#2003.
4.
If n is not between 0–S, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B.
6 - 3 3 6
D8
D7
D6
D5
4712
857
123
100
T he data is inserted.
D9
D8
D7
D6
857
123
100
111
n=3
D8/D9
D6/D7
20000
50000
D 10/D11 D8/D9
D6/D7
20000
50000
22000
n=4
D4
D3
D2
D1
48
5
111
799
D5
D4
D3
D2
D1
22
48
5
799
D 4/D5
D2/D3
D0/D1
45000
40000
4
The length of the data
D 4/D5
D2/D3
D0/D1
45000
40000
5
The length of the data
S
D0
8
T he length of the data
D0
9
T he length of the data

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents