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:
Directory Description
1 current directory /
name
The current directory is the directory in which the
program is selected.
This can be:
● A workpiece directory or the standard direc‐
tory _N_MPF_DIR in the NC part program
memory or global part program memory
or
● Any directory of an external program memory
2 current directory /
name_SPF
3 current directory /
name_MPF
4 a //NC:/_N_SPF_DIR /
name_SPF
Subprogram directory in the NC part program
memory
b //DEV2:/_N_SPF_DIR / name_SPF
1)
Subprogram directory in the global part program
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.
5 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.
6 /_N_CUS_DIR /
name_SPF
User cycle directory
Work preparation
3.4 File and Program Management
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 559