Subprogram Call With Parameter Transfer (Extern) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

1.24.3.2

Subprogram call with parameter transfer (EXTERN)

Function
For a subprogram call with parameter transfer, variables or values can be transferred directly
(but not
Subprograms with parameter transfer must be declared with
before they are called in the main program (e.g. at the beginning of the program). The name
of the subprogram and the variable types are thereby specified in the sequence in which
they are transferred.
NOTICE
Risk of confusion
Both the variable types and the sequence of the transfer must match the definitions
declared under
program and the subprogram.
Syntax
EXTERNAL <program name>(<type_Par1>,<type_Par2>,<type_Par3>)
...
<program name>(<value_Par1>,<value_Par2>,<value_Par3>)
Note
The subprogram call must always be programmed in a separate NC block.
Meaning
<program name>
EXTERNAL
<type_par1>,<type_par2>,<type_par3>
<value_par1>,<value_par2>,<value_par3>
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
parameters).
VAR
in the subprogram. The parameter names can be different in the main
PROC
:
:
Name of subprogram
Keyword to declare a subprogram with
parameter transfer.
Note:
You only have to specify
subprogram is in the workpiece or in the
global subprogram directory. Cycles do
not have to be declared as
:
Variable types of the parameters to be
transferred in the sequence of the
transfer
:
Variable values for the parameters to be
transferred
Flexible NC programming
1.24 Subprogram technique
in the main program
EXTERNAL
EXTERNAL
EXTERNAL
if the
.
187

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents