Detailed description
2.9 Program control
Basic logic functions: Mode group, channel, program operation, reset response (K1)
162 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Programming
An external subroutine is called by means of parts program command EXTCALL.
Syntax: EXTCALL ("<path/program_name>")
Parameter:
The path name is optional, i.e., the absolute path (or a relative
path) or only the program name (subroutine identifier) can be
specified.
The program name can be specified with or without the "_N_"
prefix and "_SPF" or "_MPF" file extension.
Path / program name:
Typ
e:
STRING
Note
SINUMERIK powerline with HMI Embedded
An absolute path must always be specified for SINUMERIK powerline with HMI Embedded!
Effects
EXTCALL call with absolute path name
If the subprogram exists at the specified path, it will be executed following the EXTCALL call.
If it does not exist, program execution is cancelled.
EXTCALL call with relative path name/without path name
In the event of an EXTCALL call with a relative path name or without a path name, the
available program memories are searched as follows:
1. If a path name is preset in SD42700, the data specified in the EXTCALL call (program
name or with relative path name) is searched for first, starting from this path. The
absolute path results from linking the following characters:
– The path name preset in SD42700
– The "/" character as a separator
– The subprogram path or identifier programmed in EXTCALL
2. If the called subprogram is not found at the preset path, the data specified in the
EXTCALL call is then searched for in the user-memory directories.
3. If the called subprogram is not found on the program memory currently being searched
(e.g., CompactFlash card), the next program memory (e.g., network drive) is searched in
accordance with points 1 and 2.
4. The search ends when the subprogram is found for the first time.
If the search does not produce any hits, the program is canceled.