System information

Table Of Contents
i.LON SmartServer 2.0 Programmer’s Reference
12-8
Each time a type translation is made, the SNVT_occupancy output data point is assigned a value
based on the current enumeration stored in the SNVT_lev_desc input data point, as described in the
following table:
SNVT_lev_desc (input point) SNVT_occupancy (ouput point)
ST_NUL OC_NUL
ST_OFF OC_UNOCCUPIED
ST_ON OC_OCCUPIED
ST_HIGH OC_BYPASS
ST_LOW or ST_MED OC_STANDBY
The following code demonstrates how to use the Set function to create a type translator that uses this
<UCPTtranslatorRule>:
<Set xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item xsi:type="UFPTtypeTranslator_Cfg">
<UCPTname>Net/LON/iLON App/Type Translator[0]</UCPTname>
<DataPoint dpType="Input">
<UCPTname>Net/LON/iLON App/VirtFb/nvilevDisc</UCPTname>
<UCPTformatDescription>#0000000000000000[0].SNVT_lev_disc</UCPTformatDescription>
<UCPTnickName>Input0</UCPTnickName>
</DataPoint>
<DataPoint dpType="Output">
<UCPTname>Net/LON/iLON App/VirtFb/nvoOccupancy</UCPTname>
<UCPTformatDescription>#0000000000000000[0].SNVT_occupancy</UCPTformatDescription>
<UCPTnickName>Output0</UCPTnickName>
</DataPoint>
<UCPTtranslatorRule>SNVT_lev_disc_TO_SNVT_occupancy</UCPTtranslatorRule>
<SCPTdelayTime>0</SCPTdelayTime>
</Item>
</iLonItem>
</Set>
12.3.4.3 SNVT_lev_disc_TO_SNVT_switch
You can use this Type Translator Rule to translate an input data point of type SNVT_lev_disc to an
output data point of type SNVT_switch.
The SNVT_lev_disc input data point to be translated is defined by a <DataPoint> element that
have a “Dp Type” attribute of “Input”. The input data point referenced by <UCPTname> must
have a <UCPTformatDescription> of #0000000000000000[0]. SNVT_lev_disc and a
<UCPTnickName> of Input0.
The SNVT_switch output data point is defined by a <DataPointFormat> element that has a “Dp
Type” attribute of “Output”. The output data point referenced by <UCPTname> must have a
<UCPTformatDescription> property of #0000000000000000[0]. SNVT_switch and a
<UCPTnickName> property of Output0.
Each time a type translation is made, the SNVT_switch output data point is assigned a value and state
based on the current enumeration stored in the SNVT_lev_desc input data point, as described in the
following table:
SNVT_lev_desc (input point) SNVT_switch (ouput point)
ST_NUL OFF
ST_OFF value: 0.0
state: 0 (OFF)
ST_ON value: 100.0
state: 1 (ON)