SMC_NC_FindProgramFile (FUN)¶
FUNCTION SMC_NC_FindProgramFile : SMC_ERROR
For a given CNC sub program name, such as ‘SUB’, looks for the corresponding CNC file ‘sub.cnc’ in one of the subdirectories (aSubProgramDirs).
- InOut:
- Scope - Name - Type - Comment - Return - SMC_NC_FindProgramFile- SMC_ERROR- Input - strProgramName- STRING- The CNC sub program name. Case does not matter. - Inout - strFilePath- STRING(255)- Out: On success, the full path of the cnc file containing the sub program. - Inout Const - aSubProgramDirs- ARRAY [0..4] OF STRING(174) - An array of up to 5 directories where subprograms are searched. For a subprogram with name “SUB”, the file “sub.cnc” (lower-case) is searched in each of the given directories, starting with directory aSubProgramDirs[0], in ascending order. The first match is used. The first empty directory name ends the search. 
