12 type translator, 1 overview of the type translator xml file, Type translator -1 – Echelon i.LON SmartServer 2.0 User Manual
Page 173: Overview of the type translator xml file -1, Overview of the type translator xml file

i.LON SmartServer 2.0 Programmer’s Reference
12-1
12
Type Translator
You can use Type Translators to convert data points from one network variable type to another. This
may be useful when comparing data points from different vendors that use different types, and are not
compatible with each other.
When creating a Type Translator, you will choose a Type Translator Rule. The Type Translator Rule
defines the network variable type of the data points the Type Translator will accept as input, and the
network variable type it will convert these data points to. The Type Translator Rule defines the scaling
factors, case structures for handling enumerations and fields within structures, and offsets that will be
used to determine the value to assign the output data point.
The SmartServer software includes nine pre-defined Type Translator Rules. Each one is described
later in this chapter. It is also possible to perform translations without using a Type Translator Rule.
This is possible when converting data from one scalar type to another when no offset or multipliers are
required, or when converting one type to another with the same format description.
You can convert multiple input data points to a single output data point type, or you can convert a
single input data point to multiple output data points of different types using Type Translators.
You can optionally create your own Type Translator Rules, or modify the Type Translator Rules
provided with the SmartServer software, with the TypeTranslator_Rule SOAP functions. For more
information on creating Type Translator Rules, or on modifying the Type Translator Rules provided
with the SmartServer software, see Chapter 13, Type Translator Rules.
12.1
Overview of the Type Translator XML File
The #8000010128000000[4].UFPTtypeTranslator.xml file stores the configuration of all Type
Translators you have added to the SmartServer. You can create new Schedulers using the Set function,
or by manually editing the #8000010128000000[4].UFPTtypeTranslator.xml file, and rebooting the
SmartServer.
You can create up to 40 Type Translators per SmartServer. You can add more than 40 Type
Translators if you load the dynamic v40 XIF on your SmartServer and you operate your SmartServer
in Standalone mode. Note that using the v40 XIF with the SmartServer operating in LNS mode (LNS
Auto or LNS Manual) is not supported.
The following represents a sample #8000010128000000[4].UFPTtypeTranslator.xml file for a
SmartServer with one Type Translator that translates a SNVT_temp data point to a SNVT_temp_p
data point.
App/Type
Translator[0]
App/VirtFb/temp_thermostat
App/VirtFb/temp_chiller