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
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| IN1 | Input | STRING | String |
| IN2 | Input | STRING | String |
| Function name | Return value | STRING | String |
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:

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