Programming principles
1.11 Subroutine technique
Programming with path specification in SD42700 EXT_PROGRAM_PATH
EXTCALL
Parameter
EXTCALL
<program name>
Example:
EXTCALL ("RECTANGULAR POCKET")
Programming without path specification in SD42700 EXT_PROGRAM_PATH
EXTCALL
Parameter
EXTCALL
<Path\program name>
Example:
EXTCALL ("D:\EXTERNE_UP\RECHTECKTASCHE")
Note
External subroutines must not contain jump statements such as
WHILE
IF-ELSE-ENDIF
Subroutine calls and nested
RESET, POWER ON
RESET and POWER ON cause external subroutine calls to be interrupted and the
associated load memory to be erased.
Example
Processing of external customer USB memory sticker
The "Main.mpf" main program is stored in NC memory and is selected for execution:
N010 PROC MAIN
N020 G0 X0 Z0
N030 EXTCALL ("N:\EXTERNE_UP\BOHRUNG")
N040 G0 X100 Z100
N050 M30
98
("<program name>")
("<path\program name>")
, or
.
REPEAT
constructions are possible.
; Keyword for subroutine call
; Constant/variable of STRING type
; Keyword for subroutine call
; Constant/variable of STRING type
calls may be used.
EXTCALL
Turning Part 2: Programming (Siemens instructions)
Programming and Operating Manual, 05/2012, 6FC5398-5DP10-0BA0
,
,
,
,
GOTOF
GOTOB
CASE
FOR
,
LOOP