Subprograms And Repetition Of Program Sections - Siemens SINUMERIK 840DE Programming Manual

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Subprograms and Repetition of Program Sections

11.1 Use of subprograms
Note
Observe functional differences of the machine, such as spindle stop at M30!
Example
N10 POCKET1
It is also possible to use the address word L... in subprograms The value can have 7 decimal
places (integers only). Note: With address L, leading zeros are meaningful for differentiation.
N10 L123
N20 L0123
N30 L00123
There are three different subprograms in this example.
Use of subprograms
Recurring machining sequences are programmed once in a subprogram. Examples include
certain recurring contour shapes and machining cycles. The subprogram can be called and
executed in any main program.
Structure of a subprogram
The structure of the subprogram is identical to that of the main program (see chapter on
structure and content of an NC program). Subprograms are provided with M17 end of
program. This means a return to the program level where the subprogram was called from. It
is possible to suppress this end of program M17 in the machine data (e.g., to achieve a
better running time).
11-2
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents