beautypg.com

3 snvt_lev_disc_to_snvt_switch – Echelon i.LON SmartServer 2.0 User Manual

Page 180

background image

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">

Net/LON/iLON

App/Type

Translator[0]

dpType="Input">

Net/LON/iLON

App/VirtFb/nvilevDisc

#0000000000000000[0].SNVT_lev_disc
Input0

dpType="Output">

Net/LON/iLON

App/VirtFb/nvoOccupancy

#0000000000000000[0].SNVT_occupancy
Output0

SNVT_lev_disc_TO_SNVT_occupancy
0


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 element that

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

• The SNVT_switch output data point is defined by a element that has a “Dp

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