# MASTER\_FOR\_SERVEROBJECTS\_POU

## `MASTER_FOR_SERVEROBJECTS_POU` (FB)

FUNCTION\_BLOCK MASTER\_FOR\_SERVEROBJECTS\_POU IMPLEMENTS IMasterForServerObjectsPOU

InOut:

| Scope       | Name                                          | Type                                       | Initial  | Comment                                                                                                                                                                                                                                                                                                                                                          |
| ----------- | --------------------------------------------- | ------------------------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `refBACnet2_Server`                           | <p>REFERENCE TO<br>BACnet.BACnetServer</p> | 0        | <p>Reference to the BACnet object of type 'BACnet2\_Server' in the<br>device tree</p>                                                                                                                                                                                                                                                                            |
| Output      | `dwNumberOfBACnetServerObjects`               | `DWORD`                                    |          | <p>Total - number of BACnet server objects (device tree<br>and/or POU)</p>                                                                                                                                                                                                                                                                                       |
| Output      | `dwNumberOfBACnetServerObjectsPOU_Registered` | `DWORD`                                    |          | Number of registered BACnet server objects (POU)                                                                                                                                                                                                                                                                                                                 |
| Output      | `dwNumberOfBACnetServerObjectsPOU_Placed`     | `DWORD`                                    |          | Number of placed BACnet server objects (POU)                                                                                                                                                                                                                                                                                                                     |
| Output      | `dwIndexTriggeringUpdateActual`               | `DWORD`                                    |          | <p>Running index for selecting a placed FB to<br>update the structure variable 'stProperties'</p>                                                                                                                                                                                                                                                                |
| Output      | `eStringType`                                 | `BACnet.CmpBACnet.IEC_BACNET_STRING_TYPE`  |          | <p>String type for all strings of the BACnet server and its<br>objects (type: DINT)</p>                                                                                                                                                                                                                                                                          |
| Output      | `itfMasterConnector`                          | IMasterForServerObjectsPOU                 | THIS^    | <p>Interface - output for connecting slave<br>function blocks</p>                                                                                                                                                                                                                                                                                                |
| Input Const | `xEnUpdateIndexTriggering`                    | `BOOL`                                     | TRUE     | <p>Enable / disable automatic updating of the index 'gvlBACnet2.dwIndexTriggeringUpdateActual'<br>TRUE: Automatic update enabled (gvlBACnet2.dwIndexTriggeringUpdateActual changes each cycle between 1 and gvlBACnet2.dwNumberOfBACnetServerObjectsPOU\_Placed)<br>FALSE: Automatic update disabled (gvlBACnet2.dwIndexTriggeringUpdateActual = 0 constant)</p> |
| Input Const | `tTimeUpdateObjectList`                       | `TIME`                                     | TIME#0ms | Time duration for updating the object list                                                                                                                                                                                                                                                                                                                       |

Methods:

> DecNumberOfBACnetServerObjectsPOU\_Registered

> FB\_Exit

> IncNumberOfBACnetServerObjectsPOU\_Placed

> IncNumberOfBACnetServerObjectsPOU\_Registered

> ShowObjectList

> UpdateIndexTriggeringUpdateActual

Structure:

* DecNumberOfBACnetServerObjectsPOU\_Registered (Method)
* FB\_Exit (Method)
* IncNumberOfBACnetServerObjectsPOU\_Placed (Method)
* IncNumberOfBACnetServerObjectsPOU\_Registered (Method)
* ShowObjectList (Method)
* UpdateIndexTriggeringUpdateActual (Method)


---

# 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-bacnet2-library/funktionsbausteine/server-objekte/master_for_serverobjects_pou.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.
