Filedelete; Fileexist - Siemens SINUMERIK 840D sl Operating Manual

Integrate create myconfig - diff, expert, topo
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Create MyConfig - Expert
4.6 Script language
4.6.9.3

FileDelete

FileDelete(<area>, "<path>")
The FileDelete() procedure deletes a file in a target area. The procedure can generally
be called in all dialog scripts, step scripts, action scripts and manipulation tasks.
The target area is specified via the <area> argument, whereby the following values are
permitted:
● RTS – for the runtime system (NCU, PCU, PC/PG) on which the package is executed.
The path specification can be relative, starting next to the package, or absolute.
The use of environment variables is possible.
● ARC – for the archive folder (image of the SINUMERIK archive)
The path specification is relative starting with NC, PLC, CP, DRV.
● NCU – for the NCU/PPU file system
The path specification is absolute, starting with "/", and is case-sensitive.
The CF card is addressed via /card/.
● PCU – for the PCU file system
The path specification is absolute, starting with the drive letter, e.g. "D:\" or "D$\".
The <path> argument specifies the path of the file to be deleted and the file name.
If the package runs on the NCU, deletion on the PCU via <area> PCU is not possible.
Example of FileDelete
FileDelete(RTS, ".\Test.txt")
4.6.9.4

FileExist

FileExist(<area>, "<path>")
The FileExist() function checks whether a folder or a file exists.
If the folder or the file with the absolute path <path> exists in the area <area>, the
FileExist() function returns the value "true".
Absolute and relative paths are permitted for the <path> argument. Relative paths refer to
the package location.
The use of environment system variables and package variables is possible and permitted.
Note
Observe case sensitivity
Observe case sensitivity in the path on the NCU/PPU under Linux.
Note that only areas can be addressed that have also been activated in the project folder when
configuring the package.
296
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents