Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 8
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
Before
0
1
Dimension 0
2
3
Before
0
1
Dimension 0
2
3
388
Example 1:
Sort int _array, which is DINT[4,5].
Dimension 1
0
1
2
3
4
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1

Relay Ladder

Structured Text

control_1.LEN := 4;
control_1.POS := 0;
SRT(int_array[0,2],0,control_1);
Example 2:
Sort int _array, which is DINT[4,5].
Dimension 1
0
1
2
3
4
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
After
0
20
0
15
1
Dimension 0
10
2
5
3
After
0
20
0
15
1
Dimension 0
6
2
5
3
Dimension 1
1
2
3
4
19
3
17
16
14
8
12
11
9
13
7
6
4
18
2
1
Dimension 1
1
2
3
4
19
18
17
16
14
13
12
11
7
8
9
10
4
3
2
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents