EasyManua.ls Logo

Embedded Systems LM5p-GSMC - Page 220

Default Icon
291 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
220
By clicking on Scan Network button you can see a list of BACnet server devices on the network.
With Scan Selected you can rescan specific BACnet server for respective objects.
Mapping to KNX objects currently is done over scripting.
Before using any BACnet function, you must include the library:
require('bacnet')
Read current value of binary or analog object:
bacnet.readvalue(device_id, object_type, object_id)
Read binary object:
value = bacnet.readvalue(127001, 'binary value', 2305)
Read analog object:
value = bacnet.readvalue(127001, 'analog value', 2306)
Write new value to binary or analog object priority array:
bacnet.write = function(device_id, object_type, object_id, value, priority)
Value can be nil, boolean, number or a numeric string
Priority parameter is optional, lowest priority is used by default
Set binary object value:
bacnet.write(127001, 'binary value', 2305, true)
Set analog object value:
bacnet.write(127001, 'analog value', 2306, 22.5)
Set binary object value at priority 12:
bacnet.write(127001, 'binary value', 2305, true, 12)
Set analog object value at priority 10:
bacnet.write(127001, 'analog value', 2306, 22.5, 10)

Table of Contents

Related product manuals