Industrial Automation
Industrial Automation | Europe


Main > Product Type > Software > Programming
Minimize Text   Default    Enlarge Text


Sorting Text In A PLC Program

Task: Sort a table of names alphabetically.

(A name can contain up to 39 (28) characters and occupies 20 words)

The table now has 6 entries = 6 * 20 = 120 words.

In Power-LAD before then:
Loop Commands
Word commands

Of course, the example has a small error:
Lower case letters have a higher ASCII code, so comes a little behind a large Z and
also the blank field are not sorted correctly. So best to write everything with no field left blank.

For OMRON LD and ST are equivalent.
It is not restricted to a particular language.

Attachments - Size: 40642

Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2009-06-11
Modified 2009-06-11
Views 3084


You are not logged in.