cnc programming for out contour of a part
Based on the first cnc macro example, now we are going to use D10mm cutter machine a contour of a part. And set first radius compensation as 5mm.
work zero is set on the center of the top of the workpiece, program as next:
#1=-1 set first level Z-1
N10 G0Z[#1] the shadow part of the program finish the work at the level at Z[#1]
#1=#1-1 decrease the deep of the level
IF [#1GE-5] GOTO 10 estimate if all the level have been machined, if Z>=-5, go back to N10, if not, execute the next block