1 creating a case structure – Echelon i.LON 100 e2 Internet Server User Manual

Page 200

Advertising
background image

i.

LON 100 Internet Server Programmer’s Reference

13-7

Property Description

<InDataPoint>

You can define the network variable types a Type Translator Rule accepts as

input with a series of <InDataPoint> elements. Each <InDataPoint> element

must contain two properties: <UCPTindex> and <UCPTformatDescription>.

Use the <UCPTformatDescription> property to define the network variable type.

Use the <UCPTindex> to assign that type an index number to be used within

the Type Translator Rule.

When you create a Type Translator to use a rule, you will define an input data

point, or a group of input data points, and assign each data point an index
number. The <UCPTformatDescription> of each data point must match the

<UCPTformatDescription> of the <InDataPoint> element using the same index

number within the Type Translator Rule. Otherwise, an error may occur during
translation.

<OutDataPoint>

You can define the network variable types a Type Translator Rule will translate
its input to with a series of <OutDataPoint> elements. Each <OutDataPoint>

element must contain two properties: <UCPTindex> and

<UCPTformatDescription>.

Use the <UCPTformatDescription> property to define the network variable type.

Use the <UCPTindex> to assign that type an index number to be used within

the Type Translator Rule.

When you create a Type Translator that uses a rule, you will define an output

data point, or a group of output data points, and assign each data point an index
number. The <UCPTformatDescription> of each data point must match the

<UCPTformatDescription> of the <InDataPoint> element using the same index

number within the Type Translator Rule. Otherwise, an error may occur during
translation.

<Case>

The input and output network variable types for a Type Translator Rule are
defined by a series of <InDataPoint> and <OutDataPoint> elements. You can

create case structures to determine the values that will be assigned to the

output data points when translations are made. This may be useful when
converting scalar values to enumerations, and vice versa. The case structures for

a Type Translator Rule are defined by a list of <Case> elements.
For more information on case structures, see the next section, Creating a Case
Structure
.

13.2.1.2.1

Creating a Case Structure

You can create case structures for each Type Translator Rule that define the set of
operations that will be performed when a Type Translator using that rule makes a

translation. Each case structure includes several global elements, and a series of case rules.

The case rules are signified by a list of <Rule> elements. You can use these rules to establish
the value that will be assigned to the data point that the Type Translator Rule generates as

output.
Before the operations defined by the case rules are performed, the Type Translator Rule will
use its global elements to compare the value of an input data point (and field, where

applicable) to a value of your choice. You will select a comparison function with which the

comparison is to be made.

Advertising