Delete: Delete File - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

1.19

DELETE: Delete file

1.19
Function
All files can be deleted by means of the DELETE command, irrespective of whether these
were created using the WRITE command or not. Files that were created using a higher
access authorization can also be deleted with DELETE.
Programming
DELETE(VAR INT error, CHAR[160] filename)
Parameters
DELETE
error
filename
Example
N10 DEF INT ERROR
N15 STOPRE
N20 DELETE (ERROR,
"/_N_SPF_DIR/_N_TEST1_SPF")
N30 IF ERROR
N40 MSG ("Error with DELETE command:"
<<ERROR)
N50 M0
N60 ENDIF
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Delete the specified file.
Error variable for return
0: No error
1: Path not allowed
2: Path not found
3: File not found
4: Incorrect file type
11: File is in use
12: No resources available
20: Other error
Name of the file to be deleted
The file name can be specified with path and file identifier.
Path names must be absolute, that is, start with "/". If the
file name does not contain a domain identifier (_N_), it is
added accordingly. The file identifier ("_" plus 3
characters), e.g., _SPF) is optional. If there is no
identifier, the file name is automatically added _MPF. If
there is no path specified, the file is saved in the current
directory (= directory of selected program). The file name
length can be up to 32 bytes, the path length up to 128 bytes.
Example:
PROTFILE
_N_PROTFILE
_N_PROTFILE_MPF
/_N_MPF_DIR/_N_PROTFILE_MPF/
Flexible NC programming
1.19 DELETE: Delete file
;Preprocessing stop
;deletes file TEST1 in the
;subroutine branch
1-63

Advertisement

Table of Contents
loading

Table of Contents