Siemens SINUMERIK 840D sl Programming Manual page 158

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.21 Check for presence of file (ISFILE)
<result>:
Example
Program code
N10 DEF BOOL RESULT
N20 RESULT=ISFILE("TESTFILE")
N30 IF(RESULT==FALSE)
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...
or:
Program code
N10 DEF BOOL RESULT
N20 RESULT=ISFILE("TESTFILE")
N30 IF(NOT ISFILE("TESTFILE"))
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...
158
Result variable to which the result of the check is assigned.
Type.
BOOL
Value:
TRUE
FALSE
File exists
File does not exist
Comment
; Definition of result variables.
Comment
; Definition of result variables.
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents