EasyManua.ls Logo

Omron CJ2 CPU UNIT SOFTWARE - Page 560

Omron CJ2 CPU UNIT SOFTWARE
670 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendices
A-76
CJ2 CPU Unit Software User’s Manual
DELETE
STRING
DEL$
@DEL$
658 Output Required
EXCHANGE
STRING
XCHG$
@XCHG$
665 Output Required
CLEAR
STRING
CLR$
@CLR$
666 Output Required
INSERT
INTO
STRING
INS$
@INS$
667 Output Required
String Com-
parison
LD, AND,
OR +
=$, <>$,
<$, <=$,
>$, >=$
670
(=$)
671
(<>$)
672
(<$)
673
(<=$)
674
(>$)
675
(>=$)
Sting comparison instructions (=$, <>$, <$, <=$, >$, >=$) com-
pare two text strings from the beginning, in terms of value of the
ASCII codes. If the result of the comparison is true, an ON execu-
tion condition is created for a LOAD, AND, or OR.
LD: Logic
start
AND, OR:
Continues
on rung
Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
DEL$(658)
S1
S2
S3
D
S1: Text string
1st word
S2: Number of
characters
S3: Beginning
position
D: 1st
destination word
G
Deletes a designated text string from the middle of a text string.
Number of characters to be
deleted (designated by S2).
S2
00
03
XCHG$(665)
Ex1
Ex2
Ex1: 1st
exchange word 1
Ex2: 1st
exchange word 2
Ex1
Ex1
Ex2
Ex2
Replaces a designated text string with another
designated text string.
CLR$(666)
S
S: Text string 1st
word
S
S
AB
CD
NUL
NUL
Clears an entire text string with NUL (00 hex).
→→
INS$(657)
S1
S2
S3
D
S1: Base text
string 1st word
S2: Inserted text
string 1st word
S3: Beginning
position
D: 1st
destination word
NUL
Deletes a designated text string from the middle of a text string.
Inserted
characters
→→
Symbol
S1
S2
S1
S2
S1
S2
Symbol
Symbol
S1: Text string 1
S2: Text string 2

Table of Contents

Related product manuals