EasyManuals Logo
Home>Siemens>Control Unit>SINUMERIK 808D

Siemens SINUMERIK 808D User Manual

Siemens SINUMERIK 808D
339 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 #132 background imageLoading...
Page #132 background image
Programming and Operating Manual (Milling)
132 6FC5398-4DP10-0BA6, 09/2017
11.14.4
Jump destination for program jumps
Fu n ctionality
A
label
or a
block number
serve to mark blocks as jump destinations for program jumps. Program jumps can be used to
branch to the program sequence.
Labels can be freely selected, but must contain a minimum of 2 and a maximum of 8 letters or numbers of which the
first two
characters must be letters
or underscore characters.
Labels that are in the block that serves as the jump destination are
ended by a colon
. They are always at the start of a block.
If a block number is also present, the label is located
after the block number
.
Labels must be unique within a program.
Programming example
N10 LABEL1: G1 X20 F100
;LABEL1 is the label, jump destination
N20 G0 X10 Y10
TR789: G0 X10 Z20
;TR789 is the label, jump destination
N30 G0 X30 Z30
- No block number existing
N100 G0 X40 Z40
;Block number can be jump target
M30
11.15
Subroutine technique
11.15.1
General information
Application
Basically, there is no difference between a main program and a subroutine.
Frequently recurring machining sequences are stored in subroutines, e.g. certain contour shapes. These subroutines are
called at the appropriate locations in the main program and then executed.
One form of a subroutine is the
m achining cycle
. The machining cycles contain generally valid machining cases (e.g. drilling,
tapping, groove cutting, etc.). By assigning values via included transfer parameters, you can adapt the subroutine to your
specific application.
See the following illustration for example for using a subroutine for a workpiece four times:
Set-up
The structure of a subroutine is identical to that of a main program (see Section "Program structure (Page 79)"). Like main
programs, subroutines contain
M2 - end of program
in the last block of the program sequence. This means a return to the
program level where the subroutine was called from.
End of program
The end instruction
RET
can also be used instead of the M2 program end in the subroutine.
RET must be programmed in a separate block.
The RET instruction is used when G64 continuous-path mode is not to be interrupted by a return. With M2, G64 is
interrupted and exact stop is initiated.

Table of Contents

Other manuals for Siemens SINUMERIK 808D

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 808D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 808D
CategoryControl Unit
LanguageEnglish

Related product manuals