# 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`                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-library/funktionen/splitinstancetext.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
