EasyManuals Logo

Siemens SINUMERIK 810D Programming Guide

Siemens SINUMERIK 810D
598 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #95 background imageLoading...
Page #95 background image
2
12.98 Subprograms, Macros
2.3 Sub
p
ro
g
rams with
p
arameter transfer
2
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
2-95
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.

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 810D and is the answer not in the manual?

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals