Instruction Manual
13.2.1.3 TypeTranslatorRuleSet  
i.LON 100 Internet Server Programmer’s Reference 
The following example uses the TypeTranslatorRuleSet function to create a Type Translator 
Rule defintion that will convert data points of type SNVT_lev_disc to data points of type 
SNVT_switch. The rule takes a single data point as input, and returns a single data point as 
output. 
 </OutDataPoint> 
Use the TypeTranslatorRuleSet function to create a new Type Translator Rule, or to 
overwrite the configuration of an exisiting Type Translator Rule. Each time you use this 
function to create a new Type Translator Rule, an XML file for that rule will be generated in 
the /root/config/software/TranslatorRules directory of your i.LON 100. Once the file has been 
generated, you can reference the rule when creating a Type Translator, as described in 
Chapter 12. 
The previous section, TypeTranslatorRuleGet, describes the properties and elements you can 
use to define each Type Translator Rule. 
NOTE: Type Translator Rules created with the TypeTranslatorRuleSet function are not 
supported by the i.LON 100 Configuration Software. 
<Data> 
 <iLONTypeTranslatorRule> 
 <UCPTindex></UCPTindex> 
 <UCPTdescription>Converts SNVT_lev_disc to SNVT_occupancy </UCPTdescription> 
 <InDataPoint> 
 <UCPTindex>0</UCPTindex> 
 <UCPTformatDescription>SNVT_lev_disc</UCPTformatDescription> 
 </InDataPoint> 
 <OutDataPoint> 
 <UCPTindex>0</UCPTindex> 
 <UCPTformatDescription>SNVT_occupancy</UCPTformatDescription> 
<Data> 
Parameter 
 <TypeTranslatorRule> 
 <UCPTtranslatorRule>SNVT_lev_disc_TO_SNVT_occupancy</UCPTtranslatorRule> 
 <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_EQ</UCPTcompFunction> 
 <UCPTcompValue>ST_NUL</UCPTcompValue> 
 <UCPTmultiplier>0</UCPTmultiplier> 
 <UCPTconstant>OC_NUL</UCPTconstant> 
 </Rule> 
 <UCPTindex>1</UCPTindex> 
 <UCPTindexIn>0</UCPTindexIn> 
 <UCPTfieldNameIn></UCPTfieldNameIn> 
 <UCPTindexOut>0</UCPTindexOut> 
 <UCPTfieldNameOut></UCPTfieldNameOut> 
 <UCPTcompFuncti FN_EQ</UCPTcompFunction> on>
 <UCPTcompValue>ST_OFF</UCPTcompValue> 
 <Rule> 
13-12 










