Spaceholders For Date And Time Of Day - Siemens SIMATIC S5 CP 523 Manual

Serial i/o module
Hide thumbs Also See for SIMATIC S5 CP 523:
Table of Contents

Advertisement

CP 523
6.4.3

Spaceholders for Date and Time of Day

When printing out a message text the following takes place:
The spaceholder "D" for the date is replaced by the current date.
The spaceholder "T" for the time of day is replaced by the current time.
The output format of the date and the time of day can be configured. You must do this in data
block 1, parameter block 4, on the memory submodule ( 6.3.3).
The following is the default output format:
For the date:<Day>.<Month>.<Year>
For time of day: <Hour>:<Minute>:<Second>
Example:
Configuring message texts with spaceholder for date and time of day
You want to store the following message texts in DB 3:
Message text 7:
The motor went down at <time of day>.
Message text 8:
This is the daily listing for <date>.
Message text 9:
The entire plant in Shop 3 was switched off on <date> at <time of day>.
Entry on the PG 685 for DB 3
:
KS = '7:The motor went down';
:
S = 'at "T"$';
:
KS = '8:This is the daily';
:
S = 'listing for "D".$';
:
KS = '9:The entire plant';
:
S = 'in Shop 3 was switched off';
:
KS = 'on "D" at "T".$';
:
EWA 4NEB 811 6044-02a
Explanation
Message text number 7, separator ":",
with spaceholder for time of day
Message text, end-of-text character
Message text number 8, separator ":",
Message text, spaceholder for date,
end-of-text character
Message text number 9, separator ":",
Message text with spaceholder for date
and time of day
Message text, end-of-text character
Print Mode
6-19

Advertisement

Table of Contents
loading

Table of Contents