beautypg.com

Typetranslatorruleset, Typetranslatorruleset -12, 3 typetranslatorruleset – Echelon i.LON 100 e2 Internet Server User Manual

Page 205

background image

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.

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.


Converts SNVT_lev_disc to SNVT_occupancy

0
SNVT_lev_disc

0
SNVT_occupancy


Parameter

SNVT_lev_disc_TO_SNVT_occupancy

0

0
FN_NUL

0

0
0

0

FN_EQ
ST_NUL
0
OC_NUL

1
0

0

FN_EQ

on>

ST_OFF

13-12