Basic Principles of Serial Data Transmission
2.7 Parameterization Data
PtP coupling and configuration of CP 340
80 Manual, 04/2011, A5E00369892-03
Display type Associated data type Default display Width of the default
display
Description
Y
(3)
DATE_AND_TIME_
OF_DAY, DT
10.06.1992
–15:42:59.723
25 Date and time of day
Z TIME_OF_DAY
DWORD
15:42:59.723 12 Time of day
(1)
If there is no message text number or system time in these display types, 6 * characters appear in the printout instead
(the CP 340 does not keep the time). %N is the only conversion statement which cannot be used in message texts.
(2)
The P display type is only permitted in the format string. P is not permitted in configurable message texts.
(3)
The current time and date must be read first by means of the SFC 1 "READ_CLOCK" system function and stored in the
user memory (bit memory, data).
Output by means of message text number (%N)
Use the N display type to start printing message texts stored on the CP 340. The conversion
statement variable contains the number of the message text.
Example: The pressure in the chamber "is falling"
Format string = %N %S
Variable 1 = 17 (message text no. 17: The pressure in the chamber ...)
Variable 2 = Reference to string (string variable: ... is falling)
Note
Within a message text, all conversion statements except for %N and all control instructions
except for "\F" and "\x" are allowed! An explicit width setting of %N limits the printed length of
the referenced message text to the width indicated.