4 using the delete function on m bus devices, 3 m bus virtual functional blocks, 4 m bus data points – Echelon i.LON SmartServer 2.0 User Manual
Page 278: Using the delete function on m-bus devices -11, M-bus virtual functional blocks -11, M-bus data points -11, M-bus virtual functional blocks, M-bus data points

i.LON SmartServer 2.0 Programmer’s Reference
16-11
16.2.4
Using the Delete Function on M-Bus Devices
You can use the Delete function to delete an M-Bus device on the SmartServer. The Delete function
takes an <Item> element with an MBS_Device_Cfg type as its input. The <Item> element only needs
to include the device’s <UCPTname> property in the Delete Request as demonstrated in the following
code sample:
Request
<Delete xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item xsi:type="MBS_Device_Cfg">
<UCPTname>Net/M-Bus Channel/M-Bus Device 2</UCPTname>
</Item>
</iLonItem>
</Delete>
Response
<DeleteResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem >
<UCPTfaultCount>0</UCPTfaultCount>
<Item>
<UCPTname>Net/M-Bus Channel/M-Bus Device 2</UCPTname>
</Item>
</iLonItem>
</Delete>
16.3
M-Bus Virtual Functional Blocks
Before you can add data points to an M-Bus device, you need to use the Set function to create a Virtual
functional block under the M-Bus device. This virtual functional block is used to encapsulate the
M-Bus data points and enable the M-Bus driver to adhere to the network hierarchy naming convention.
The Set function takes an <Item> element with an MBS_Fb_Cfg type as its input, as shown in the
example below.
Request (add a virtual functional block to an M-Bus device)
<Set xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item
xsi:type="MBS_Fb_Cfg">
<UCPTname>Net/M-Bus
Channel/M-Bus
Device/VirtFb</UCPTname>
</Item>
</iLonItem>
</Set>
Response
<SetResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<UCPTfaultCount>0</UCPTfaultCount>
<Item>
<UCPTname>Net/M-Bus
Channel/M-Bus
Device/VirtFb</UCPTname>
</Item>
</iLonItem>
</SetResponse>
16.4
M-Bus Data Points
The following section describes how to use the List, Get, Set, and Delete functions on M-Bus data
points. For information on reading and writing values to M-Bus data points, see Chapter 4, Using the
SmartServer Data Server.