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