Generating user dialogs
1.10 Predefined functions
Function name
Exist
NC program selection
120
Description
If the file exists, the function returns the value 1.
The file name should be written in lowercase letters.
Files in other directories are accessed via a relative path that uses the
appl or dvm directory as a starting point.
Parameter:
progname - file name
Syntax:
<function name="doc.exist" return="<int_var>" >
progname </function>
Example:
<let name ="exist">0</let>
NC file system
<function name="doc.exist" return="exist">_T"n:\mpf
\test.mpf" </function>
CompactFlash card
<function name="doc.exist" return="exist">_T"f:
\appl\test.mpf" </function>
or
<function name="doc.exist" return="exist">_T".
\test.mpf" </function>
The function selects the program specified for execution. The program
must be stored in the NC file system.
Parameter:
progname - file name
Syntax:
<function name="ncfunc.select"> progname </
function>
Example:
NC file system
<function name="ncfunc.select"> _T"n:\mpf
\test.mpf" </function>
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Easy XML