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