Technical data

Configuring Messages
16.4 Tips for Editing Messages
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 363
Format Code
These codes specify the output format for the associated value on the display device. A format
instruction is introduced by a "%" sign. For message texts, there are the following fixed message
codes:
Format Code Description
%[i]X Hex value with i index
%[i]u Unsigned decimal value
with i index
%[i]d Signed decimal value
with i index
%[i]b Binary value with i index
%[i][.y]f Integer (fixed-point no.)
Signed value with the format
[ - ]dddd.dddd
dddd
: one or more digits with y places after the
decimal point and i total places
%[i]s Character string (ANSI string) with i places
Characters are printed to the first 0 byte (00hex).
%t#<name of the text library> Access to text library.
If the format code is too small, the value is still output in its full length.
If the format code is too large, an appropriate number of blanks are output before the value.
Note
Note that you can also optionally specify the "[i]", in which case you must leave out the brackets when
you enter this parameter.