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. |
You can register up to 1024 converters.
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) |
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
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] |
|
||||||||
When the value of the variable (numeric) is greater than "2", the value will be converted to a numeric value "0". |
[Numeric] | [Numeric] |
|
||||||||
When the value of the variable (string) equal to the text "END", the value will be converted to a string "OK". |
[String] | [String] |
|
||||||||
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] |
|
||||||||
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] |
|
||||||||
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] |
|
||||||||
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
|
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.
(Example)
[Expression]: [FromData] + Var1.Value* 10
Value: [FromData] = 5, Var1.Value = 10
Result: 105