Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual page 195

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Text String Processing Instructions
Instruction
Symbol/Operand
Mnemonic
Code
EXCHANGE
XCHG$(665)
STRING
XCHG$
@XCHG$
665
Ex1: 1st
exchange word 1
Ex2: 1st
exchange word 2
CLEAR STRING
CLR$(666)
CLR$
@CLR$
666
S: Text string first
word
INSERT INTO
STRING
INS$(657)
INS$
@INS$
657
S1: Base text
string first word
S2: Inserted text
string first word
S3: Beginning
position
D: First
destination word
String Compari-
LD
son
LD, AND, OR +
Symbol
=$, <>$, <$, <=$,
>$, >=$
670 (=$)
671 (<>$)
672 (<$)
673 (<=$)
AND
674 (>$)
Symbol
675 (>=$)
OR
Symbol
S1: Text string 1
S2: Text string 2
Replaces a designated text string with another designated text string.
Ex1
Ex1
Ex2
Ex2
Clears an entire text string with NUL (00 hex).
S
A
S
C
Deletes a designated text string from the middle of a text string.
S1
S2
S3
D
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 cre-
ated for a LOAD, AND, or OR.
S1
S2
S1
S2
S1
S2
Function
Ex1
Ex2
B
S
D
NUL
NUL
Section 3-31
Location
Execution condition
Output
Required
Output
Required
NUL
Output
Required
Inserted
characters
LD: Not required
AND, OR:
Required
157

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - PROGRAMMING MANUAL 08-2008 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents