System information

Table Of Contents
i.LON SmartServer 2.0 Programmer’s Reference
15-17
You can set multiple Modbus data points with a single Set message. However, you should not attempt
to create or write to more than 100 Modbus data points with a single call to the Set function. The
following example demonstrates how to create a new Modbus data point.
Request (add a Modbus data point to a Modbus device)
<Set xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<UCPTfaultCount>0</UCPTfaultCount>
<Item xsi:type="MOD_Dp_Cfg">
<UCPTname>Net/Modbus Channel/LAE_LCD15_2/VirtFb/T1_1</UCPTname>
<UCPTformatDescription>#8000010128000000[4].UNVT_signed_long#dec</UCPTformatDescription>
<UCPTbaseType LonFormat="UCPTbaseType">BT_SIGNED_LONG</UCPTbaseType>
<UCPTmodbusTable LonFormat="UCPTmodbusTable">MTT_HR</UCPTmodbusTable>
<UCPTstartAddress>0</UCPTstartAddress>
<UCPTstartBit>0</UCPTstartBit>
<UCPTbitLength>16</UCPTbitLength>
</Item>
</iLonItem>
</Set>
Response
<SetResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<UCPTfaultCount>0</UCPTfaultCount>
<Item>
<UCPTname>Net/Modbus Channel/LAE_LCD15_2/VirtFb/T1_1</UCPTname>
</Item>
</iLonItem>
</SetResponse>
15.4.4
Using the Delete Function on Modbus Data Points
You can use the Delete function to delete a Modbus data point on the SmartServer. The Delete
function takes an <Item> element with a MOD_Dp_Cfg type as its input. The <Item> element only
needs to include the Modbus data point’s <UCPTname> property in the Delete Request as
demonstrated in the following code sample:
Request
<Delete xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item xsi:type="MOD_Dp_Cfg">
<UCPTname> Net/Modbus Channel/LAE_LCD15_2/VirtFb/T1_1</UCPTname>
</Item>
</iLonItem>
</Delete>
Response
<DeleteResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem >
<UCPTfaultCount>0</UCPTfaultCount>
<Item>
<UCPTname>Net/Modbus Channel/LAE_LCD15_2/VirtFb/T1_1</UCPTname>
</Item>
</iLonItem>
</Delete>