You can read out the system time with SYSREAD 320 (so the time in seconds from 1970). If you need to convert it into a date let me know
A time inquiry looks like this:
0 BEGIN PGM 8050_en MM
1;log the beginning time of cycle
2 FN 20: WAIT FOR SYNC
3 FN 18: SYSREAD Q77 = ID320
4;============================
5;example for the programm
6;===========================
7;log the end time of cycle
8 FN 20: WAIT FOR SYNC
9 FN 18: SYSREAD Q88 = ID320
10;calculate the difference in seconds
Q99 = Q88 - Q77
11;calculate the difference in minutes
Q98 = Q99 / 60
12;calculate the difference in hours
Q97 = Q99 / 3600
13 END PGM 8050_en MM
If you only want to enter the date into a output text, then that’s really easy
"Date: %2d-%2d-%2d time: %2d:%2d:%2d PGM: %S"
,DAY,MONTH,YEAR4,HOUR,MIN,SEC,CALL_PATH;
Maschine: KERN Pyramid Nano 5x<br />Steuerung: iTNC 530 Softwarestand: 05