3 snvt_lev_disc_to_snvt_switch – Echelon i.LON SmartServer 2.0 User Manual
Page 180

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
xsi:type="UFPTtypeTranslator_Cfg"> App/Type Translator[0] dpType="Input"> App/VirtFb/nvilevDisc dpType="Output"> App/VirtFb/nvoOccupancy
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
have a “Dp Type” attribute of “Input”. The input data point referenced by
have a
• The SNVT_switch output data point is defined by a
Type” attribute of “Output”. The output data point referenced by
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)