Programming
10.11 Subroutine technique
Cylindrical grinding
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
315
10.11
Subroutine technique
10.11.1
General information
Usage
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 machining cycle. Machining cycles contain universally valid
machining scenarios. By assigning values via included transfer parameters, you can adapt
the subroutine to your specific application.
Layout
The structure of a subroutine is identical to that of a main program (see Section "Program
structure"). 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.
Содержание SINUMERIK 802D
Страница 6: ...Preface Cylindrical grinding 6 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 12: ...Table of contents Cylindrical grinding 12 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 64: ...Define 4 10 User data Cylindrical grinding 64 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 152: ...System 8 7 Alarm display Cylindrical grinding 152 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 334: ...Programming 10 15 Oscillation Cylindrical grinding 334 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 394: ...Appendix A 5 Overview Cylindrical grinding 394 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 399: ...Index Cylindrical grinding Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 399 W Word structure 221 ...