Array Sorting Question In Logix 5000

chitwoodb

Member
Join Date
Jan 2011
Location
oneida tn
Posts
12
Hello, I need some ideas on how to sort an array. I have 3 1d arrays in a udt with a length of 101. Lets call them XAxis[0-100],YAxis[0-100],and Punch[0-100] the first two (X and Y have position data in them and the third Selects which punch (1,2,or 3)


Xaxis Yaxis Punch
2.5 2.2 1
2.7 2.2 3
2.3 2.2 2
2 2.2 1


I need to sort the x axis in sequential order as well as move the Yaxis and Punch arrays accordingly.

Any Ideas???? I know the srt function works for one dimension but how do I index the other two with the first.
 
Array Sorting

Screen_Clip.png
ScreenClip.png


Sorry, the formatting messed up my table. Here is a screenclip of the table in question.

Any help would be greatly appreciated
 

Similar Topics

Edit to add - Logix Designer v30 / Controllogix L75 Guys, I'm sort of melting my brain here and I'm certain there has to be a better way to do...
Replies
11
Views
4,204
Hello All, Needing some help with finding Min max values in an array that can have a dynamic element count. The Sort function in Logix 5K only...
Replies
9
Views
5,719
I am new to micrologix 850 cpu. Please help on sorting numbers in array. i want to sort in ascending order.
Replies
2
Views
2,097
Hello all, I've used these forums quite a bit in the past year while trying to learn PLCs and HMIs, and I've run across my first problem that...
Replies
1
Views
2,700
Hi, I'm having an issue in crimson 3.0 when I create a programme using a case statement referencing a fault word that each bit needs to change the...
Replies
5
Views
261
Back
Top Bottom