![background image](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489166.webp)
145
Text String Processing Instructions
Section 3-31
FIND IN STRING
FIND
@FIND$
660
Output
Required
STRING LENGTH
LEN$
@LEN$
650
Output
Required
REPLACE IN
STRING
RPLC$
@RPLC$
661
Output
Required
DELETE STRING
DEL$
@DEL$
658
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
S1: Source text
string first word
S2: Found text
string first word
D: First
destination word
FIND$(660)
S1
S2
D
→
→
→
Found data
Finds a designated text string from within a text string.
S: Text string first
word
D: 1st destination
word
LEN$(650)
S
D
1
3
5
2
4
→
Calculates the length of a text string.
S1
: Text string
first word
S2
: Replacement
text string first
word
S3
: Number of
characters
S4
: Beginning
position
D
: First
destination word
RPLC$(661)
S1
S2
S3
S4
D
→
→
Replaces a text string with a designated text string from a designated position.
S1: Text string
first word
S2: Number of
characters
S3: Beginning
position
D: First
destination word
DEL$(658)
S1
S2
S3
D
→
→
Number of characters to be
deleted (designated by S2).
G
Deletes a designated text string from the middle of a text string.
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...