![Omron CJ1G-CPU series Programming Manual Download Page 167](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489167.webp)
146
Text String Processing Instructions
Section 3-31
EXCHANGE
STRING
XCHG$
@XCHG$
665
Output
Required
CLEAR STRING
CLR$
@CLR$
666
Output
Required
INSERT INTO
STRING
INS$
@INS$
657
Output
Required
String
Comparison
LD, AND, OR +
=$, <>$, <$, <=$,
>$, >=$
670 (=$)
671 (<>$)
672 (<$)
673 (<=$)
674 (>$)
675 (>=$)
Sting comparison instructions (=$, <>$, <$, <=$, >$, >=$) compare two text
strings from the beginning, in terms of value of the ASCII codes. If the result of
the comparison is true, an ON execution condition is created for a LOAD, AND,
or OR.
LD: Not
required
AND, OR:
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Ex1: 1st
exchange word 1
Ex2: 1st
exchange word 2
XCHG$(665)
Ex1
Ex2
Ex1
Ex1
Ex2
Ex2
Replaces a designated text string with another designated text string.
S: Text string first
word
CLR$(666)
S
S
S
A
B
C
D
NUL
NUL
Clears an entire te xt str ing with NUL (00 hex).
S1: Base text
string first word
S2: Inserted text
string first word
S3: Beginning
position
D: First
destination word
INS$(657)
S1
S2
S3
D
→
→
→
Inserted
characters
NUL
Deletes a designated text string from the middle of a text string.
LD
AND
OR
S1: Text string 1
S2: Text string 2
Symbol
S1
S2
Symbol
S1
S2
Symbol
S1
S2
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...