Echelon i.LON SmartServer 2.0 User Manual

Page 200

Advertising
background image

i.LON SmartServer 2.0 Programmer’s Reference

13-12

<Rule>
<UCPTindex>0</UCPTindex>
<UCPTinputPath>DataPointFormat[UCPTnickName="nviSwitch"]</UCPTinputPath>
<UCPToutputPath>DataPointFormat[UCPTnickName="nvoHVACmode"]</UCPToutputPath>
<UCPTcompFunction

LonFormat="UCPTcompFunction">FN_NUL</UCPTcompFunction>

<UCPTmultiplier>0</UCPTmultiplier>
<UCPTconstant

LonFormat="">HVAC_COOL</UCPTconstant>

</Rule>
</Case>
<Case>
<UCPTindex>1</UCPTindex>
<UCPTinputPath>DataPointFormat[UCPTnickName="nviSwitch"]</UCPTinputPath>
<UCPTcompFunction

LonFormat="UCPTcompFunction">FN_EQ</UCPTcompFunction>

<UCPTcompValue

LonFormat="">0.0

0</UCPTcompValue>

<Rule>
<UCPTindex>0</UCPTindex>
<UCPTinputPath>DataPointFormat[UCPTnickName="nviSwitch"]</UCPTinputPath>
<UCPToutputPath>DataPointFormat[UCPTnickName="nvoHVACmode"]</UCPToutputPath>
<UCPTcompFunction

LonFormat="UCPTcompFunction">FN_NUL</UCPTcompFunction>

<UCPTmultiplier>0</UCPTmultiplier>
<UCPTconstant

LonFormat="">HVAC_OFF</UCPTconstant>

</Rule>
</Case>
</Item>
</iLonItem>
</Set>

Response

<SetResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem >

<UCPTfaultCount>0</UCPTfaultCount>

<Item>

<UCPTname>My Custom Rule: SNVT_switch to SNVT_hvac_mode</UCPTname>

</Item>
</iLonItem>
</SetResponse>

13.3.4

Using the Delete Function on a Type Translator Rule

You can use the Delete function to delete a Type Translator Rule. To delete a Type Translator Rule,
you provide an <Item> element with a UFPTtypeTranslator_Rule_Cfg type that includes the
<UCPTname> property of the type translator rule to be deleted. The following code sample
demonstrates how to use the Delete function to delete a Type Translator Rule:

Request

<Delete xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item

xsi:type="UFPTtypeTranslator_Rule_Cfg">

<UCPTname>My Custom Rule: SNVT_switch to SNVT_hvac_mode</UCPTname>

</Item>

</iLonItem>
</Delete>

Response

<DeleteResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem >

<UCPTfaultCount>0</UCPTfaultCount>

<Item>

<UCPTname>My Custom Rule: SNVT_switch to SNVT_hvac_mode</UCPTname>

</Item>
</iLonItem>
</DeleteResponse>

Advertising