Skip to main content

7.9.5 CONCAT

Function

CONCAT is called an extensible string connection function. It merges the current string IN1 with the string IN2, and outputs the combined content from OUT

LD graphics

Alt text

Parameter description

Interface variableDeclarationData typeDescription
IN1InputSTRINGString
IN2InputSTRINGString
Function nameReturn valueSTRINGString

Corresponding syntax

  • IN1: The first string to be merged
  • IN2: The second string to be merged
  • OUT: merged string

Example

  • LD sample animation is as follows:

alt text

  • ST example is shown in the following code:
OUT:=CONCAT(IN1:=IN1,IN2:=IN2);
OUT2:=CONCAT(IN1:=IN1,IN2:=IN2,IN3:=IN3,IN4:=IN4);