Flexible NC programming
1.25 Subprogram technique
Job planning
194 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Example
Program code
PCALL/_N_WKS_DIR/_N_WELLE_WPD/WELLE(parameter1,parameter2,…)
1.25.3.9 Extend search path for subprogram calls (CALLPATH)
Function
The search path for subprogram calls can be extended using the CALLPATH command.
This means that also subprograms can be called from a non-selected workpiece directory
without having to specify the complete, absolute path name of the subprogram.
The search path extension is made before the entry for user cycles (_N_CUS_DIR).
The search path extension is de-selected again as a result of the following events:
●
CALLPATH with blanks
●
CALLPATH without parameter
● Part program end
● Reset
Syntax
CALLPATH("<path name>")
Significance
CALLPATH: Keyword for the programmable search path extension.
Is programmed in a separate part program line.
<path name>: Constant or variable, type STRING. Contains the absolute path name of
a directory by which the search path should be extended. The path
name starts with "/". The path must be completely specified using
prefixes and suffixes. The maximum path length is 128 bytes.
If the <path name> contains a blank or if
CALLPATH is called without
parameter, then search path instruction is reset again.