5-160
5.7 Standard Character String Functions
5.7.2 String concatenation
CONCAT(_E)
5.7.2 String concatenation
CONCAT(_E)
Function
Operation processing
(1) Concatenates the character string input to following the one input to , and outputs the
operation result from .
This function concatenates character string with ignoring '00
H', which indicates the end of
character string .
If the concatenated character string has over 255 bytes, the character string up to 255 bytes
is output.
(2) The values to be input to and are string type data within the range from 0 to 255
bytes.
CONCAT(_E)
_E: With EN/ENO
indicates any of the following
functions.
CONCAT CONCAT_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s1:
Input :String
s2:
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :String
Universal
UD
High
Performance
Structured ladder
EN ENO
ds1
s2
ST
(EN, s1, s2, d);ENO:=
CONCAR_E
CONCAT_E
s2
s1
d
s2
s1
32H(2) 31H(1)
34
H(4)33H(3)
36
H(6)
00
H
35H(5)
'123456'
42H(B) 41H(A)
44
H(D) 43H(C)
31
H(1) 45H(E)
33
H(3) 32H(2)
35
H(5) 34H(4)
00
H 36H(6)
42
H(B) 41H(A)
44
H(D) 43H(C)
00
H 45H(E)
'ABCDE' 'ABCDE123456'
2nd word
3rd word
1st word
2nd word
3rd word
4th word
1st word
2nd word
3rd word
4th word
5th word
6th word
1st word
High-order byte Low-order byte High-order byte Low-order byte High-order byte Low-order byte
+
s1
s2