<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
...
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Result variable to which the result of the check is assigned.
Type.
BOOL
Value:
TRUE
File exists
FALSE
File does not exist
Flexible NC programming
1.21 Check for presence of file (ISFILE)
Comment
; Definition of result variables.
Comment
; Definition of result variables.
153