![background image](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489165.webp)
144
Text String Processing Instructions
Section 3-31
3-31 Text String Processing Instructions
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
MOV STRING
MOV$
@MOV$
664
Output
Required
CONCATENATE
STRING
+$
@+$
656
Output
Required
GET STRING
LEFT
LEFT$
@LEFT$
652
Output
Required
GET STRING
RIGHT
RGHT$
@RGHT$
653
Output
Required
GET STRING
MIDDLE
MID$
@MID$
654
Output
Required
S: 1st source
word
D: 1st destination
word
MOV$(664)
S
D
Transfers a text string.
S1: Text string 1
S2: Text string 2
D: First
destination word
+$(656)
S1
S2
D
+
Links one text string to another text string.
S1: Text string
first word
S2: Number of
characters
D: First
destination word
LEFT$(652)
S1
S2
D
→
→
Fetches a designated number of characters from the left (beginning) of a text
string.
S1: Text string
first word
S2: Number of
characters
D: First
destination word
RGHT$(653)
S1
S2
D
Reads a designated number of characters from the right (end) of a text string.
00
S1: Text string
first word
S2: Number of
characters
S3: Beginning
position
D: First
destination word
MID$(654)
S1
S2
S3
D
→
→
Reads a designated number of characters from any position in the middle of a
text string.
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...