22 CHARACTER STRING FUNCTIONS
22.4 Link Character Strings
819
22
22.4 Link Character Strings
CONCAT(_E)
These functions concatenate character strings and output the result.
*1 The input variable "s" can be changed in the range of 2 to 28.
â– Descriptions, types, and data types
â– Operation processing
• These functions concatenate the character string input to the input variables (s2) to (s28) after the one input to (s1) and
output the result from (d).
• 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) to (s28) is concatenated.
• When the concatenated character string exceeds 255 bytes, these functions output a character string within 255 bytes.
• A value input to the input variables (s1) and (s2) to (s28) is the STRING type data value and within the range from 0 to 255
byte(s).
Ladder diagram
*1
Structured text
*1
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
d:=CONCAT(s1,s2);
[With EN/ENO]
d:=CONCAT_E(EN,ENO,s1,s2);
Argument Description Type Data type
EN Execution condition (TRUE: Execution, FALSE: Stop) Input variable BOOL
s1 to s28 Input Input variable STRING(255)
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable STRING(255)
32H (2) 31H (1)
34H (4) 33H (3)
36H (6)
00H
35H (5)
High-order byte Low-order byte
"123456"
42H (B) 41H (A)
44H (D) 43H (C)
31H (1) 45H (E)
33H (3) 32H (2)
35H (5) 34H (4)
00H 36H (6)
2nd word
3rd word
4th word
5th word
6th word
1st word
2nd word
3rd word
4th word
1st word42H (B) 41H (A)
44H (D) 43H (C)
00H 45H (E)
High-order byte Low-order byte
"ABCDE"
2nd word
3rd word
1st word
High-order byte Low-order byte
"ABCDE123456"
(s1)
(s2)
(d)
2H
2
1H
1
4H
4
3H
3
6H
6
5H
5
i
h-order b
t
Low-order b
t
12
4
2n
w
r
rd wor
4th w
r
th wor
th wor
1
t w
r
2n
w
r
rd wor
4th w
r
1
t w
r
6H
6
5H
5
4H
4
3H
3
2H
2
1H
1
45H
E
44H
D
43H
44H
D
43H
42H
B
41H
A
42H
B
41H
A
45H
E
i
h-order b
t
Low-order b
t
AB
DE
2n
w
r
rd wor
1
t w
r
i
h-order b
t
Low-order b
t
AB
DE12
4
s1
s2
d