SplitInstanceText

SplitInstanceText (FUN)

FUNCTION SplitInstanceText : BOOL

Short description

Splitting of a passed instance path

Function description

This function splits a passed instance path ( Gerät.Application.POU.Makroname ) into the desired subpaths. At input pString the complete instance path ( Gerät.Application.POU.Makroname ) is passed via a pointer. At input pResultString1 the subpath 1 ( Gerät.Application.POU ) is passed to the output variable via a pointer. At input pResultString2 the subpath 2 ( POU ) is passed to the output variable via a pointer. At input iInstanzOffset defines the composition of subpath 1 ( 0 = Gerät.Application.POU.Makroname, 1 = Gerät.Application.POU, 2 = Gerät.Application ). At output iNumberOfSuffix represents the composition of subpath 1 ( 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