2
Subprograms, Macros 12.98
2.8 Callin
sub
ro
ram with
ath s
ecification and
arameters
2
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
2-106
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
2.8 Calling subprogram with path specification and parameters, PCALL
With PCALL you can call subprograms with the
absolute path and parameter transfer:
PCALL path/program name (parameter 1, ..., parameter n)
Explanation
PCALL
Vocabulary word for subprogram call with
absolute path name
Path name
Absolute path name beginning
"/",
including subprogram
names
If no absolute path name is specified,
PCALL behaves like a standard
subprogram call with a program identifier.
The program identifier is
written without
the leading _N_ and without an
extension
If you want the program name to be
programmed with the leading _N_ and the
extension, you must declare it explicitly with
the leading _N_ and the extension as
Extern.
Parameters 1 to n
Current parameters in accordance with
the PROC statement of the subprogram
Example:
PCALL/_N_WCS_DIR/_N_SHAFT_WPD/SHAFT(parameter1, parameter2, ...>)