![Omron CJ1G-CPUxx Instructions Manual Download Page 1041](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_7424911041.webp)
1020
Text String Processing Instructions
Section 3-33
Example
In this example, LEFT$(652) is used to read four characters.
3-33-5 GET STRING RIGHT: RGHT$(653)
Purpose
Reads a designated number of characters from the right (end) of a text string.
Ladder Symbol
Variations
Applicable Program Areas
Operands
S1: Text String
S2: Number of Characters (0000 to 0FFF hex or &0 to &4095)
Note
1.
The data from S1 to S1 + the maximum 2,047 words and from D to D + the
maximum 2,047 words must be in the same area.
2.
The data from S1 to S1 + the maximum 2,047 words and from D to D + the
maximum 2,047 words can overlap.
S1:
S2: D00200
D: D00300
43
44
Text string ABCDE
Text string ABCD
Four characters
(bytes) read.
D
S1: Text string first word
S2: Number of characters
D: First destination word
RGHT$(653)
S1
S2
D
Variations
Executed Each Cycle for ON Condition
RGHT$(653)
Executed Once for Upward Differentiation
@RGHT$(653)
Executed Once for Downward Differentiation
Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Text string data: 4,095 characters max. + NUL
S1 + maximum 2,047 words
15
0
S1
to
Text string data: 4,095 characters max. + NUL
D + maximum 2,047 words
to
15
0
D
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...