system.bacnet.writeWithPriority
This function is used in Python Scripting.
Descriptionβ
Write to the Present_Value attribute of an object with a custom priority level.
note
To use this function, the BACnet driver must be installed.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.bacnet.writeWithPriority(deviceName, objectType, objectId, value, priority)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | deviceName | The name of the configured BACnet/IP device instance to write from. |
| Integer | objectType | The numeric id of the objectType of the object instance being written to. See the objectType Reference table below. |
| Integer | objectId | The object instance number to write to. |
| Object | value | The value to write. Clearing a value can be accomplished by writing a None value. |
| Integer | priority | The priority level to write the value at. Must match a level in the standard BACnet priority array (a value from 1 to 16). See the Priority Reference table below. |
Returnsβ
Nothing
Scopeβ
Gateway, Perspective Session
objectType Referenceβ
| Object | ID |
|---|---|
| Analog Output | 1 |
| Analog Value | 2 |
| Binary Output | 4 |
| Binary Value | 5 |
| Device | 8 |
| Large Analog Value | 46 |
| Multi-State Output | 14 |
| Multi-State Value | 19 |
Priority Referenceβ
| Level | Application |
|---|---|
| 1 | Manual-Life Safety |
| 2 | Automatic-Life Safety |
| 3 | Available |
| 4 | Available |
| 5 | Critical Equipment Control |
| 6 | Minimum On/Off |
| 7 | Available |
| 8 | Manual Operator |
| 9 | Available |
| 10 | Available |
| 11 | Available |
| 12 | Available |
| 13 | Available |
| 14 | Available |
| 15 | Available |
| 16 | Available |
Code Exampleβ
Example
# Write a value of 'True' to Binary Value 1 with a Priority of 7.
deviceName = 'BACnet Remote'
objectType = 5 # Binary Value
objectId = 1
value = True
priority = 7
system.bacnet.writeWithPriority(deviceName, objectType, objectId, value, priority)