EasyManuals Logo

Siemens SINUMERIK 802D sl Operation And Programming Manual

Siemens SINUMERIK 802D sl
212 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 #184 background imageLoading...
Page #184 background image
Programming
8.9 Subroutine technique
8-184
SINUMERIK 802D sl Operation and Programming Nibbling (BP-N), 06/2006 Edition
6FC5 398-3CP10-0BA0
M2
M2
N20 X...Y...
N10 R1=34 ...
L10
N20 L10 ; Call
N80 L10 ; Call
N21 ...
Main program
Subroutine
Return
Return
MAIN123
...
...
...
...
...
...
...
...
...
...
...
Sequence
Fig. 8-35 Example of sequence when calling a subroutine twice
Subroutine name
The subprogram is given a unique name allowing it to be selected from several subroutines.
When you create the program, the program name may be freely selected provided the follo-
wing conventions are observed:
The same rules apply as for the names of main programs.
Example: LRAHMEN7
It is also possible to use the address word L... in subroutines. The value can have 7 decimal
places (integers only).
Please observe: With address L, leading zeros are meaningful for differentiation.
Example: L128 is not L0128 or L00128 !
These are 3 different subroutines.
Subroutine call
Subroutines are called in a program (main or subprogram) with their names. To do this, a
separate block is required.
Example:
N10 L785 ; Call of subroutine L785
N20 LRAHMEN7 ; Call of subroutine LRAHMEN7
Program repetition P...
If a subroutine is to be executed several times in succession, write the number of times it is
to be executed in the block of the call after the subroutine name under the address P. A ma-
ximum of 9,999 cycles are possible (P1 ... P9999).

Table of Contents

Other manuals for Siemens SINUMERIK 802D sl

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 802D sl Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 802D sl
CategoryController
LanguageEnglish

Related product manuals