366
7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
$+(P) [For 3 operands]
These instructions concatenate the character string data stored in the device specified by (s2) and later to the end of the
character string data stored in the device specified by (s1) and later, and store the concatenated string in the device specified
by (d) and later.
■Descriptions, ranges, and data types
■Applicable devices
*1 T, ST, C cannot be used.
• These instructions concatenate the character string data stored in the device specified by (s2) and later to the end of the
character string data stored in the device specified by (s1) and later, and store the concatenated string in the device
specified by (d) and later.
• Character strings in the devices specified by (s1) and (s2) up to a device that stores 00H are concatenated.
• When character strings are concatenated, 00H indicating an end of the character string specified by (s1) is ignored and the
character string specified by (s2) is concatenated to the last character of (s1).
• After two character strings are connected, "00H" is automatically added at the end. When the number of characters after
the concatenation is odd, 00H is stored in the upper byte of the device storing the last character. When the number is even,
0000H is stored in the device after the last character.
• For direct specification, up to 32 characters can be specified (input). When word devices are specified in (s1) or (s2), this
restriction (up to 32 characters) is not applicable.
• When the values in both (s1) and (s2) start from "00H" (that is, when the number of characters is "0"), "0000H" is stored in
(d).
Ladder diagram Structured text
Not supported
Operand Description Range Data type Data type (label)
(s1) Head device number storing data to which another data is
concatenated or data, or directly specified character string
Character string Character string
(s2) Head device number storing data to be concatenated or data, or
directly specified character string
Character string Character string
(d) Head device number for storing the concatenated data Character string Character string
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1)
*1
(s2)
*1
(d)
*1
+
b15
(s1)
(s1)+1
(s1)+2
46H (F)
b8
48H (H)
b7 b0
41H (A)2DH (-)
00H
b15
35H (5)
b8
31H (1)
b7 b0
33H (3)39H (9)
41H (A)00H
(s2)
(s2)+1
(s2)+2
b15 b0
(d)+1
(d)
(d)+2
(d)+3
(d)+4
46H (F)
b8
48H (H)
b7
41H (A)2DH (-)
31H (1)35H (5)
00H
33H (3)39H (9)
41H (A)