Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 1294

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Text String Processing Instructions
Text string ABCD
Text string ABC
>$
>$
Text string
D00100: Milk
D00200: Juice
D00300: Beer
In this way, three text strings can be rearranged in alphabetical order.
1254
Text string ABC
Text string ABC
In this example, three text strings are rearranged in alphabetical order. The
original order is as follows:
D00100: Milk
D00200: Juice
D00300: Beer
When rearranged alphabetically, the order changes as follows: beer, juice,
milk.
Two text strings beginning with D00100 and D00200 are compared
in ASCII order from lower to higher. If the text string beginning with
D00100 is higher in ASCII order than the one beginning with
D00200, then the position of the two text strings will be reversed.
Two text strings beginning with D00200 and D00300 are compared
in ASCII order from lower to higher. If the text string beginning with
D00200 is higher in ASCII order than the one beginning with
D00300, then the position of the two text strings will be reversed.
The milk and juice
Juice
text strings are
Milk
compared and their
positions are
Beer
reversed because
M > J.
Address
>
The milk and beer
Juice
text strings are
Beer
compared and
their positions are
Milk
reversed because
M > B.
Section 3-33
Mnemonic
Operand
>
---
000000
000001
---
000002
000003
<>
---
000004
=
<>
Alphabetical order
The juice and beer
Beer
text strings are
Juice
compared and
their positions are
Milk
reversed because
J > B.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents