Skip to main content
Version: 8.1

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

TypeParameterDescription
StringdeviceNameThe name of the configured BACnet/IP device instance to write from.
IntegerobjectTypeThe numeric id of the objectType of the object instance being written to. See the objectType Reference table below.
IntegerobjectIdThe object instance number to write to.
ObjectvalueThe value to write. Clearing a value can be accomplished by writing a None value.
IntegerpriorityThe 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

ObjectID
Analog Input0
Analog Output1
Analog Value2
Binary Input3
Binary Output4
Binary Value5
Device8
Large Analog Value46
Multi-State Input
Multi-State Output14
Multi-State Value15

Priority Reference

LevelApplication
1Manual-Life Safety
2Automatic-Life Safety
3Available
4Available
5Critical Equipment Control
6Minimum On/Off
7Available
8Manual Operator
9Available
10Available
11Available
12Available
13Available
14Available
15Available
16Available

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)

Keywords

system bacnet writeWithPriority, bacnet.writeWithPriority