Flexible NC programming
1.25 Subprogram technique
Job planning
198 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Further information
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:
● If a path name is preset in SD42700 $SC_EXT_PROG_PATH, 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
● 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.
● The search ends when the subprogram is found for the first time. If the search does not
produce any hits, the program is canceled.
Adjustable reload memory (FIFO buffer)
A reload memory is required in the NCK in order to run a program in "Execution from
external source" mode (main program or subprogram). The size of the reload memory is
preset to 30 Kbytes and, like all other memory-related machine data, can only be changed to
match requirements by the machine manufacturer.
One reload memory must be set for each program (main program or subprogram) to run
concurrently in "Execution from external source" mode.
RESET, POWER ON
RESET and POWER ON cause external subprogram calls to be interrupted and the
associated load memory to be erased.
A subprogram selected for "Execution from external source" remains selected for "Execution
from external source" after a RESET/part-program end. A POWER ON deletes the selection.
References
For further information about "Execution from external source", see:
Function Manual, Basic Functions, Mode Group, Channel, Program Operation, Reset
Behavior (K1)