|
Type
| Function |
|
Description
| Determines the length of a string (number of characters in a string). |
|
Notes |
- The function does not support 4-byte Unicode characters in the input string. The input string is interpreted as a double byte string and returns for each 4-byte character the length 2.
- The function returns the value 1 for each escape character (e.g., \\, \, \n ...).
|
|
Parameters
| Input
IN1
| Data type: |
ANY_STRING |
| Description: | Input string. |
Output
OUT
| Data type: | INT |
| Description: | Length of string IN1. |
|
|
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.
|