Typetranslatorruleget, Typetranslatorruleget -5, 2 typetranslatorruleget – Echelon i.LON 100 e2 Internet Server User Manual
Page 198

i.
LON 100 Internet Server Programmer’s Reference
13-5
</iLONTypeTranslatorRule>
13.2.1.2 TypeTranslatorRuleGet
You can use the TypeTranslatorGet function to return the configuration of any Type
Translator Rule that you have added to the
i.
LON 100. You must reference the Type
Translator Rule whose configuration is to be returned by its index number in the <Data>
parameter you supply to the function, as in the example below.
<Data>
Parameter
<Data>
<iLONTypeTranslatorRule>
<TypeTranslatorRule>
<UCPTindex>10</UCPTindex>
</TypeTranslatorRule>
</Data>
<Result>
Parameter
<Result>
<iLONTypeTranslatorRule>
<TypeTranslatorRule>
<UCPTindex>10</UCPTindex>
<UCPTlastUpdate>2004-05-26T01:10:35Z
</UCPTlastUpdate>
<UCPTdescription>Adds five degrees to the temperature</UCPTdescription>
<UCPTtranslatorRule>temp_add05</UCPTtranslatorRule>
<InDataPoint>
<UCPTindex>0</UCPTindex>
<UCPTformatDescription>SNVT_temp_f</UCPTformatDescription>
</InDataPoint>
<OutDataPoint>
<UCPTindex>0</UCPTindex>
<UCPTformatDescription>SNVT_temp_f</UCPTformatDescription>
</OutDataPoint>
<Case>
<UCPTindex>0</UCPTindex>
<UCPTfieldNameIn></UCPTfieldNameIn>
<UCPTindexIn>0</UCPTindexIn>
<UCPTcompFunction>FN_NUL</UCPTcompFunction>
<UCPTcompValue>0</UCPTcompValue>
<Rule>
<UCPTindex>0</UCPTindex>
<UCPTindexIn>0</UCPTindexIn>
<UCPTfieldNameIn></UCPTfieldNameIn>
<UCPTindexOut>0</UCPTindexOut>
<UCPTfieldNameOut></UCPTfieldNameOut>
<UCPTcompFunction>FN_NUL</UCPTcompFunction>
<UCPTcompValue>0</UCPTcompValue>
<UCPTmultiplie
1</UCPTmultiplier>
r>
<UCPTconstant>5.0</UCPTconstant>
</Rule>
</Case>
</TypeTranslatorRule>
</iLONTypeTranslatorRule>
</Result>
The function returns one <Rule> element for each Type Translator Rule referenced in the
<Data> parameter you supplied to the function. The properties and elements contained
within each <Rule> element are defined when the Type Translator Rule is created. You can
write to them using the TypeTranslatorRuleSet function. Table 70 describes these properties.