Omron CS1G/H-CPUxx-EV1 Programming Manual page 188

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Text String Processing Instructions
Instruction
Symbol/Operand
Mnemonic
Code
EXCHANGE
XCHG$(665)
STRING
XCHG$
Ex1
@XCHG$
Ex2
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
152
Replaces a designated text string with another designated text string.
Ex1
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
NUL
Section 3-31
Location
Execution condition
Output
Required
Output
Required
Output
Required
Inserted
characters
LD: Not required
AND, OR:
Required

Advertisement

Table of Contents
loading

Table of Contents