Siemens SINUMERIK 840D sl Programming Manual page 94

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

Advertisement

Subroutines, Macros
2.4 Call subroutines (L or EXTERN)
Parameters
L address
EXTERN
Incomplete parameter transfer
In a subroutine call only mandatory values and parameters can be omitted. In this case, the
parameter in question is assigned the value zero in the subroutine.
The comma must always be written to indicate the sequence. If the parameters are at the
end of the sequence you can omit the comma as well.
Caution
The current parameter of type AXIS must not be omitted. VAR parameters must be
transferred completely
Example: Subroutine with parameter transfer, declaration with EXTERN
N10 EXTERN BORDER(REAL, REAL, REAL)
...
N40 BORDER(15.3,20.2,5)
N10 Declaration of the subroutine, N40 Subroutine call with
parameter transfer.
2-10
Subroutine number
Broadcast a subroutine with specified parameters. You only
have to specify
EXTERN if the subroutine is in the workpiece or in the global
subroutine directory. You do not have to declare cycles as
EXTERN .
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents