Omron SYSMAC CS Series Instruction & Reference Manual page 1071

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

In this example, three text strings are rearranged in alphabetical order. The original order is as follows:
D100: Milk
D200: Juice
D300: Beer
When rearranged alphabetically, the order changes as follows: beer, juice, milk.
>$
D100
D200
>$
D200
D300
Text string
D100: Milk
The milk and juice
text strings are
D200: Juice
compared and their
positions are
D300: Beer
reversed because
M > J.
In this way, three text strings can be rearranged in alphabetical order.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Two text strings beginning with D100 and D200 are compared in
ASCII order from lower to higher. If the text string beginning with
D100
D100 is higher in ASCII order than the one beginning with D200,
then the position of the two text strings will be reversed.
D200
Two text strings beginning with D200 and D300 are compared in
ASCII order from lower to higher. If the text string beginning with
D200
D200 is higher in ASCII order than the one beginning with D300,
D300
then the position of the two text strings will be reversed.
The milk and beer
Juice
text strings are
Milk
compared and
their positions are
Beer
reversed because
M > B.
Alphabetical order
The juice and beer
Juice
text strings are
Beer
compared and
their positions are
Milk
reversed because
J > B.
3. Instructions
3
Beer
Juice
Milk
1037

Advertisement

Table of Contents
loading

Table of Contents