beautypg.com

2 using the get function on modbus data points, Using the get function on modbus data points -12, Using the get function on modbus data points – Echelon i.LON SmartServer 2.0 User Manual

Page 261

background image

i.LON SmartServer 2.0 Programmer’s Reference

15-12

15.4.2

Using the Get Function on Modbus Data Points

You can use the Get function to retrieve the configuration of Modbus data points defined on the
SmartServer. The input parameters you supply to this function will include one or more
elements with a MOD_Dp_Cfg type. Each element will include the of each

Modbus data point whose configuration is to be returned by this function, as shown in the example
below.

Request (use an xSelect statement to return a specific

Modbus data point)



xsi:type="MOD_Dp_Cfg">

Net/Modbus

Channel/LAE_LCD15_1/VirtFb/Alrm_1



Alternatively, you can specify one or more Modbus data point properties in the xSelect statement to
filter the items returned by the Get function, including the to filter data points based on
their parent device.

Request (use an xSelect statement return all the Modbus data points on a specific device)



//Item[@xsi:type="MOD_Dp_Cfg"][starts-with(UCPTname,"Net/Modbus

Channel/LAE_LCD15_1")]


Response



0

xsi:type="MOD_Dp_Cfg">

Net/Modbus

Channel/LAE_LCD15_1/VirtFb/T1_1

Dp_In_Out
0
2008-04-02T12:15:22.020-07:00
Temperature

1

MOD_Dp_Cfg.htm
#8000010128000000[4].UNVT_signed_long#dec
2

field="">°C

0

LonFormat="UCPTbaseType">BT_SIGNED_LONG

LonFormat="UCPTmodbusTable">MTT_HR

0
0
16

LonFormat="UCPTdataOrdering">DO_BIG_ENDIAN

20.0


The Get function returns an element for each Modbus data point referenced in the input
parameters you supplied to the function. The properties included within each element are
initially defined when the Modbus data point is added to the SmartServer. You can write to these data
point properties with the Set function. The following table describes these properties.

Property Description

The name of the Modbus data point in the following format:
<network/channel/device/functionalblock/data point>. You can