Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 156

Table of Contents

Advertisement

2. Summary of Instructions
Instruction
Symbol/Operand
Mnemonic
Code
FIND IN STRING
FIND$(660)
FIND
@FIND$
660
S1: Source text
string first word
S2: Found text
string first word
D: First
destination word
STRING LENGTH
LEN$(650)
LEN$
@LEN$
650
S: Text string first
word
D: 1st destination
word
REPLACE IN
STRING
RPLC$(654)
RPLC$
@RPLC$
661
S1: Text string
first word
S2: Replacement
text string first
word
S3: Number of
characters
S4: Beginning
position
D: First
destination word
DELETE STRING
DEL$(658)
DEL$
@DEL$
658
S1: Text string
first word
S2: Number of
characters
S3: Beginning
position
D: First
destination word
EXCHANGE
XCHG$(665)
STRING
XCHG$
@XCHG$
665
Ex1: 1st
exchange word 1
Ex2: 1st
exchange word 2
120
Finds a designated text string from within a text string.
S1
S2
D
Calculates the length of a text string.
1
S
3
D
5
Replaces a text string with a designated text string from a designated
position.
S1
S2
S3
S4
D
Deletes a designated text string from the middle of a text string.
Number of characters to be
S1
deleted (designated by S2).
S2
S3
G
D
Replaces a designated text string with another designated text string.
Ex1
Ex1
Ex2
Ex2
Function
Found data
2
4
Ex1
Ex2
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Location
Page
Execution
condition
Output
1074
Required
Output
1076
Required
Output
1078
Required
Output
1080
Required
Output
1082
Required

Advertisement

Table of Contents
loading

Table of Contents