Siemens SINUMERIK 840D sl Programming Manual page 200

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

Advertisement

Flexible NC programming
1.24 Subprogram technique
Subprogram "SP_1"
The external subprogram "SP_1.SPF" or "SP_1.MPF" is on the local drive in the directory
"/user/sinumerik/data/prog/WKS.DIR/WST1.WPD".
The path for the external program directory is set with:
SD42700 $SC_EXT_PROG_PATH = LOCAL_DRIVE:WKS.DIR/WST1.WPD
Note
Specification of the path for the call of the external subprogram:
 Without using the default setting:
 With use of the default setting:
Subprogram "SP_2"
The external subprogram "SP_2.SPF" or "SP_2.MPF" is in the WKS.DIR /WST1.WPD
directory of the USB drive. The default path setting to the external program directory is used
for the path of subprogram "SP_1" and is also not rewritten in the main program. Therefore,
the complete path needs to be specified when subprogram "SP_2" is called.
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
200
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
"LOCAL_DRIVE:WKS.DIR/WST1.WPD/SP_1"
"SP_1"
call with a relative path name or without a path name, the
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
EXTCALL
command
EXTCALL
call. If the
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents