beautypg.com

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

background image

i.LON SmartServer 2.0 Programmer’s Reference

15-10

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 element with a MOD_Device_Cfg type as its input. The element only needs
to include the device’s property in the Delete Request as demonstrated in the following
code sample:

Request



Net/Modbus

Channel/LAE_LCD15_2


Response



0


Net/Modbus

Channel/LAE_LCD15_2



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 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)



xsi:type="MOD_Fb_Cfg">

Net/Modbus

Channel/LAE_LCD15_2/VirtFb



Response



0

Net/Modbus

Channel/LAE_LCD15_2/VirtFb


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
.