Technical data

SINAUT TD7 software package for the CPU
2.5 Data point typicals
Software
222 System Manual, 07/2009, C79000-G8976-C222-07
Notes on the SINAUT Time stamp
For many data point typicals you can use the TimeStamp parameter to instruct that the data
object should be transferred with a time stamp. However for the data point typicals used to
receive this data there is no output parameter with which to output the received time stamp.
The time stamp is only saved in the instance DB which you have specified when calling the
respective receive typical. This occurs in two data double words that always have the same
name in all instance DBs (SINAUT object DB), namely:
Name of the double word Contents
RecTimeStamp_1 Year, month, day and hour
RecTimeStamp_2 Minute, second, millisecond and time status
The date and time of day is coded in BCD format (exception: the half byte with the time
status). The exact byte-for-byte content appears as follows:
Contents Name of the double
word
Byte no.
High nibble Low nibble
0 Year * 10 Year * 1
1 Month * 10 Month * 1
2 Day * 10 Day * 1
RecTimeStamp_1
3 Hour * 10 Hour * 1
0 Minute * 10 Minute * 1
1 Second * 10 Second * 1
2 Millisecond * 100 Millisecond * 10
RecTimeStamp_2
3 Millisecond * 1 Time status
The content of the half byte with the time status bit::
Bit place Value Meaning
0 Time is invalid 2
0
1 Time is valid
0 Standard time 2
1
1 Daylight saving time
2
2
Not used
2
3
Not used
The time double words occupy different addresses depending on the typical. Look in the
instance DB or in the declaration header of the FB to find the absolute address of both
double words. It is more convenient to give the instance DBs symbolic names. You can then
use the symbolic addresses to read out the information. In this case, you do not need to
worry about the actual absolute addresses. These are used automatically by STEP 7. The
following example clarifies this procedure.
Example
Symbolic name of instance DB: ObjectDB27