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