DIN subprogram name
The following rules apply to DIN subprogram names:
● The first character must be the letter "L".
● The following characters are digits (at least one).
● File extension:
– The file extension must consist of three letters.
– They are separated with "_" (NC notation) or "." (EES notation) from the file names.
Examples:
● L123
● L1_SPF (NC notation) or L1.SPF (EES notation)
Maximum path length
Maximum 128 bytes are available for specifying the drive name and the directory path; the
maximum length of the file name is 31 bytes. The maximum length of the complete path is
159 bytes.
3.4.1.4
Search path for subprogram call
For subprogram calls without path data, the absolute path is determined by processing a fixed
search path.
A search is then made in the program memory in the following sequence:
1
2
3
4 a
5
6
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Directory
name
current directory /
current directory /
name_SPF
name_MPF
current directory /
//NC:/_N_SPF_DIR /
b
//DEV2:/_N_SPF_DIR / name_SPF
Search path extension programmed with CALLPATH (see "Extend search path for subprogram
calls (CALLPATH) (Page 533)").
Note:
This search step is not executed if CALLPATH has not been programmed.
name_SPF
/_N_CUS_DIR /
Description
The current directory is the directory in which the
program is selected.
This can be:
● A workpiece directory or the standard direc‐
or
● Any directory of an external program memory
name_SPF
Subprogram directory in the NC part program
memory
Subprogram directory in the global part program
1)
memory
Note:
This search step is not executed if a global part
program memory has not been created, or the
program is selected in the NC part program
memory.
User cycle directory
3.4 File and Program Management
tory _N_MPF_DIR in the NC part program
memory or global part program memory
Work preparation
559