# Types of Converters

You can convert the value of property by using below features.

Type | Description
Unit | Convert the value of property according to set unit.
Scale | Convert the value of property according to set input and output ranges.
Range | Outputs the specified value of a property when the input value falls within the set range.
Expression | Calculates and outputs the value of property according to the set expression.

Note: You can register up to 1024 converters.

## [Unit]

The Unit converter is used to convert one system of units to another.

The following units are supported:

Category | Unit
Temperature | C
F
Length | mm
cm
m
km
in
ft
yd
mi
Weight | mg
g
kg
Oz
Lbs
Area | m2
km2
in2
ft2
yd2
acre
mi2
Pressure | Pa
kPa
MPa
bar
atm
at
Torr
psi
Volume | ml
cl
dl
l
gal (US lqd)
gal (US dry)
gal (UK)
mm3
cm3
m3
km3
cu in
cu ft
ac ft
bu (US)
bu (UK)
fl oz (US)
fl oz (UK)
gi (US)
gi (UK)
pt (US lqd)
pt (US dry)
pt (UK)
qt (US lqd)
qt (US dry)
qt (UK)
bl (US lqd)
bl (US dry)
bl (UK)

## [Scale]

The Scale converter is used to convert the value of property according to the set input and output ranges. The input value refers to the data from the device address. The output value refers to the value displayed on the screen.

(Example)

[Minimum (Source)]: 0

[Maximum (Source)]: 400

[Minimum (Output)]: 0

[Maximum (Output)]: 20

## [Range]

The Range converter is used to output the specified value of property when the input value falls within the set range.

Set the conditional expression ([Range]), and the value to be obtained as output ([Data Type (Result)]).

(Example)

Example | [Data Type (Source)] | [Data Type (Result)] | Setting in [Range]
When the value of the variable (numeric) is greater than or equal to "1", the value will be converted to a boolean value "True". | [Numeric] | [Boolean] |
Property | Value
[Data (Input)] | 1
[Operator] | [>=]
[Data (Output)] | [True]
When the value of the variable (numeric) is greater than "2", the value will be converted to a numeric value "0". | [Numeric] | [Numeric] |
Property | Value
[Data (Input)] | 2
[Operator] | [>]
[Data (Output)] | 0
When the value of the variable (string) equal to the text "END", the value will be converted to a string "OK". | [String] | [String] |
Property | Value
[Data (Input)] | END
[Operator] | [==]
[Data (Output)] | OK
When the value of the variable (boolean) equal to "True", the value will be converted to a date and time "17/08/03". | [Boolean] | [Date/Time] |
Property | Value
[Data (Input)] | [True]
[Operator] | [==]
[Data (Output)] | 17/08/03
When the value of the variable (date and time) is before or equal to "2017/08/09 10:15:20", the value will be converted to a color ID "ID:3". | [Date/Time] | [Color ID] |
Property | Value
[Data (Input)] | 2017/08/09 10:15:20
[Operator] | [<=]
[Data (Output)] | [ID:3]
When the value of the variable (numeric) is less than or equal to "10", the value will be converted to a color code "#FF0000". | [Numeric] | [Color Code] |
Property | Value
[Data (Input)] | 10
[Operator] | [<=]
[Data (Output)] | #FF0000
When the value of the variable (boolean) equal to "True", the value will be converted to a language text "1:Red". | [Boolean] | [Language Text] | Condition: [From] [==] True, [To] 1:Red Value: True
Property | Value
[Data (Input)] | [True]
[Operator] | [==]
[Data (Output)] | [Language Text] [Source Property] : [1:Red]

## Expression

The Expression converter is used to calculate and output the value of property according to the set expression. Expressions can be set in the Expression Editor.

Expression Editor

(Example)

[Expression]: [FromData] + Var1.Value* 10

Value: [FromData] = 5, Var1.Value = 10

Result: 105

Note: [FromData] refers to the source property value. For example, if you associate Var1 with [Current Value] in the Numeric Display, the value of Var1 is assigned to [FromData].