Subroutines, Macros
2.1 Using subroutines
Application
Machining sequences that recur are only programmed once in a subroutine. Examples
include certain contour shapes, which occur repeatedly, and machining cycles.
The subroutine can be called and executed in any main program.
Structure of a subroutine
The structure of a subroutine is identical to that of the main program.
A program header with parameter definitions can also be programmed in the subroutine.
2-2
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning