File and Program Management
3.1 Program memory
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
3-5
Search paths for subroutine call
If the search path is not specified explicitly in the parts program when a subroutine (or
initialization file) is called, the calling program searches in a fixed search path.
Example of subroutine call with absolute path specification:
CALL"/_N_CST_DIR/_N_CYCLE1_SPF"
Programs are usually called without specifying a path:
Example:
CYCLE1
Search path order
1. Current directory /
name
Workpiece directory or
standard directory
_N_MPF_DIR
2. Current directory /
name_SPF
3. Current directory /
name_MPF
4. /_N_SPF_DIR /
name_SPF
Global subroutines
5. /_N_CUS_DIR /
name_SPF
User cycles
6. /_N_CMA_DIR /
name_SPF
Manufacturer cycles
7. /_N_CST_DIR /
name_SPF
Standard cycles
Programming search paths for subroutine call
CALLPATH command
The CALLPATH part program command is used to extend the search path of a subroutine
call.
Example:
CALLPATH ("/_N_WKS_DIR/_N_MYWPD_WPD")
The search path is stored in front of position 5 (user cycle) in accordance with the specified
programming.
For further information about the programmable search path for subroutine calls with
CALLPATH, see section "Extending the search path for subroutine calls with CALLPATH".