Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 1100

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

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.
Sample program
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
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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
3. Instructions
3
<>
D100
D200
1063

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents