beautypg.com

15 modbus driver, 1 modbus channels, 1 using the list function on modbus channels – Echelon i.LON SmartServer 2.0 User Manual

Page 250: 2 using the get function on modbus channels, Modbus driver -1, Modbus channels -1, Using the list function on modbus channels -1, Using the get function on modbus channels -1, Modbus channels

background image

i.LON SmartServer 2.0 Programmer’s Reference

15-1

15

Modbus Driver

The following chapter describes how to manage Modbus channels, devices, and data points on the
SmartServer.

15.1

Modbus Channels

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

15.1.1

Using the List Function on Modbus Channels

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

Request



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


Response



0
4.0

Net/Modbus
RS485;xsi:type="MOD_Channel_Cfg"
0


The List function returns a list of elements for each Modbus channel defined on the
SmartServer. 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 Modbus channel included in
the list. The next section describes the properties included in each of these elements.

15.1.2

Using the Get Function on Modbus Channels

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

Request



xsi:type="MOD_Channel_Cfg">

Net/Modbus

Channel



Response



0

xsi:type="MOD_Channel_Cfg">

Net/Modbus

Channel