beautypg.com

7 network variables (lonworks data points), 1 using the list function on network variables, Using the delete function on a l – Echelon i.LON SmartServer 2.0 User Manual

Page 240: Orks, Functional block -40, Network variables (l, Data points) -40, Using the list function on network variables -40, Data points)

background image

i.LON SmartServer 2.0 Programmer’s Reference

14-40


0

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


14.6.4

Using the Delete Function on a L

ON

W

ORKS

Functional Block

You can use the Delete function to delete a functional block on the SmartServer, or in an LNS network
database via the LNS Proxy Web service. The Delete function takes an element with a
LON_Fb_Cfg type as its input. The element only needs to include the functional block’s
property in the Delete Request as demonstrated in the following code sample:

Request



MyOldNetwork/MyOldChannel/MyOldDevice/MyOldFb


Response



0


MyOldNetwork/MyOldChannel/MyOldDevice/MyOldFb


14.7

Network Variables (L

ON

W

ORKS

Data Points)

The following section describes how to use the List, Get, Set, and Delete functions on network
variables (L

ON

W

ORKS

data points). For information on reading and writing values to network

variables, see Chapter 4, Using the SmartServer Data Server.

14.7.1

Using the List Function on Network Variables

You can use the List function to retrieve a list of network variables (L

ON

W

ORKS

data points) on the

SmartServer or to retrieve a list of network variables 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_Dp_Cfg type as its input, as shown in the example below.

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



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


Alternatively, you can filter the network variables (L

ON

W

ORKS

data points) returned by the List

function to those on a specific functional block by including the of the parent functional
block in the xSelect statement, or you can filter the network variables returned using the
and data point properties.

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