Code:
The writing of the program works already. I would integrate the current date in the file names.
With that, the files would be arranged and therefore can be deleted manually more easily.
A function that deletes files automatically is not knows to me!
Hello
File or programs CAN be deleted through NC codes.
Sample:
DEF INT ERROR
STOPRE ; forerun stop
DELETE (ERROR,"/_N_WKS_DIR/_N_TEIL1_WPD/_N_PROT_MPF") ; deleted the file PROT.MPF in the program folder with the work piece folder Part 1
IF (ERROR==0)
MSG(" file was deleted ")
M0
ELSE
MSG ("error with DELETE-command:"<<ERROR)
M0
ENDIF
M17
error variable for the return
0: no error
1: path not allowed
2: path not found
3: file not found
4: wrong file type
11: file not used
12: no resources available
20: other error
Kind regards
Anton