Siemens SINUMERIK 840D sl Programming Manual page 536

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.2 Subprogram technique
Meaning
EXTCALL:
"<Path/><Program name>":
Path specification: Short designations
The following short designations can be used to specify the path:
● Local drive: "LOCAL_DRIVE:"
● CF card: "CF_CARD:"
● USB drive (operator panel front): "USB:"
Alternatively, the abbreviations "CF_CARD:" and "LOCAL_DRIVE:" can be used.
Example
Execute from local drive
The "MAIN.MPF" main program is stored in the NC memory and is selected for execution.
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 calling the external subprogram:
● Without the default setting: "LOCAL_DRIVE:WKS.DIR/WST1.WPD/SP_1"
● With the default setting: "SP_1"
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 setting of the path to the external program directory is
536
Command for calling an external subprogram.
Constant/variable of type STRING
<Path/>:
<Program name>:
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Absolute or relative path specifica‐
tion (optional)
The program name is specified with‐
out prefix "_N_".
The file extensions ("MPF", "SPF")
can be attached to program names
using the "_" or "." character (option‐
al).
Example:
"SHAFT"
"SHAFT_SPF"
"SHAFT.SPF"
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents