![Omron CJ1G-CPUxx Instructions Manual Download Page 1038](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_7424911038.webp)
1017
Text String Processing Instructions
Section 3-33
Description
+$(664) connects the text string data designated by S1 to the text string data
designated by S2, and outputs the result to D as text string data (including the
final NUL).
The maximum number of characters that can be designated by S1 and S2 is
4,095 (0FFF hex). If there is no NUL until 4,096 characters, an error will be
generated and the Error Flag will turn ON. Moreover, the result of the linkage
can be no more than 4,095 characters (0FFF hex). If the linkage results in
more characters than that, only the first 4,095 characters (with NUL added as
the 4,096th) will be output to D.
If there is a NUL for both S1 and S2, the two NUL characters (0000 hex) will
be output to D.
Flags
Precautions
If more than 4,095 characters are designated by S1 and S2, an error will be
generated and the Error Flag will turn ON.
If 0000 (hex) is transferred to D, the Equals Flag will turn ON.
Do not overlap the beginning word designated by D with the character data
area for S2. If they overlap, the instruction cannot be executed properly.
Example
In this example, +$(656) is used to connect the text strings ABCD and EFG
and output the result to D.
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
---
Data Registers
---
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0V to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
S1
S2
D
+
→
→
→
→
Name
Label
Operation
Error Flag
ER
ON if more than 4,095 characters are designated by S1
and S2.
OFF in all other cases.
Equals Flag
=
ON if 0000 (hex) is transferred to D.
OFF in all other cases.
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 ...