DVP15MC11T Operation Manual
Function Explanation
The CONCAT instruction joins two or more strings to form a new string and the new string is output to
Out. The parameters from In1 to InN are joined in order as shown in the following figure.
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur during the compiling of the software if
the input variables are omitted. But the output variable is allowed to omit.
Programming Example
The data types of CONCAT_In1, CONCAT_In2 and Out1 are strings and the values of
CONCAT_In1 and CONCAT_In2 are ’Asasz’ and ’B1255’ respectively. When CONCAT_EN is
TRUE, the value of Out1 is ’AsaszB1255’.
The variable table and program
CONCAT_EN
BOOL
TRUE
CONCAT_In1
STRING ‘Asasz’
CONCAT_In2
STRING ‘B1255’
In1 ABCD:
In2 abcd:
In3 ef123:
CONCAT
Out ABCDabcdef123:
1
CONCAT
EN ENO
In1 Out
In2
CONCAT_EN
CONCAT_In1
CONCAT_In2
Out1
8-188