
40 - 40 021537/06/10
7.4.5.6 Data formats
As already described under Available measured values and data formats, every data value is derived from a
specific type. To indicate this the types each have their own formatting definition. The formatting string is
specified after the measured value number on inputting, with the formatting string and measured value
number being separated here by a comma.
Example:
The command
00UTHello World @12,8,2,1@\0d<cr> <cr> stands for Carriage return (Enter key)
defines output of the text 'Hello World', followed by the virtual temperature (formatted: 8 characters in total, 2
characters after the comma, with sign) and one line feed.
7.4.5.6.1 Output of fixed texts
The ULTRASONIC is equipped with an internal data format TEXT that is the simplest and at the same time
most universal data format. It is used to output fixed text within the telegram output. This data format requires
no further formatting characters. For example, the command
00UTHello World\0d<cr>
defines the output telegram
Hello World
Within this data type all ASCII characters are available via the key character '\' . It must
nevertheless be borne in mind that the ASCII code is specified with 2 characters in the
hexadecimal format. The input
00UT\41
thus generates an A in the output. The key character \ was introduced in order to include a control
character like STX, ETX, CR in a telegram. The input
00UA\0d
attaches a line feed to the telegram.
A constant text can be positioned anywhere in the telegram definition (it should of course not
interrupt the formatting of another data type). For example, the following definition is conceivable:
00UTWV = @8,6,2@ WD = @9,3@\0d<cr> <cr> stands for Carriage return (Enter key)
The following output string is conceivable:
WV = 000.06 WD = 210