Technical data

Table Of Contents
S7 Communication
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
21-31
Element of a
Conversion Instruction
Meaning
Flags
None: right-justified output
-: left-justified output
Width
None: output in standard representation
n: exactly n characters are output. If the output is right-
justified, this may be preceded by blanks, with left-
justified output the blanks come after the characters.
Precision The precision is only relevant for representations A, D, F and R (see
following table).
None: output in standard representation
0: no output of the decimal point or decimal places in
the F and R representations
n: - with F and R: output of the decimal point and
n decimal places
- with A and D (date): number of digits for the year:
possible values 2 and 4.
Representation The following table contains:
The possible representations
The data types possible for each representation
The standard format for each representation(the printout is in the
standard representation if no width and no precision are specified in the
FORMAT parameter) and their maximum length
The following table shows possible modes of representation in the conversion
instruction of the FORMAT parameter.
Representation
Possible Data
Types
Example
Length
Comments
A, a DATE 25.07.1996 10 -
DWORD
C, c CHAR K 1 -
BYTE M 1
WORD KL 2
DWORD KLMN 4
ARRAY of CHAR KLMNOP Number of characters
ARRAY of BYTE
D, d DATE 1996-07-25 10 -
DWORD
F, f REAL 0.345678 8 -
DWORD
H, h All data types incl.
ARRAY of BYTE
Depending on data
type
Depending on data
type
Hexadecimal
representation
I, i INT - 32 768 max. 6 -