beautypg.com

Using the list function on a l, Orks, Functional block -35 – Echelon i.LON SmartServer 2.0 User Manual

Page 235: Functional block

background image

i.LON SmartServer 2.0 Programmer’s Reference

14-35

14.6.1

Using the List Function on a L

ON

W

ORKS

Functional Block

You can use the List function to retrieve a list of functional blocks on the SmartServer or to retrieve a
list of functional blocks in a specific LNS network database via the LNS Proxy Web service. The List
function takes an element that has an xSelect statement with a LON_Fb_Cfg type as its
input, as shown in the example below.

Request (return all the functional blocks of all the devices on the SmartServer or in an LNS
network database)



//Item[@xsi:type="LON_Fb_Cfg"]


Alternatively, you can filter the functional blocks returned by the List function to those on a specific
device by including the of the parent device in the xSelect statement, or you can filter
functional blocks returned by using the , , or the
properties of the functional block.

Request (return all the functional blocks of a specific device that were updated after a specific
time)


//Item[@xsi:type="LON_Fb_Cfg"][starts-with(UCPTname,"Building 2/Channel 1/DIO-5")]
[UCPTlastUpdate>"2008-03-31T00:00:00"]


Request (return all the functional blocks of a specific type on all devices based on name)



//Item[@xsi:type="LON_Fb_Cfg"][contains(UCPTname,"Digital

Output")]


Request (use an xSelect statement return all functional blocks on a specific device that are
currently hidden in the SmartServer Web interface)



//Item[@xsi:type="LON_Fb_Cfg"][starts-with(UCPTname,"Building 2/Channel 1/iLON

App")][UCPThidden="1"]



Request (return all the functional blocks of a specific type based on name)


//Item[@xsi:type="LON_Fb_Cfg"][starts-with(UCPTname,"Building 2/Channel 1/DIO-5/Digital
Output")]


Response



0
4.0

Building 2/Channel 1/DIO-5/Digital Output[0]

#8000010000000000[3].UFPTDigitalOutput;xsi:type="LON_Fb_Cfg"
0