LEN2

The function returns the number of characters in a string (length of the STRING).
The function stops the checking of the input length after Parameterlist.cMaxCharacters
characters in order to avoid an infinite loop.
Return value
Name | Type | Description |
---|---|---|
LEN2 | UDINT | Returns the number of characters in a string (length of the STRING). |
Inputs
VAR_INPUT
pSTRING : POINTER TO STRING;
END_VAR
Name | Type | Description |
---|---|---|
pSTRING | POINTER TO STRING | Pointer to the STRING variable |
Requirements
Development environment | Target platform | PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.4022 | PC or CX (x86, x64, Arm®) | Tc2_Utilities (System) >= 3.3.21.0 |