Omron CJ - INSTRUCTIONS Reference Manual page 1125

Table of Contents

Advertisement

Flags
Name
Error Flag
Equal Flag
Function
+$(656)
connects
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.
+$(656) can be processed in the background. Refer to the SYSMAC CS/CJ/NSJ Series PLC
Programming Manual (W394) or the CJ2 CPU Unit Software Operation Manual (W473) for details.
Precaution
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 Programming
In this example, +$(656) is used to connect the text strings ABCD and EFG and output the result to D.
0.00
D100
D200
D300
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Label
ER
• ON if more than 4,095 characters are designated by S1 and S2.
• ON if the Communications Port Enabled Flag for the communications port number specified as the
Com Port number for Background Execution is OFF when background processing is specified.
• OFF in all other cases.
=
• ON if 0000 (hex) is transferred to D.
• OFF in all other cases.
the
text
string
S1: D100
D101
D102
Operation
data
+
S2: D200
D201
3. Instructions
3
D: D300
D301
D302
D303
1087

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents