5 snvt_scene_to_snvt_setting – Echelon i.LON SmartServer 2.0 User Manual
Page 182

i.LON SmartServer 2.0 Programmer’s Reference
12-10
OC_BYPASS function:
SET_STATE
setting: 100
rotation: 80.24
OC_STANDBY function:
SET_STATE
setting: 60.2
rotation: -40
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[5]</UCPTname>
<DataPoint
dpType="Input">
<UCPTname>Net/LON/iLON
App/VirtFb/nviOccupancy_1</UCPTname>
<UCPTformatDescription>#0000000000000000[0].SNVT_occupancy</UCPTformatDescription>
<UCPTnickName>Input0</UCPTnickName>
</DataPoint>
<DataPoint
dpType="Output">
<UCPTname>Net/LON/iLON
App/VirtFb/nvoSetting_1</UCPTname>
<UCPTformatDescription>#0000000000000000[0].SNVT_setting</UCPTformatDescription>
<UCPTnickName>Output0</UCPTnickName>
</DataPoint>
<UCPTtranslatorRule>SNVT_occupancy_TO_SNVT_setting</UCPTtranslatorRule>
<SCPTdelayTime>0</SCPTdelayTime>
</Item>
</iLonItem>
</Set>
12.3.4.5 SNVT_scene_TO_SNVT_setting
You can use this Type Translator Rule to translate an input data point of type SNVT_scene to an
output data point of type SNVT_setting.
• The SNVT_scene input data point is defined by a <DataPointFormat> element that has a “Dp
Type” attribute of “Input”. The input data point referenced by <UCPTname> must have a
<UCPTformatDescription> property of #0000000000000000[0]. SNVT_scene and a
<UCPTnickName> property of Input0.
• The SNVT_setting output data point to be translated is defined by a <DataPoint> element that
have a “Dp Type” attribute of “Output”. The output data point referenced by <UCPTname> must
have a <UCPTformatDescription> of #0000000000000000[0]. SNVT_setting and a
<UCPTnickName> of Output0.
Each time a type translation is made, the function, rotation, and setting fields of the SNVT_setting
ouput data point are assigned values based on the current values stored in the scene_function and
scene_number fields of the SNVT_scene input data point, as described in the following table:
SNVT_scene (input point)
SNVT_setting (ouput point)
function: SC_RECALL
scene_number: <= 4
function: SET_STATE (enumerated value is 5)
setting: <=25*scene_number>
rotation: 0
function: SC_RECALL
scene_number: >= 5
function: SET_NUL (enumerated value is -1)
setting: 100
rotation: 0
function: SC_NUL
scene_number: any
function: SET_NUL
setting: 100
rotation: 0