beautypg.com

4 using the delete function on modbus channels, Using the delete function on modbus channels -6, Using the delete function on modbus channels – Echelon i.LON SmartServer 2.0 User Manual

Page 255

background image

i.LON SmartServer 2.0 Programmer’s Reference

15-6

• If you are creating a new Modbus channel, you only need to specify the

property; all other properties are optional.

• If you are modifying an existing Modbus channel, you must specify the channel’s

. If you do not specify the handle, a new channel is created. All other properties
must be filled; otherwise the values stored in them are erased. The previous section, Using the Get
Function on Modbus Channels
, details the properties you can include in the Set function.

Request (create a new TCP/IP Modbus channel on the SmartServer)



xsi:type="MOD_Channel_Cfg">

Net/Modbus

Channel

2

IP

LonFormat="UCPTchannelType">CT_TCP_IP_MASTER



Response



0

xsi:type="MOD_Channel_Cfg">

Net/Modbus

Channel

2

IP
0
2008-04-02T11:43:37.460-07:00
MOD_Channel_Cfg.htm
1

LonFormat="UCPTchannelType">CT_TCP_IP_MASTER

502

LonFormat="UCPTretryCount">1



15.1.4

Using the Delete Function on Modbus Channels

You can use the Delete function to delete a Modbus channel on the SmartServer. The Delete function
takes an element with a MOD_Channel_Cfg type as its input. The element only needs
to include the Modbus channel’s property in the Delete Request as demonstrated in the
following code sample:

Request



xsi:type="MOD_Channel_Cfg">

Net/Modbus Channel 2


Response



0


Net/Modbus

Channel

2