Siemens SINUMERIK 840D sl Operating Manual page 297

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

Advertisement

The following values are permitted for <area>:
● NCU - for checking on the file system of the NCU/PPU(the CF-Card/card/)
Example: FileEXIST(NCU, "/siemens/versions.xml").
● PCU - for checking on the hard disk of the PCU 50.
The path must start with the drive letter, e.g. "D:\" or "D$\".
Example: FileEXIST(PCU, "C:\Users")
● ARC - for checking in the archive image.
The path must start with NC\, MMC\, PLC\, CP\ or DRV\.
Example: FileExist(ARC, "NC\CST.DIR\Test.SPF")
● RTS - for checking on the RunTimeSystem (NCU/PPU, PCU, PC) on which the package
is executed.
Examples:
FileExist(RTS,"MyConfig.upcfg") ;searches for the file next to the package.
FileExist(RTS,"%UP_PACK%/MyConfig.upcfg") ;path specification with
environment system variables under Windows; searches for the file next to the package.
FileExist(RTS,"$UP_PACK/MyConfig.upcfg");path specification with
environment system variables under Linux; searches for the file next to the package.
FileExist(RTS,"$(Up.Pfad)/MyConfig.upcfg") ;path specification via script
variable.
FileExist(RTS,"$(Up.$Pack.Dir)/MyConfig.upcfg") ;path specification via
system variable.
Note
Compatibility
The function name has been changed from Exists() to FileExist().
For compatibility reasons, the Exists() function name is still tolerated in this CMC version.
Exists() will no longer be supported in subsequent CMC versions.
Only use the FileExist() function. Change all earlier calls to this new function name.
Call examples
FileExist(NCU, "/siemens/versions.xml") ;searches for the file on the NCU.
FileExist(NCU, "/card/install/arc") ;searches for the folder on the CF card of the
NCU.
FileExist(PCU, "D:\UP") ;searches for the folder on drive D of the PCU.
FileExist(ARC, "NC\CST.DIR\TEST.SPF") ;searches for the file in the archive(image).
FileExist(RTS,"MyConfig.upcfg") ;searches for the file next to the package.
FileExist(RTS,"%UP_PACK%/MyConfig.upcfg") ;path specification with environment
system variables under Windows.
FileExist(RTS,"$(UP_PACK)/MyConfig.upcfg") ;path specification with environment
system variables under Linux.
FileExist(RTS,"$(Up.Pfad)/MyConfig.upcfg") ;path specification via Up variable.
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE
Create MyConfig - Expert
4.6 Script language
297

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents