beautypg.com

2 using the get function on network variables, Using the get function on network variables -41, Using the get function on network variables – Echelon i.LON SmartServer 2.0 User Manual

Page 241

background image

i.LON SmartServer 2.0 Programmer’s Reference

14-41

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


Request (use an xSelect statement to return all the network variables that were updated after a
specific time)


//Item[@xsi:type="LON_Dp_Cfg"][UCPTlastUpdate>"2008-03-31T00:00:00"]


Request (return all the network variables of a specific type based on name)



//Item[@xsi:type="LON_Dp_Cfg"][contains(UCPTname,"DO_Digital")]

Response



0
4.0

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

Dp_In;xsi:type="LON_Dp_Cfg"
0


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

Dp_In;xsi:type="LON_Dp_Cfg"
0


14.7.2

Using the Get Function on Network Variables

You can use the Get function to retrieve the configuration of network variables (L

ON

W

ORKS

data

points) defined on the SmartServer or in a specific LNS network database. The input parameters you
supply to this function will include one or more elements with a LON_Dp_Cfg type. Each
element will include the of each

network variable whose configuration is to be

returned by this function, as shown in the example below.

Request (use an xSelect statement to return a specific

network variable)



xsi:type="LON_Dp_Cfg">

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



Alternatively, you can specify one or more network variable (L

ON

W

ORKS

data point) properties in the

xSelect statement to filter the items returned by the Get function, including the to filter
data points based on their parent functional block.

Request (use an xSelect statement return all the network variables on a specific functional block)


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