Siemens SINUMERIK 840D sl Programming Manual page 204

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.24 Subprogram technique
Main program "MAIN"
Program code
N010 PROC MAIN
N020 ...
N030 EXTCALL("SP_1")
N030 EXTCALL("USB:WKS.DIR/WST1.WPD/SP_2")
N050 ...
N060 M30
Further information
EXTCALL call with absolute path name
If the subprogram exists under the specified path, it is executed with the
subprogram does not exist under the specified path, the program execution is aborted with
the
EXTCALL call with relative path name / without path name
In the event of an
available program memories are searched as follows:
1. If a path name is preset in SD42700 $SC_EXT_PROG_PATH, the data specified in the
2. If the subprogram was not found under 1., the directories of the user memory are
The search ends when the subprogram is found for the first time. If the subprogram is not
found, the program execution is aborted with the
Adjustable reload memory (FIFO buffer)
A reload memory is required for the execution of an external subprogram. The size of the
reload memory is preset (see MD18360 MM_EXT_PROG_BUFFER_SIZE).
Note
Subprograms with jump commands
For external subprograms that contain jump commands (
REPEAT
204
call.
EXTCALL
EXTCALL
call (program name or with relative path name) is searched for first, starting from
EXTCALL
this path. The absolute path is obtained from linking the following characters:
– Default path specification in SD42700 $SC_EXT_PROG_PATH
– Separator "/"
– Path specification and subprogram name in the
searched.
,
,
,
etc.) the jump destinations must lie within the post loading memory.
IF
ELSE
ENDIF
call with a relative path name or without a path name, the
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
command
EXTCALL
call.
EXTCALL
,
,
GOTOF
GOTOB
CASE
call. If the
EXTCALL
,
,
,
,
FOR
LOOP
WHILE
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents