Detailed Description 
  2.9 Program control 
Mode Group, Channel, Program Operation, Reset Response (K1) 
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
2-133 
Path compilation 
An external subroutine is called by means of parts program command EXTCALL.  
From  
•  - The subroutine name programmed in EXTCALL and 
- Setting data SD42700 $SC_EXT_PROG_PATH 
results the program path for the external subroutine call through a character string 
comprising 
•  The contents of SD42700 $SC_EXT_PROG_PATH 
(e.g., /_N_WKS_DIR/_N_WKST1_WPD) 
•  The character "/" as a separator (if a path was specified with 
SD42700 $SC_EXT_PROG_PATH) 
•  The subroutine path or identifier programmed in EXTCALL. 
SD42700 $SC_EXT_PROG_PATH is preassigned with a blank. If an external subroutine is 
called without an absolute path name, HMI Advanced runs through the same search path as 
applied when a subroutine is called from the NCK memory. 
current directory / subroutine identifier 
current directory / subroutine identifier_SPF 
current directory / subroutine identifier_MPF 
/_N_SPF_DIR / subroutine identifier_SPF 
/_N_CUS_DIR / subroutine identifier_SPF 
/_N_CMA_DIR / subroutine identifier_SPF 
/_N_CST_DIR / subroutine identifier_SPF 
 
"current directory":  stands for the directory in which the main 
program has been selected 
"subroutine identifier"  stands for the subroutine identifier programmed 
in EXTCALL 
Example 
The program to be reloaded is stored on the local hard disk of HMI Advanced: 
•  SD42700 $SC_EXT_PROG_PATH = "_N_WKS_DIR/_N_WST1" 
Main program_N_MAIN_MPF 
(stored in NC memory and is selected for execution)  
 
:N010 PROC MAIN     
N020 ....     
N030   
EXTCALL "ROUGHING"     
N040 .....     
N050 M30