Engineering unit converter

Function

Linearly converts raw data values into scaled values based on a range of customizable values.

Properties

Properties

Description

Raw min

The minimum value that the raw data can have

Raw max

The maximum value that the raw data can have

Scaled min

The minimum value that the converted value can have

Scaled max

The maximum value that the converted value can have

Mode

  • Read: read (link from source to parent)

  • Write: write (link from parent to source)

  • Read/write: read and write (link from parent to source and vice versa)

Setting Raw min and Raw max

Usually, the input of an engineering unit converter is a dynamic link to an analog variable. Below is a list of the possible settings for Raw min and Raw max.

If…

Then the converter…

And…

Raw min and Raw max are not specified

this assumes there is an analog variable set in input via a dynamic link

Raw min and Raw max are set to Low limit and High limit of the input analog variable respectively.

Raw min and Raw max are set

this considers Raw min and Raw max

this ignores any Low limit and High limit values of the analog variable in input.

if only one of Raw min or Raw max is set

this assumes there is an analog variable in input set via a dynamic link. Ignores Raw min and Raw max

Raw min and Raw max are set to Low limit and High limit of the input analog variable respectively.

Important

if Raw min and Raw max are not specified and no dynamic link has been set for the input variable, the converter will not operate as its configuration is incomplete.

Source

A variable that contains a raw value to be converted.

Output

A scaled value based on the configured linear conversion.

Logical representation

The following image illustrates an example of a logical conversion in the advanced dynamic link editor.

../../_images/de14a0f1eb9d7b672cf0f74e572507cd61afc49b.png

See also

Related concepts

Converters

Related procedures

Using the Advanced Dynamic Link Editor