SplitInstanceText

SplitInstanceText (FUN)

FUNCTION SplitInstanceText : BOOL

Short description

Splitting of a passed instance path

Function description

This function splits a passed instance path (Device.Application.POU.MacroName) into the desired partial paths. On input pString the complete instance path (Device.Application.POU.MacroName) is passed via a pointer to the input. On input pResultString1 the partial path 1 (Device.Application.POU) is passed to the output variable via a pointer. On input pResultString2 the partial path 2 (POU) is passed to the output variable via a pointer. On input iInstanzOffset defines the composition of partial path 1 (0 = Device.Application.POU.MacroName, 1 = Device.Application.POU, 2 = Device.Application). On output iNumberOfSuffix represents the composition of partial path 1 (0 = Device.Application.POU.MacroName, 1 = Device.Application.POU, 2 = Device.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