Filecopy - Siemens SINUMERIK 840D sl Operating Manual

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

Advertisement

4.6.9.2

FileCopy

FileCopy(<area>, "<sourcepath>", <area>, "<destinationpath>")
The FileCopy() function copies a file cross-area from a source to a target.
The function can generally be called in all dialog scripts, step scripts, action scripts and
manipulation tasks.
The areas for the source and target are specified via the <area> argument.
The following values are permitted for the <area> areas:
● 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.
● PCU – for the PCU file system
The path specification is absolute, starting with the drive letter.
The <sourcepath> argument specifies the source path of the file to be copied. The
<destinationpath> argument specifies the target path of the file.
The paths always contain the storage location and the file name. If the file to be copied already
exists in the target, it will be overwritten without a prompt.
If the package runs on the NCU, copying to the PCU via <area> PCU is not possible.
Example 1 of FileCopy
FileCopy(RTS, ".\Test.txt", NCU, "/user/Test_NCU.txt")
Example 2 of FileCopy
Version files of the NCU are stored in the CF card folder next to the package.
Up.cf = "./CF-" << Up.$Env.CFID << "/"
FileCopy(NCU, "/user/system/etc/hwversions.xml", RTS, "$
(Up.cf)hwversions.xml")
FileCopy(NCU, "/siemens/versions.xml", RTS, "$
(Up.cf)siemens_versions.xml")
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE
Create MyConfig - Expert
4.6 Script language
295

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents