Subprograms With Parameter Transfer - Siemens sinumerik 840d Programming Manual

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

12.98
2
840D
840D
NCU 572
NCU 571
NCU 573
2.3

Subprograms with parameter transfer

Program start, PROC
A subprogram that is to take over parameters from
the calling program when the program runs is
designated with the vocabulary word PROC.
Program end M17, RET
The command M17 designates the end of
subprogram and is also an instruction to return to the
calling main program.
As an alternative to M17: The vocabulary word RET
stands for end of subprogram without interruption of
continuous path mode and without function output to
the PLC.
RET must be programmed in a separate NC block.
Example:
PROC CONTOUR
N10...
...
N100 M17
Parameter transfer between main program and
subprogram
If you are working with parameters in the main
program, you can use the values calculated or
assigned in the subprogram as well.
For this purpose the values of the current
parameters of the main program are passed to the
formal parameters of the subprogram when the
subprogram is called and then processed in
subprogram execution.
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition

2.3 Subprograms with parameter transfer

FM-NC
810D
840Di
Subprograms, Macros
2
2-95

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents