beautypg.com

2 modbus devices, 1 using the list function on modbus devices, 2 using the get function on modbus devices – Echelon i.LON SmartServer 2.0 User Manual

Page 256: Modbus devices -7, Using the list function on modbus devices -7, Using the get function on modbus devices -7, Modbus devices

background image

i.LON SmartServer 2.0 Programmer’s Reference

15-7

15.2

Modbus Devices

The following section describes how to use the List, Get, Set, and Delete functions on Modbus devices.

15.2.1

Using the List Function on Modbus Devices

You can use the List function to retrieve a list of Modbus devices on the SmartServer. The List
function takes an element that has an xSelect statement with a MOD_Device_Cfg type as
its input, as shown in the example below.

Request



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


Response



0
4.0

Net/Modbus

Channel/LAE_LCD15_1

App;xsi:type="MOD_Device_Cfg"
0


You could use the list of elements returned by this function as input for the Get function. The
Get function would then return the configuration of each device included in the list. The next section
describes the properties included in each of these elements.

15.2.2

Using the Get Function on Modbus Devices

You can use the Get function to retrieve the configuration of a Modbus device defined on the
SmartServer. The input parameters you supply to this function will include one or more
elements with a MOD_Device_Cfg type. Each element will include the of each
device whose configuration is to be returned by this function, as shown in the example below.

Request



xsi:type="MOD_Device_Cfg">

Net/Modbus

Channel/LAE_LCD15_1



Response



0

xsi:type="MOD_Device_Cfg">

Net/Modbus

Channel/LAE_LCD15_1

App
0
2008-04-02T12:15:22.960-07:00
MOD_Device_Cfg.htm
0
1


0