Exists - Siemens SINUMERIK 840D sl Operating Manual

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

Advertisement

4.6.10.10

Exists

Exists(<area>, "<path>")
The Exists function is used to check whether a folder or a file exists.
The Exists function provides the value "true" if the folder or the file "path" with the absolute
path exists in the "area" area.
Only absolute paths are permitted. Relative paths cause errors in the verification run.
The use of environment variables is possible and permitted.
Note
Observe uppercase/lowercase
Uppercase/lowercase in the path must be observed on the NCU under Linux. Also observe
that only those areas which have also been activated in the project folder when the package
was configured can be addressed.
The following values are permitted for "area":
● NCU - for checking on the file system of the NCU (the CompactFlash Card /card/)
Example: EXISTS(NCU, "/siemens/versions.xml").
● PCU - for checking on the hard disk of the PCU 50.
The path must begin with the drive letter, e.g. "D:\" or "D$\".
Example: EXISTS(PCU, "F:\DH")
● ARC - for checking in the archive image.
The path must begin with NC\, MMC\, PLC\, CP\ or DRV\.
Example: Exists(ARC, "NC\CST.DIR\Test.SPF")
● RTS - for checking on the RunTimeSystem (NCU, PCU, PC) on which the package is
processed.
Examples:
Exists(RTS,"MyConfig.upcfg");searches the file next to the package.
Exists(RTS,"%UP_PACK%/MyConfig.upcfg") ;path specification with environment
variable under Windows.
Exists(RTS,"$(UP_PACK)/MyConfig.upcfg");path specification with environment
variable under Linux.
Exists(RTS,"$(Up.Pfad)/MyConfig.upcfg") ;path specification via up variable.
Example display of a message
Display of a message if the file "/siemens/versions.xml" has been found on the NCU.
IF EXISTS(NCU, "/siemens/versions.xml")
Msg("The file versions.xml exists on the NCU.")
ENDIF
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD
Create MyConfig - Expert
4.6 Script language
269

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents