Echelon LonPoint Application and Plug-In User Manual

Page 164

Advertising
background image

12-4

Type Translator Functional Block

variable type also controls whether the data in the
mapping table is interpreted as signed or unsigned.

Scaling

Sets scaling for network variable values. The value
read from the input network variable is multiplied by
the Multiply field value and then added to the Add
field value. When an input or output type is changed,
the scaling values revert to their defaults.

Once the network variable types of the input and
output network variables have been set, changing the
type of either of them resets this property to its
defaults. The default for the Add field is 0; the default
for the Multiply field depends on the scaling factors of
the input and output network variable types.

The type translator plug-in does not display any
units. Any values entered must correspond to the
native units of the corresponding network variable
type (normally SI units), if there are any. The Scaling
values are associated with the Data_In network
variable.

Mapping

Maps one value to another value. To use mapping,
you must select the Enabled option. If this option is
selected, each input value (0-15) will be mapped to
the output value in the associated field. If the input
value is outside of the range 0-15, then the mapping
corresponding to the nearest value is used.
Fractional input values will be truncated to compute
the index (i.e. 4.99 will be truncated to 4; if you wish
to have values rounded to the nearest integer value,
use the Scaling option to add .49 to each value). The
map table entries are entered and displayed as signed
byte values (-128 to 127). However, if the Signed
setting of Data Output is cleared, these values will be
interpreted as unsigned byte values (0 to 255), so the
values –128 to –1 internally map to the values 128 to
255.

Once the network variable types of the input and
output network variables have been set, changing the
type of either of them disables mapping.

The type translator plug-in does not display any
units. Any values entered must correspond to the
native units of the corresponding network variable
type (normally SI units), if there are any. The
Mapping values are associated with the Data_Out
network variable

Set Default

When this option is set, Scaling and Mapping
values are automatically selected to convert the
Data_In

network variable type to the Data_Out

network variable type. This is done automatically
every time you change a type, so normally you will

Advertising