beautypg.com

5 snvt_scene_to_snvt_setting – Echelon i.LON SmartServer 2.0 User Manual

Page 182

background image

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
:



xsi:type="UFPTtypeTranslator_Cfg">

Net/LON/iLON

App/Type

Translator[5]

dpType="Input">

Net/LON/iLON

App/VirtFb/nviOccupancy_1

#0000000000000000[0].SNVT_occupancy
Input0

dpType="Output">

Net/LON/iLON

App/VirtFb/nvoSetting_1

#0000000000000000[0].SNVT_setting
Output0

SNVT_occupancy_TO_SNVT_setting
0


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 element that has a “Dp

Type” attribute of “Input”. The input data point referenced by must have a
property of #0000000000000000[0]. SNVT_scene and a
property of Input0.

• The SNVT_setting output data point to be translated is defined by a element that

have a “Dp Type” attribute of “Output”. The output data point referenced by must
have a of #0000000000000000[0]. SNVT_setting and a
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