Flexible NC programming1.19 Delete file (DELETE)Job PlanningProgramming Manual, 03/2013, 6FC5398-2BP40-3BA1 145Name of the file to be deletedType: STRING name>:The following points should be noted when specifying the file name: The specified file name must not contain any blank spaces or controlcharacters (characters with ASCII code ≤ 32), otherwise the DELETEcommand will be canceled with error code 1 "Path not allowed". The file name can be specified with path data and file identifier.– Path dataPath data must be absolute, i.e. start with "/".If a path is not specified, the file is searched for in the currentdirectory (= directory of selected program).– File identifierIf the file name does not contain a domain identifier ("_N_"), it isadded accordingly.If the fourth-last character of the file name is an underscore "_",the next three characters will be interpreted as the file identifier. Inorder to be able to use the same file name for all file commands,e.g. via a STRING type variable, only the _SPF and _MPF fileidentifiers may be used.If there is no "_MPF" or "_SPF" identifier, the file name isautomatically completed with _MPF. The file name length can be up to 32 bytes, the path length up to 128bytes.Example:"PROTFILE""_N_PROTFILE""_N_PROTFILE_MPF""/_N_MPF_DIR_/_N_PROTFILE_MPF/"ExampleProgram code CommentN10 DEF INT ERROR ; Definition of errorvariables.N15 STOPRE ; Preprocessing stop.N20 DELETE(ERROR,"/_N_SPF_DIR/_N_TEST1_SPF") ; Deletes file TEST1 in thesubprogram directory.N30 IF ERROR ; Error evaluation.N40 MSG("error for DELETE command:" <N50 M0N60 ENDIF