Search

User Manual

GETTING STARTED


MODULES AND PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


GLOSSARY


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support
SDK Documentation
SDK Examples

ALL USER MANUAL VERSIONS

Ignition 8.1
Ignition 7.9
Ignition 7.8

Deprecated Pages

Skip to end of metadata
Go to start of metadata

The following feature is new in Ignition version 8.0.15
Click here to check out the other new features
This function is used in Python Scripting.

Description

Write to the Present_Value attribute of an object with a custom priority level. 

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

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 be in the range [1...16].

  • Returns

nothing

  • Scope

Gateway

objectType Reference
ObjectID
Analog Input0
Analog Output1
Analog Value2
Binary Input3
Binary Output4
Binary Value5
Device8
Large Analog Value46
Multi-State Input13
Multi-State Output14
Multi-State Value15
Code Examples
Example 1
# 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)
Example 2
# Values can be cleared by writing a None value. 

deviceName = 'BACnet Remote'
objectType = 5 
objectId = 1
value = None
priority = 7

system.bacnet.writeWithPriority(deviceName, objectType, objectId, value, priority)
Keywords

system bacnet writeWithPrioritybacnet.writeWithPriority

  • No labels