Flexible NC programming
1.24 Subprogram technique
Program code
N0010 DEF STRING[5] PROGNAME = "0122"
...
N2000 R11 = $AA_IW[X]
N2010 ISOCALL PROGNAME
N2020 R10 = R10+1
...
N2400 M30
1.24.3.8
Call subprogram with path specification and parameters (PCALL)
Function
With
Syntax
PCALL <path/program name>(<parameter 1>,...,<parameter n>)
Meaning
PCALL
<path/program name>
<parameter 1>, etc.
Example
Program code
PCALL/_N_WKS_DIR/_N_WELLE_WPD/WELLE(parameter1,parameter2,...)
196
you can call subprograms with the absolute path and parameter transfer.
PCALL
:
:
:
Comment
; Siemens part program
(cycle)
; Execute program 0122.spf in the
ISO mode
Keyword for subprogram call with absolute path name
Absolute path name beginning with "/", including
subprogram names
If no absolute path name is specified,
standard subprogram call with a program identifier.
The program identifier is written without the leading _N_
and without an extension.
If the program name is to be programmed with leading
character and extension, then it must be explicitly declared
with leading character and extension using the
command.
Actual parameters in accordance with the
the subprogram.
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
behaves like a
PCALL
EXTERN
operation of
PROC
Job Planning