Omron CJ - INSTRUCTIONS Reference Manual page 1148

Table of Contents

Advertisement

3. Instructions
Hint
• String comparison instructions are used to rearrange the order of text strings in order of ASCII. For
example, the ASCII order from lower to higher is the order of the alphabet from A to Z, so text strings
can be arranged in alphabetical order.
Precaution
• Place a right-hand instruction after these instructions. The String Comparison Instructions cannot
appear on the right side of the ladder diagram.
• These instructions cannot be used on the last rung of a logic block.
Example Programming
In this example, string comparison instructions are used to compare data.
D100
D200
0.01
0.03
D100
D200
Text string ABDC
D100
D101
D102
Text string ABC
D100
D101
1110
0.00
0.02
D100
D200
0.04
Text string ABC
D200
D201
Text string ABC
D200
D201
Address
Mnemonic
Operand
>
---
D100
D200
000000
0.00
0.01
000001
---
D100
D200
000002
0.02
0.03
000003
<>
---
D100
D200
000004
0.04
>
=
D100
D100
D200
D200
CS/CJ/NSJ Series Instructions Reference Manual (W474)
<>
D100
D200

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents