Siemens SINUMERIK 828D Programming Manual page 142

Hide thumbs Also See for SINUMERIK 828D:
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
...
142
:
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, 07/2010, 6FC5398-2BP40-0BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents