CONCAT is a function in the CODESYS Standard library that joins two strings into one. It takes two STRING(255) inputs, STR1 and STR2, and returns a single STRING(255) containing STR1 immediately followed by STR2. In the documented example, CONCAT('SUSI','WILLI') returns 'SUSIWILLI'.
| Language | structured text |
|---|---|
| Code | CONCAT |
| Group | String Functions |
| Syntax | CONCAT(STR1, STR2) |
| Dialect | CODESYS |
| Name | Data type | Description |
|---|---|---|
| STR1 | STRING(255) | String 1 to be concatenated, max. 255 characters. |
| STR2 | STRING(255) | String 2 to be concatenated, max. 255 characters. |