Fundamentals | Creating and entering NC programs
Example
0 BEGIN PGM NEW MM
Program begin, name, unit of measure
1 BLK FORM ROTATION Z DIM_R LBL1
Spindle axis, manner of interpretation, subprogram number
2 M30
End of main program
3 LBL 1
Subprogram start
4 L X+0 Z+1
Starting point of contour
5 L X+50
Programming in the positive direction of the principal axis
6 L Z-20
7 L X+70
8 L Z-100
9 L X+0
10 L Z+1
Contour end
11 LBL 0
End of subprogram
12 END PGM NEW MM
Program end, name, unit of measure
STL files as workpiece blank and optional finished part
Integrating STL files as workpiece blank and finished part is
particularly convenient in combination with CAM programs, where
the required 3-D models are available in addition to the NC program.
Missing 3D models, such as semifinished parts with
multiple, separate machining steps, can be created
directly on the control with the EXPORT WORKPIECE soft
key in the Test Run operating mode.
The file size depends on the complexity of the geometry.
Further information: User's Manual for Setup, Testing
and Running NC Programs
Please note that the STL files are limited in respect of the
number of permitted triangles:
20,000 triangles per STL file in ASCII format
50,000 triangles per STL file in binary format
Binary files are loaded faster by the control.
In the workpiece blank definition you refer to the desired STL files
by indicating the path. Use the SELECT FILE soft key if you want the
control to take over the path information automatically.
If you do not wish to load a finished part, then close the dialog after
the workpiece blank definition.
The path of the STL file can also be entered directly as
text or with a QS parameter.
3
HEIDENHAIN | TNC620 | Klartext Programming User's Manual | 01/2022
93