EasyManuals Logo
Home>Siemens>Control Unit>SINUMERIK 810D

Siemens SINUMERIK 810D Programming Manual

Siemens SINUMERIK 810D
687 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #80 background imageLoading...
Page #80 background image
Flexible NC programming
1.21 ISFILE: File present in the NCK user memory
Job planning
1-66 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1.21 1.21 ISFILE: File present in the NCK user memory
Function
With the ISFILE command you check whether a file exists in the user memory of the NCK
(passive file system). As a result either TRUE (file exists) or FALSE (file does not exist) is
returned.
Programming
result=ISFILE(STRING[160]file)
Parameters
ISFILE Checks whether the file exists in the NCK user memory.
file Name/path of the file to be read (call-by-value parameter of
type STRING with a max. length of 160 bytes).
The file must be stored in the user memory of the NCK (passive
file system). The file name can be preceded by the domain
identifier _N_. If the domain identifier is missing, it is
added correspondingly.
The file identifier ("_" plus 3 characters), e.g., _SPF) is
optional. If there is no identifier, the file name is
automatically added _MPF.
If there is no path specified in "file", the file is searched
for in the current directory (=directory of selected program).
If a path is specified in "file", it must start with a slash
"/" (absolute path indication).
result Variable for storage of the result of type BOOL (TRUE or
FALSE)
Example
N10 DEF BOOL RESULT
N20 RESULT=ISFILE("TESTFILE")
N30 IF(RESULT==FALSE)
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...
or:
N30 IF(NOT ISFILE("TESTFILE"))
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 810D and is the answer not in the manual?

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals