ASCII format properties:
Format properties
Allowed values
width
Output width. If the resulting value exceeds the width field the
result will not be truncated.
fill
Fill character
precision
Precision is the number of digits behind the decimalseparator.
displayformat
Fixed, scientific
alignment
Left, right
decimalseparator
7-bit characters for e.g. "."
base
Defines if the output should be:
● binary (2)
● octal (8)
● decimal (10)
● hexadecimal (16)
Example of a format configuration of the temperature (id: temp_illu) element.
1. Illumination temperature like this "33,5___":
c000000226{ "layouter": "flexible", "format": { "dataencoding": "ascii" },
"elements": [ { "type": "float32", "id": "temp_illu", "format": { "width": 7,
"precision": 1, "fill": "_",
} ] }
2. Illumination temperature as binary (16-bit integer, 1/10 °C):
c000000194{ "layouter": "flexible", "format": { "dataencoding": "ascii"
}, "elements": [ { "type": "int16", "id": "temp_illu", "format": {
"dataencoding": "binary", "order": "network", "scale": 10 } } ] }
3. Illumination temperature in °F (e.g. "92.3 Fahrenheit" ):
c000000227{ "layouter": "flexible", "format": { "dataencoding": "ascii" },
"elements": [ { "type": "float32", "id": "temp_illu", "format": { "precision":
1, "scale": 1.8, "offset": 32 } }, { "type": "string", "value": " Fahrenheit"
} ] }
"alignment": "left",
Sensor de visión 3D
Default
0
" "
6
Fixed
Right
"."
10
"decimalseparator": "," }
ES
55