REINHARDT
System- und Messelectronic GmbH
Bergstr. 33 86911 Diessen-Obermühlhausen Postfach 12 41 D-86908 Diessen Tel. 08196 - 934100
MWS_55_e.indb Page 67
geändert am 04.12.2020 von DO
Manual MWS 55 / MWS 88 / MWS 10 and Sensors 55
<!--MWS GET STATION SENSOR x DATA [y] -->
Returns the value of sensor x (1..32 or prefix). If y is not specified, the real value is output, other-
wise the following values:
The output is usually a floating-point number, with the number of decimal places depending on
the sensor configuration, unless explicit formatting overrides them.
(z. B. <!--MWS GET '%.2f' … -->).
Another exception are sensors with time or date (sensor number 64-66), or
<!--...DATA 13 --> oder <!--...DATA 14 -->.
By default, the time is formatted as '% 02d:% 02d:% 02d', the date as '% 02d.% 02d.% 04d', what
is resulting in output "hh: mm: ss" or "dd.mm.yyyy ".
Formatting the output:
For most <!--MWS GET – commands that output numbers, the format can be changed by inser-
ting apostrophes ('..') after GET.
It is crucial whether an integer value or a floating-point number is to be output.
The format specification adheres closely to the PRINTF format string, but this is limited to 18
characters and may be corrected or ignored if errors occur.
Basic structure of the format specifiers:
% Flags Field width . Accuracy . Type variant
y
Output y Output
0
Raw value 1 Real value
2
Attenuated real value 4 Minimum
5
Average 6 Maximum
7
Standard deviation 13 Time/Date minimum
14 Time/Date maximum