4 using the delete function on modbus devices, 3 modbus virtual functional blocks, 4 modbus data points – Echelon i.LON SmartServer 2.0 User Manual
Page 259: Using the delete function on modbus devices -10, Modbus virtual functional blocks -10, Modbus data points -10, Modbus virtual functional blocks, Modbus data points

i.LON SmartServer 2.0 Programmer’s Reference
15-10
</SetResponse>
15.2.4
Using the Delete Function on Modbus Devices
You can use the Delete function to delete a Modbus device on the SmartServer. The Delete function
takes an <Item> element with a MOD_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="MOD_Device_Cfg">
<UCPTname>Net/Modbus
Channel/LAE_LCD15_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/Modbus
Channel/LAE_LCD15_2</UCPTname>
</Item>
</iLonItem>
</Delete>
15.3
Modbus Virtual Functional Blocks
Before you can add data points to a Modbus device, you need to use the Set function to create a Virtual
functional block under the Modbus device. This virtual functional block is used to encapsulate the
Modbus data points and enable the Modbus driver to adhere to the network hierarchy naming
convention. The Set function takes an <Item> element with a MOD_Fb_Cfg type as its input, as
shown in the example below.
Request (add a virtual functional block to a Modbus device)
<Set xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item
xsi:type="MOD_Fb_Cfg">
<UCPTname>Net/Modbus
Channel/LAE_LCD15_2/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/Modbus
Channel/LAE_LCD15_2/VirtFb</UCPTname>
</Item>
</iLonItem>
</SetResponse>
15.4
Modbus Data Points
The following section describes how to use the List, Get, Set, and Delete functions on Modbus data
points. For information on reading and writing values to Modbus data points, see Chapter 4, Using the
SmartServer Data Server.