> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-bacnet2-library/funktionsbausteine/server-objekte/srv_msv_small.md).

# SRV\_MSV\_SMALL

## `SRV_MSV_SMALL` (FB)

FUNCTION\_BLOCK SRV\_MSV\_SMALL

Influence on the current state of the property ‘PresentValue’ (output)

Priority Condition Function Notes

Highest property ‘OutOfService’ = TRUE ‘PresentValue’ can be written directly Forced override of output ‘PresentValue’

Middle state of at least one priority state of the highest priority (1 = highest, prioritization of the requirements for the state of PresentValue: of the array <> NULL 16 = lowest) of the array <> NULL determines the value of ‘PresentValue’

Lowest states of all priorities 1 - 16 of the array. When transitioning to this priority, the value for determining the state of ‘PresentValue’, if there are no valid entries in the array: = NULL. Property ‘RelinquishDefault’ is written once to the output ‘PresentValue’.

Notes:

The state of a priority in the array can assume the following states: NULL (= inactive), FALSE (OFF), TRUE (ON) The most recent access defines the state of PresentValue. (‘Last one wins’) Each new state of ‘PresentValue’ is transferred only once when the state changes; there is no continuous transfer (= pulse function).

Priority 6 (only for binary values)

The state of priority 6 must not be used (= written), because it is used for generating pulses during the state change of property ‘PresentValue’. Each rising edge on ‘PresentValue’ generates a pulse (state: TRUE) of length ‘MinimumOnTime’ (‘MinimumOnTime’ > 0 s) of priority 6. Each falling edge on ‘PresentValue’ generates a pulse (state: FALSE) of length ‘MinimumOffTime’ (‘MinimumOffTime’ > 0 s) of priority 6.

Notification Class

Conditions:

1. The property ‘RecipientList’ must be assigned the attribute ‘WRITEABLE’.
2. The instance number must be identical to the Notification-Class
3. The priorities (0 - 2) should contain values greater than 0 (i.e. e.g. all = 1)

Persistence

Conditions:

1. The desired property (e.g. ‘Description’) must be assigned the attribute ‘PERSIST’.
2. Persistence is retained until the value of the property changes (xEnValueChange = TRUE) and/or a rising edge is detected at input ‘xInit’.

Unsolicited COV (= unsolicited transmission of state changes to all BACnet participants (broadcast))

Conditions:

1. The property ‘SupportUnsolicitedCOV’ must be set to ‘TRUE’ in the BACnet\_Server (central for all BACnet objects)

Status bit ‘Fault’

Conditions for the state ‘TRUE’

1. The current value of ‘rPresentValue’ falls below the lower limit ‘rFaultLowLimit\_IN’ and / or ( stOutputs.Reliability = ‘UnderRange’ ) ( Event status from ‘NORMAL’ to ‘FAULT’ )
2. The current value of ‘rPresentValue’ exceeds the upper limit ‘rFaultHighLimit\_IN’. ( stOutputs.Reliability = ‘OverRange’ ) ( Event status from ‘NORMAL’ to ‘FAULT’ )

Conditions for the state ‘FALSE’

In all other cases. ( Event status from ‘FAULT’ to ‘NORMAL’ )

Absolute limits of ‘rPresentValue’

The output ‘rResentValue’ takes, regardless of the input at ‘rPresentValue\_IN’, only values between the two absolute limits (inclusive).

1. Absolute lower limit for ‘rPresentValue’: parameter ‘rMinPresValue\_IN’
2. Absolute upper limit for ‘rPresentValue’: parameter ‘rMaxPresValue\_IN’

Status bit ‘InAlarm’

Conditions for the state ‘TRUE’

1. The current value of ‘rPresentValue’ falls below the lower limit ‘rMinPresValue\_IN’ and / or ( stOutputs.Reliability = ‘NoFaultDetected’ ) ( Event status from ‘NORMAL’ to ‘INALARM’ )
2. The current value of ‘rPresentValue’ exceeds the upper limit ‘rMaxPresValue\_IN’. ( stOutputs.Reliability = ‘NoFaultDetected’ ) ( Event status from ‘NORMAL’ to ‘INALARM’ )

In addition, the parameter ‘rDeadband\_IN’ must be taken into account as follows:

Example: ‘rMaxPresValue\_IN’ = 98.0, ‘rDeadband\_IN’ = 1.0 The alarm state is active when ‘rPresentValue’ > ‘rMaxPresValue\_IN’. The alarm state is no longer active when ‘rPresentValue’ < (‘rMaxPresValue\_IN’ - ‘rDeadband\_IN’).

Example: ‘rMinPresValue\_IN’ = 2.0, ‘rDeadband\_IN’ = 1.0 The alarm state is active when ‘rPresentValue’ < ‘rMinPresValue\_IN’. The alarm state is no longer active when ‘rPresentValue’ > (‘rMinPresValue\_IN’ + ‘rDeadband\_IN’).

Conditions for the state ‘FALSE’

In all other cases. ( stOutputs.Reliability = ‘NoFaultDetected’ ) ( Event status from ‘INALARM’ to ‘NORMAL’ )

Monitoring of the lower or upper limit can be enabled / disabled by an option switch ( ‘xLowLimitEnable\_IN’, ‘xHighLimitEnable\_IN’ ).

For the transmission of an alarm / event into a Notification-Class ( NC ), the option switches ‘xEventDetectionEnable\_IN’, ‘xEventEnableOffNormal\_IM’ and ‘xEventEnableNormal\_IM’ must be enabled.

InOut:

| Scope       | Name                                  | Type                                                                          | Initial                                                                                      | Comment                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ----------- | ------------------------------------- | ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `itfMasterConnector`                  | IMasterForServerObjectsPOU                                                    |                                                                                              | Input for the interface of the FB ‘MasterForServerObjectsPOU’                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Input       | `xInit`                               | `BOOL`                                                                        | FALSE                                                                                        | Re-definition of all properties ( write values/states and update outputs ) ( on every rising edge )                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Input       | `udiNumberOfStates_IN`                | `UDINT`                                                                       | Constants.gc\_udiMSVMinNumberOfStates                                                        | <p>Definition of the number of states of the object ( range: 2<br>… 10, permitted according to the BACnet standard: 256 )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Input       | `udiPresentValue_IN`                  | `UDINT`                                                                       | Constants.gc\_udiMSVMinPresValue                                                             | <p>Definition of the value of the output ‘udiPresentValue’ with the<br>priority ‘diPriority\_IN’</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Input       | `arsStateTexts_IN`                    | <p>ARRAY<br>\[1..Constants.gc\_udiMSVMaxNumberOfStates]<br>OF STRING(255)</p> | \[‘Text1’, ‘Text2’, ‘Text3’, ‘Text4’, ‘Text5’, ‘Text6’, ‘Text7’, ‘Text8’, ‘Text9’, ‘Text10’] | <p>Definition of the state texts of the current state at<br>‘udiPresentValue’</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Input       | `arudiAlarmValues_IN`                 | <p>ARRAY<br>\[1..Constants.gc\_udiMSVMaxNumberOfStates]<br>OF UDINT</p>       | \[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]                                                              | <p>Definition of the alarm states of the object ( function not yet implemented !!! )<br>Value of the array element = 0: No alarm is triggered by this array element<br>Value of the array element > 0: An alarm is triggered by this array element if the value of the element corresponds to the current value of ‘udiPresentValue’.</p>                                                                                                                                                                                                                                                                             |
| Input       | `arudiFaultValues_IN`                 | <p>ARRAY<br>\[1..Constants.gc\_udiMSVMaxNumberOfStates]<br>OF UDINT</p>       | \[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]                                                              | <p>Definition of the fault states of the object ( function not yet implemented !!! )<br>Value of the array element = 0: No fault is triggered by this array element<br>Value of the array element > 0: A fault is triggered by this array element if the value of the element corresponds to the current value of ‘udiPresentValue’.</p>                                                                                                                                                                                                                                                                              |
| Input       | `udiObjectInstance`                   | `UDINT`                                                                       | 1                                                                                            | Object instance of the server object to be created                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Input       | `sObjectNamePrefix`                   | `STRING(254)`                                                                 | ‘’                                                                                           | <p>Optional prefix for forming the object name —<br>CONCAT(sObjectNamePrefix,sObjectNameText)</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Input       | `sDescriptionPrefix`                  | `STRING(254)`                                                                 | ‘’                                                                                           | <p>Optional prefix for forming the description —<br>CONCAT(sDescriptionPrefix,sDescriptionText)</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Output      | `eObjectTypeFb`                       | `BACnet.CmpBACnet.IEC_BACNET_OBJECT_TYPE`                                     |                                                                                              | Type of the object - feedback                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Output      | `udiObjectInstanceFb`                 | `UDINT`                                                                       |                                                                                              | <p>Object instance of the server object to be created —<br>feedback</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Output      | `udiNumberOfStates`                   | `UDINT`                                                                       |                                                                                              | <p>Current number of states of the object ( range: 2 …<br>10, permitted according to the BACnet standard: 256 )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Output      | `udiPresentValue`                     | `UDINT`                                                                       |                                                                                              | <p>Current value of ‘PresentValue’ ( Relinquish-default: S /<br>Priority array: S+C / Out-Of-Service: S+C )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Output      | `sActualStateText`                    | `STRING(255)`                                                                 |                                                                                              | State text of the current state of ‘udiPresentValue’                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Output      | `arsStateTexts`                       | <p>ARRAY<br>\[1..Constants.gc\_udiMSVMaxNumberOfStates]<br>OF STRING(255)</p> |                                                                                              | <p>Current state texts for the state variable<br>‘udiPresentValue’</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Output      | `arudiAlarmValues`                    | <p>ARRAY<br>\[1..Constants.gc\_udiMSVMaxNumberOfStates]<br>OF UDINT</p>       |                                                                                              | <p>Current alarm states of the object ( function not yet implemented !!! )<br>Value of the array element = 0: No alarm is triggered by this array element<br>Value of the array element > 0: An alarm is triggered by this array element if the value of the element corresponds to the current value of ‘udiPresentValue’.</p>                                                                                                                                                                                                                                                                                       |
| Output      | `arudiFaultValues`                    | <p>ARRAY<br>\[1..Constants.gc\_udiMSVMaxNumberOfStates]<br>OF UDINT</p>       |                                                                                              | <p>Current fault states of the object ( function not yet implemented !!! )<br>Value of the array element = 0: No fault is triggered by this array element<br>Value of the array element > 0: A fault is triggered by this array element if the value of the element corresponds to the current value of ‘udiPresentValue’.</p>                                                                                                                                                                                                                                                                                        |
| Output      | `xPresentValueOverride`               | `BOOL`                                                                        |                                                                                              | <p>Status of the override of the output ‘udiPresentValue’ (<br>TRUE = override active )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Output      | `stProperties`                        | SRV\_MSV\_SMALL\_PROPERTY\_OUTPUTS                                            |                                                                                              | <p>Structure with the current states of selected<br>properties</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Output      | `xRegistered`                         | `BOOL`                                                                        | FALSE                                                                                        | Display of the successful registration of the server object                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Input Const | `eSelectPopertiesToCheckChanges`      | ServerObjects\_Select\_Properties\_To\_Check\_Changes                         | ServerObjects\_Select\_Properties\_To\_Check\_Changes.PresentValue\_only                     | <p>Selection of the properties that are continuously checked for changes at the input ( index ‘\_IN’ ) and changed in the server if necessary<br><br>1. ServerObjects\_Select\_Properties\_To\_Check\_Changes.No\_property:<br>No property is checked<br>2. ServerObjects\_Select\_Properties\_To\_Check\_Changes.PresentValue\_only:<br>Only the properties ‘PresentValue’ ( input ‘udiPresentValue\_IN’ ) and ‘Reliability’ ( input ‘eReliability\_IN’ ) are checked<br>3. ServerObjects\_Select\_Properties\_To\_Check\_Changes.All\_properties<br>All properties ( inputs with the index ‘\_IN’ ) are checked</p> |
| Input Const | `eTriggeringUpdateActual`             | ServerObjects\_TriggeringUpdateActual                                         | ServerObjects\_TriggeringUpdateActual.CENTRAL\_TRIGGERING                                    | <p>Definition of the trigger for the cyclic update of the outputs<br>NO\_TRIGGERING: no cyclic update<br>LOCAL\_TRIGGERING: cyclic update ( duration: tTimeUpdateActual )<br>CENTRAL\_TRIGGERING: cyclic update ( duration depends on the number of server objects )</p>                                                                                                                                                                                                                                                                                                                                              |
| Input Const | `tTimeUpdateActual`                   | `TIME`                                                                        | TIME#3s0ms                                                                                   | Update interval for updating the outputs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Input Const | `udiRelinquishDefault_IN`             | `UDINT`                                                                       | Constants.gc\_udiMSVMinPresValue                                                             | <p>Definition of the value of the output ‘udiPresentValue’ at the<br>lowest priority, if the priority array is not<br>occupied</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Input Const | `diPriority_IN`                       | `DINT`                                                                        | 16                                                                                           | <p>Priority for the input ‘udiPresentValue\_IN’ ( 0 - 16, 0 =<br>none, 1 = highest, 16 = lowest )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Input Const | `eAccessRightFaultValues_IN`          | `BACnet.CmpBACnet.IEC_BACNET_ACCESS`                                          | BACnet.CmpBACnet.IEC\_BACNET\_ACCESS.BACNET\_ACCESS\_HIDDEN                                  | <p>Definition of the access permission for the fault states<br>by a client</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Input Const | `eAccessRightAlarmValues_IN`          | `BACnet.CmpBACnet.IEC_BACNET_ACCESS`                                          | BACnet.CmpBACnet.IEC\_BACNET\_ACCESS.BACNET\_ACCESS\_HIDDEN                                  | <p>Definition of the access permission for the alarm states<br>by a client</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Input Const | `eAccessRightStateTexts_IN`           | `BACnet.CmpBACnet.IEC_BACNET_ACCESS`                                          | BACnet.CmpBACnet.IEC\_BACNET\_ACCESS.BACNET\_ACCESS\_HIDDEN                                  | <p>Definition of the access permission for the state texts<br>by a client</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Input Const | `eAccessRightEventDetectionEnable_IN` | `BACnet.CmpBACnet.IEC_BACNET_ACCESS`                                          | BACnet.CmpBACnet.IEC\_BACNET\_ACCESS.BACNET\_ACCESS\_HIDDEN                                  | <p>Definition of the access permission for the property<br>‘Event Detection Enable’ by a client</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Input Const | `eAccessRightEventEnable_IN`          | `BACnet.CmpBACnet.IEC_BACNET_ACCESS`                                          | BACnet.CmpBACnet.IEC\_BACNET\_ACCESS.BACNET\_ACCESS\_HIDDEN                                  | <p>Definition of the access permission for the property<br>‘Event Enable’ by a client</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Input Const | `eAccessRightNotifyType_IN`           | `BACnet.CmpBACnet.IEC_BACNET_ACCESS`                                          | BACnet.CmpBACnet.IEC\_BACNET\_ACCESS.BACNET\_ACCESS\_HIDDEN                                  | <p>Definition of the access permission for the notification-<br>type by a client</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Input Const | `eAccessRightTimeDelay_IN`            | `BACnet.CmpBACnet.IEC_BACNET_ACCESS`                                          | BACnet.CmpBACnet.IEC\_BACNET\_ACCESS.BACNET\_ACCESS\_HIDDEN                                  | <p>Definition of the access permission for the time delay<br>by a client</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Input Const | `eAccessRightNotificationClass_IN`    | `BACnet.CmpBACnet.IEC_BACNET_ACCESS`                                          | BACnet.CmpBACnet.IEC\_BACNET\_ACCESS.BACNET\_ACCESS\_HIDDEN                                  | <p>Definition of the access permission for the Notification-<br>Class by a client</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Input Const | `eReliability_IN`                     | `BACnet.CmpBACnet.IEC_BACNET_RELIABILITY`                                     | BACnet.CmpBACnet.IEC\_BACNET\_RELIABILITY.RELIABILITY\_NO\_FAULT\_DETECTED                   | <p>Definition of the current state of the property<br>‘Reliability’</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Input Const | `xOutOfService_IN`                    | `BOOL`                                                                        | FALSE                                                                                        | <p>Forced override for the output ‘udiPresentValue’ with the<br>highest priority ( ‘xOutOfService’ = TRUE ) ( Only for<br>Value objects )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Input Const | `xEventDetectionEnable_IN`            | `BOOL`                                                                        | FALSE                                                                                        | <p>General enable/disable of event detection (<br>TRUE = enable )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Input Const | `xEventNormalEnable_IN`               | `BOOL`                                                                        | FALSE                                                                                        | <p>Enable/disable detection of transitions to state<br>‘Normal’ ( TRUE = enable )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Input Const | `xEventFaultEnable_IN`                | `BOOL`                                                                        | FALSE                                                                                        | <p>Enable/disable detection of transitions to state<br>‘Fault’ ( TRUE = enable )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Input Const | `xEventOffNormalEnable_IN`            | `BOOL`                                                                        | FALSE                                                                                        | <p>Enable/disable detection of transitions to state<br>‘Off-Normal’ ( TRUE = enable )</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Input Const | `eNotifyType_IN`                      | `BACnet.CmpBACnet.IEC_BACNET_NOTIFY_TYPE`                                     | BACnet.CmpBACnet.IEC\_BACNET\_NOTIFY\_TYPE.NOTIFY\_TYPE\_ALARM                               | Definition of the type of the assigned Notification-Class                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Input Const | `udiTimeDelay_IN`                     | `UDINT`                                                                       | 0                                                                                            | <p>Definition of the value of the property ‘udiTimeDelay’ in<br>seconds</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Input Const | `udiNotificationClass_IN`             | `UDINT`                                                                       | 40                                                                                           | Definition of the number of the assigned Notification-Class                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Input Const | `sDescriptionText`                    | `STRING(254)`                                                                 | ‘’                                                                                           | Text portion of the description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Input Const | `sObjectNameText`                     | `STRING(254)`                                                                 | ‘’                                                                                           | Text portion of the object name of the server object to be created                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Input Const | `xEn`                                 | `BOOL`                                                                        | TRUE                                                                                         | Enable / disable communication ( TRUE = enable )                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-bacnet2-library/funktionsbausteine/server-objekte/srv_msv_small.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
