# SplitInstanceText

## `SplitInstanceText` (FUN)

FUNCTION SplitInstanceText : BOOL

### Kurzbeschreibung

> Aufsplittung eines übergebenen Instanzpfades

### Funktionsbeschreibung

Diese Funktion splittet einen übergebenen Instanzpfad (Gerät.Application.POU.Makroname) in die gewünschten Teilpfade auf.\
Am Eingang *pString* wird über einen Zeiger der vollständige Instanzpfad (Gerät.Application.POU.Makroname) übergeben.\
Am Eingang *pResultString1* wird über einen Zeiger der Teilpfad 1 (Gerät.Application.POU) auf die Ausgabevariable übergeben.\
Am Eingang *pResultString2* wird über einen Zeiger der Teilpfad 2 (POU) auf die Ausgabevariable übergeben.\
Am Eingang *iInstanzOffset* wird der Aufbau des Teilpfads 1 definiert (0 = Gerät.Application.POU.Makroname, 1 = Gerät.Application.POU, 2 = Gerät.Application).\
Am Ausgang *iNumberOfSuffix* wird der Aufbau des Teilpfads 1 dargestellt (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`                  |


---

# 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/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.
