Omron CJ2 CPU UNIT SOFTWARE User Manual page 560

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents