Type
| Function |
Description
| Concatenates the second input string at IN2 to the end of the first input string at IN1. |
Notes
|
- The first input string S1 (applied to IN1) can be used as output string at the same time. The ST notation for this case would be: S1 := CONCAT(S1,S2);
- Do not use S1 (input string applied to IN1) or S2 (input string applied to IN2) as output strings because the output string will add up until the output string is too short and the string is cleared.
- When the string output is longer than 80 characters and the FU/FB is directly connected to another FU/FB, temporary string variables of size 80 are used. Calculation/usage will fail. Use an intermediate local variable in-between.
- Further inputs can be added.
|
Parameters
| Inputs
IN1
Data type: | STRING |
Description: | First input string. |
IN2
Data type: | STRING |
Description: | Second input string. |
Output
OUT
Data type: | STRING |
Description: | Output string. |
|
Error behavior
| Error behavior
The following table shows the errors which may occur while executing the function and the value returned by the function in the corresponding error case.
Error case | Output value |
Resulted string too short | Last valid value is kept |
If the listed error occurs, a string error is written to the Online log in the MESSAGES window.
Note
Controller stop on string error: The controller can be automatically stopped when a string error occurs. This allows you to locate the error in your project. To enable the automatic stop of the controller in case of a string error, activate the button in the Cockpit toolbar of the controller. |
|
Additional information
| EN/ENO behavior
The POU is only executed if TRUE is applied to the EN input. If EN = FALSE, the POU is not executed and ENO = FALSE indicates the inactivity.
If any of the errors listed under "Error behavior" occurs while executing the function, ENO is set to FALSE.
|