Industry Online Support
Technical Forum
6/19/2012 2:46 AM | |
Joined: 9/27/2006 Last visit: 6/1/2023 Posts: 12030 Rating:
|
Hello zakazeko; What type of function are you developping? Do you want to compare the values to find the highest or lowest value? Do you wish to sort (order)the list of values in smallest to highest value, or highest to smallest? Have a look at this FAQ, it shows how to sort a DB by itsvalues, from smallest to highest: http://support.automation.siemens.com/WW/view/en/865058 There are many other ways to do this, even using instructions in LAD (though the code is not as elegant. You could search on the site to fing threads on 'sorting' (use the Search box on the right of this page.Hope this helps, Daniel Chartier |
6/19/2012 5:00 PM | |
Posts: 5 Rating:
|
Thank you so much dchartier, i really appreciate that |
6/19/2012 5:11 PM | |
Joined: 9/27/2006 Last visit: 6/1/2023 Posts: 12030 Rating:
|
Hello Zakazeko; As I mentionned before, there are many ways to do this. Here is one where member DavidSG posted his own solution to a very similar application, in STL language: /tf/WW/en/Posts/30262 Hope this helps, Daniel Chartier |
6/19/2012 5:27 PM | |
Posts: 5 Rating:
|
Oh i'll see, thank you Daniel Chartier !! have a good time :) |
Follow us on