Typetranslatorset, Typetranslatorset -12, 3 typetranslatorset – Echelon i.LON 100 e2 Internet Server User Manual
Page 192
![background image](/manuals/735745/192/background.png)
12.2.1.3 TypeTranslatorSet
You can use the TypeTranslatorSet function to create new Type Translators, or to overwrite
the configuration of existing Type Translators. The Type Translators to be created or written
to are signified by a list of
properties you must define within each of these elements are the same, whether you are
creating a new Type Translator or modifying an existing Type Translator. The previous
section, TypeTranslatorGet, describes these properties.
NOTE: When modifying an existing Type Translator, any optional properties left out of the
input string will be erased. Old values will not be carried over, so you must fill in every
property when writing to a Type Translator, even if you are not changing all of the values.
When creating or modifying a Type Translator with TypeTranslatorSet, you may want to use
output from TypeTranslatorGet as the basis for your parameter. You would then
only need to modify the values of each property to match the new configuration you want, as
opposed to re-creating an entire string like the one shown below, to generate your input.
The first invocation of the TypeTranslatorSet function will generate the
TypeTranslator.XML file in the /root/config/software directory of your
i.
LON 100, if the file
does not already exist.
i.
LON 100 Internet Server Programmer’s Reference
TypeTranslatorGe
The following uses the TypeTranslatorSet function to create a Type Translator that uses the
Type Translator Rule “SNVT_switch_TO_SNVT_lev_disc” to translate the data point
NVL_nviTTswitch, and store the result of the translation in the data point NVL_nvoLevDisc.
Because the “SNVT_switch_TO_SNVT_lev_disc” rule is being used, NVL_nviTTswitch must
be a SNVT_switch data point and NVL_nvoLevDisc must be a SNVT_lev_disc data point.
The input and output data point types that must be used with the other Type Translator
Rules provided with the
i.
LON 100 software are listed in the previous section,
t.
Parameter
12-12