Attention

IronPLC supports IEC 61131-3 Structured Text excluding I/O mapping.

LEN

Returns the length of a string.

IEC 61131-3

Section 2.5.1.5.7

Support

Supported

Signatures

#

Input (IN)

Return Type

Support

1

STRING

INT

Supported

2

WSTRING

INT

Not yet supported

Description

Returns the number of characters in IN. For an empty string, the result is 0.

Example

See Also

  • LEFT — left substring

  • RIGHT — right substring

  • MID — middle substring