The concept of sub program in precision parts machining
AZ91D is a commonly used magnesium alloy that is highly regarded for its lightweight and strength-to-weight ratio, making it ideal for a wide range of applications, including automotive, aerospace, and electronic devices.AZ91D
The concept of sub program in precision parts machining
1. Definition of Subroutines
The machining programs of machine tools in precision parts processing can be divided into two types: main programs and subroutines. The so-called main program is a complete part machining program, or the main part of the part machining program. It corresponds one-to-one with the processed parts or processing requirements, and different parts or processing requirements have a unique main program.AZ91D
In the programming of precision parts processing, it is sometimes encountered that a set of program segments appear multiple times in one program, or need to be used in several programs. This typical machining program can be made into a fixed program and named separately, and this set of program segments is called a subroutine. Subroutines generally cannot be used as independent processing programs, they can only be called to implement local actions during processing. After the subroutine is executed, it can automatically return to the called program.AZ91D
2. Nesting of subroutines
To further simplify the program, a subroutine can call another subroutine, which is called subroutine nesting. Different, the nested levels of its subroutines are also different. In general, in the FANUC-0 system, subroutines can be nested up to 4 levels.AZ91D
Overview of User Macro Programs in Precision Parts Processing
Basic characteristics of CNC turning process
Related Article


