LEN2

LEN2 1:

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.

FUNCTION LEN2 : UDINT

LEN2 2: 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