Heidenhain LBL CALL – Subprogram Discuss
In this lesson we will discuss Heidenhain subprogram and LBL CALL command.
Line 10 and line 11: prepositioning the tool outside and above the material with rapid movement and spindle ON and coolant ON.
Line 12: move to Z-5 – depth of the first pass.
Line 13: CALL LBL 1 – calling subprogram called 1.
From this line, the program will jump to line 20 and start execute the subroutine on the Z-5 level.
Line 20: LBL 1 marker and start of subroutine 1.
Line 21: these coordinates will be needed after the first and each next execution of the subroutine. These are the initial coordinates of the contour and we want to start the contour machining from this point.
Lines 22, 23, 24, 25: These are the next coordinates of the contour.
Line 21: place the tool at the point X-6, Y-15.
Line 22: move the tool in the Y axis to the point Y+206. Current coordinates of the tool center: X-6, Y+206.
Line 23: move the tool in the X axis to the point X+406. Current coordinates of the tool center: X+406, Y+206.
Line 24: move the tool in the Y axis to the point Y-6. Current coordinates of the tool center: X+406, Y-6.
Line 25: move the tool in the X axis to the point X-15. Current coordinates of the tool center: X-15, Y-6.
Line 26: Retraction of the tool to the level Z+10.
Line 27: LBL 0 – end of the subroutine.
The program returns to the line 14. There is a change in the Z level. Tool plunges into the depth -10.
Line 15: the subroutine is called again. This time at depth -10.
The subroutine will be called two more times. At depth -15 and -20.
Subprograms can significantly simplify and speed up writing programs.
There is an easier method of machining this type of contours, but we will discuss it later.
Subscribe me on YouTube!
If you find my tutorials helpful, you can support CADCAMLessons: