7 snvt_setting_to_snvt_switch – Echelon i.LON SmartServer 2.0 User Manual
Page 184

i.LON SmartServer 2.0 Programmer’s Reference
12-12
xsi:type="UFPTtypeTranslator_Cfg"> App/Type Translator[7] dpType="Input"> App/VirtFb/nviScene_1 dpType="Output"> App/VirtFb/nvoSwitch_1
12.3.4.7 SNVT_setting_TO_SNVT_switch
You can use this Type Translator Rule to translate an input data point of type SNVT_setting to an
output data point of type SNVT_switch.
• The SNVT_setting input data point is defined by a
Type” attribute of “Input”. The input data point referenced by
• The SNVT_switch output data point to be translated is defined by a
have a “Dp Type” attribute of “Output”. The output data point referenced by
have a
Each time a type translation is made, the value and state fields of the SNVT_switch ouput data point
are assigned values based on the current values stored in the function and setting fields of the
SNVT_setting input data point, as described in the following table:
SNVT_setting (input point)
SNVT_switch (ouput point)
function: SET_STATE
setting: <=100.0
value: 0.0
state: 0 (OFF)
function: SET_STATE
setting: >100.0
value: <=setting>
state: 0 (OFF)
function: SET_NUL
setting: any
value: 0.0
state: 0 (OFF)
The following code demonstrates how to use the Set function to create a type translator that uses this
xsi:type="UFPTtypeTranslator_Cfg"> App/Type Translator[8] dpType="Input"> App/VirtFb/nviSetting_1 dpType="Output"> App/VirtFb/nvoSwitch_1