beautypg.com

Echelon i.LON 100 e2 Internet Server User Manual

Page 201

background image

If the result of the operation is True, each of the case rules defined for the case structure will

be used. If the result is False, the case rules will not be used. These comparisons are meant
to give you flexibility when setting up your case structures.
For example, consider a case where the input data point for a Type Translator Rule uses the

format type SNVT_occupancy. You could set up one case structure to be used when the data
point is set to OC_OCCUPIED. You could set up another case structure to be used when the

data point is set to OC_UNOCCUPIED. Each structure could have a different set of case
rules that will be used to assign the output data point, or data points, a different value.

Table 71 describes the global elements you will fill in to define the comparison that will be

performed. These elements must be inserted at the top of the case structure, before the

elements.

Table 71 Case Structure Global Properties

NOTE: If none of the case structures for a Type Translator Rule evaluate to True, the data

point will be updated during the translation. However, its value will not change.

Property Description


The index number of the case structure.

If the input data point to be used in the comparison for this case

structure is a structure, enter the name of the field whose value
is to be used in the comparison. Leave this property empty if the

input data point is not a structure.

The index number of the input data point whose value you want

to be used in the comparison, as defined within the
elements of the Type Translator Rule.

Select a comparison function (UCPTcompFunction) and compare
value (UCPTcompValue) for the case element. Table 72 lists and

describes the comparison functions that can be used to fill in the

property.

For more information information on case rules, see Case Rules
on page 13-9.

Table 72 lists and describes the comparison functions that can be used to fill in the
property. Each function must be referenced by the identifier string

listed in the table.

Table 72 Comparison Function Identifiers

Description

FN_GT

Greater than. Returns True if the value of the input data point is greater than that
of the compare data point.

The value of the input data point, or input data point field,

selected for the case structrure will be compared to the compare

value using the selected comparison function. If the result of this
comparison is True, the case rules defined for the case structure

will be used.

Identifier

i.

LON 100 Internet Server Program

13-8

mer’s Reference