Programming and Operating Manual (Milling)
6FC5398-4DP10-0BA6, 09/2017
135
Executing internal and external subroutines (CALL, EXTCALL)
Function
● With the CALL command, you can reload and execute programs stored in the NC directory.
● With the EXTCALL command, you can reload and execute programs stored on an external USB memory stick.
Machine data and setting data
The following machine data is used for the EXTCALL command:
● MD18362 $MN_MM_EXT_PROG_NUM
Number of program levels that can be processed simultaneously from external
● SD42700 $SC_EXT_PROGRAM_PATH
Program path for external subroutine call
$SC_EXT_PROGRAM_PATH, all subprograms called with EXTCALL are searched under this
● CALL "<//NC:/MPF.DIR/program nam e>"
●
EXTCALL
– Programming with path specification in SD42700 EXT_PROGRAM_PATH
("<program name>")
– Programming without path specification in SD42700 EXT_PROGRAM_PATH
("<path\program name>")
●
CALL ; Keyword for subroutine call
; Constant/variable of STRING type
Example:
CALL "//NC:/MPF.DIR/Program1.MPF"
●
– Programming with path specification in SD42700 EXT_PROGRAM_PATH
; Keyword for subroutine call
<program name> ; Constant/variable of STRING type
EXTCALL ("Program2.MPF")
– Programming without path specification in SD42700 EXT_PROGRAM_PATH
; Keyword for subroutine call
<Path\program name> ; Constant/variable of STRING type
Example:
EXTCALL ("USB:\EXTERNE_UP\Program2.MPF")