Programming and Operating Manual (Milling)
6FC5398-4DP10-0BA1, 01/2014
113
8.15.3
Modal subroutine call
Functionality
The subroutine in the block containing MCALL is called automatically after each successive block containing a path motion.
The call acts until the next MCALL is called.
The modal call of the subroutine which contains MCALL or quitting of the call requires a separate block.
MCALL is advantageous, for example, when producing drill patterns.
Programming example
Application example: Drilling a row of holes
N10 MCALL CYCLE82(100, 0, 1, -10, 2)
; Drilling cycle 82
N20 HOLES1(1, 2, 45, 2, 2, 1)
; Cycle for row of holes; after each approach
of the hole position, CYCLE82(...) will be
called with the transfer parameters
N30 MCALL
; Modal call of CYCLE82(...) completed
N40 M30
8.15.4
Execute external subroutine (EXTCALL)
Function
With the
EXTCALL
command, you can reload and execute programs stored on an external USB memory stick.
Machine data
The following machine data is used for the
EXTCALL
command:
●
MD10132 $MN_MMC_CMD_TIMEOUT
Monitoring time for the command in part program
●
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
Note
When using SD42700 $SC_EXT_PROGRAM_PATH, all subprograms called with EXCALL are searched under this path.
Programming with path specification in SD42700 EXT_PROGRAM_PATH
EXTCALL
("<program name>")
Parameter
EXTCALL
; Keyword for subroutine call
<program name>
; Constant/variable of STRING type
Example:
EXTCALL ("RECTANGULAR POCKET")
Programming without path specification in SD42700 EXT_PROGRAM_PATH
EXTCALL
("<path\program name>")
Parameter
EXTCALL
; Keyword for subroutine call
<Path\program name>
; Constant/variable of STRING type