Programming
Adding subroutines stored outside the existing NCK file system to the existing NCK file
system.
CALLPATH <path_name>
Parameters
CALLPATH
<path_name>
Note
CALLPATH checks whether the programmed path name really exists. An error aborts
program execution with correction block alarm 14009.
Example
CALLPATH ("/_N_WKS_DIR/_N_MYWPD_WPD")
That sets this search path (position 5 is new):
1. current directory/subroutine identifier
2. current directory/subroutine identifier_SPF
3. current directory/subroutine identifier_MPF
4. /_N_SPF_DIR/subroutine identifier_SPF
5. /_N_WKS_DIR/_N_MYWPD/subroutine identifier_SPF
6. N_CUS_DIR/_N_MYWPD/subroutine identifier_SPF
7. /_N_CMA_DIR/subroutine identifier_SPF
8. /_N_CST_DIR/subroutine identifier_SPF
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Note
CALLPATH can also be programmed in INI files. Then it applies for the duration of
execution of the INI file (WPD INI file or initialization program for NC active data, e.g.
Frames in the 1st channel
again.
2.12 Extend search path for subroutine calls with CALLPATH
Keyword for programmable search path extension. The CALLPATH
command is programmed in a separate parts program line.
Variable or constant of type string. The field contains the
absolute path of a directory beginning with "/" to extend the
search path. The path must be specified complete with
prefixes and suffixes (e.g. /_N_WKS_DIR/_N_WST_WPD). If
<path_name> contains the empty string or if CALLPATH is
called without parameters, the search path statement will be
reset. The maximum path length is 128 bytes.
_
_
N
CH1_UFR_INI). The initialization program is then reset
Subroutines, Macros
2-25