1380 HEIDENHAIN Technical Manual MANUALplus 620
Module 9195 Transfer the real-time clock
The module reads the time of the real-time clock. A double word is returned,
which contains the number of seconds accumulated since 0:00 hours on
January 1, 1970 (UNIX system time).
Call:
CM 9195
PL D <System time>
Number of seconds since 0:00 hours on January 1, 1970.
Module 9055 Convert time (binary) to formatted string
The module provides the date and time (local time) as an ASCII string with
configurable format.
The module converts the binary UNIX system time (number of seconds since
0:00 hours on January 1, 1970) into an ASCII string, taking into account the
time difference between local time and Universal Time (Greenwich time)
defined in MP_offsetToUTC.
Call:
PS B/W/D/K <System time>
Number of seconds since 0:00 hours on January 1, 1970.
PS B/W/D/K <String number for the result>
PS B/W/D/K <Format>
0: DD.MM.YYYY hh:mm:ss
1: D.MM.YYYY h:mm:ss
2: D.MM.YYYY h:mm
3: D.MM.YY h:mm
4: YYYY-MM-DD- hh:mm:ss
5: YYYY-MM-DD- hh:mm
6: YYYY-MM-DD h:mm
7: YY-MM-DD- h:mm
8: DD.MM.YYYY
9: D.MM.YYYY
10: D.MM.YY
11: YYYY-MM-DD
12: YY-MM-DD
13: hh:mm:ss
14: h:mm:ss
15: h:mm
CM 9055
Error recognition:
Marker Value Meaning
NN_GenApiModule
Error
0 String was created
1 Incorrect transfer value