Siemens SINUMERIK 840D sl Commissioning Manual page 713

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

6.3.6
Exist Program file function (EP)
Description
The EP (Exist Program) function checks whether a particular NC program is stored on the
specified path in the NC or HMI file system.
Programming
Syntax:
Description:
Parameters:
Return value:
The EP function can handle the new syntax and the old logic (with adapted Syntax).
The file is directly addressed using a qualifying name:
//NC/MPF.DIR/XYZ.MPF
or
CF_CARD: /MPF.DIR/XYZ.MPF
or
LOC:
New syntax:
EP("//NC/MPF.DIR/XYZ.MPF ", VAR1)
EP("CF_CARD:/MPF.DIR/XYZ.MPF ", VAR1)
EP("LOC:/MPF.DIR/XYZ.MPF ", VAR1)
; with return value:
; VAR1 = 0
; VAR1 = 1
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
("File
EP
Checks the existence of the NC program
File
Name of a variable to which the result of the scan should be assigned.
(corresponds to CF_CARD)
")
Complete path to the file in the NC or HMI file system
The result of the scan can be:
M = file is located in the HMI file system.
N = file is located in the NC file system.
Empty string = the file neither exists on the HMI nor on the
NC
(points to /user/sinumerik/data/prog)
File exists.
File does not exist.
Programming commands
6.3 Functions
95

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents