For the complete documentation index, see llms.txt. This page is also available as Markdown.

SplitInstanceText

SplitInstanceText (FUN)

FUNCTION SplitInstanceText : BOOL

Short description

Splitting of a passed instance path

Functional description

This function splits a passed instance path (Gerät.Application.POU.Makroname) into the desired partial paths. At the input pString the complete instance path (Gerät.Application.POU.Makroname) is passed via a pointer. At the input pResultString1 subpath 1 (Gerät.Application.POU) is passed to the output variable via a pointer. At the input pResultString2 subpath 2 (POU) is passed to the output variable via a pointer. At the input iInstanzOffset the structure of subpath 1 is defined (0 = Gerät.Application.POU.Makroname, 1 = Gerät.Application.POU, 2 = Gerät.Application). At the output iNumberOfSuffix the structure of subpath 1 is displayed (0 = Gerät.Application.POU.Makroname, 1 = Gerät.Application.POU, 2 = Gerät.Application).

Codesys

InOut:

Scope
Name
Type

Return

SplitInstanceText

BOOL

Input

pString

POINTER TO STRING(255)

Input

pResultString1

POINTER TO STRING

Input

pResultString2

POINTER TO STRING

Input

iInstanzOffset

INT

Output

iNumberOfSuffix

INT

Last updated