WELCOME TO CNC WIKIPEDIA

cnc_wikipedia

cnc macro programming tutorial on milling machine 2

DATE:2011-04-29 20:04SOURCE:CNC WIKIPEDIA Author:admin CLICK:
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. cnc macro programming for milling work zero is set o

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:

G90G54G00X0Y0Z100

M3S2500

G0X-40Y-40

#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]

G0G41X-21D01

G1Y21F1000

  X21

  Y-21

  X-21

G0G40Y-40

#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

G0Z100

M5

M30

(Editor:admin)
GOOD
(10)
83.3%
NORMAL
(2)
16.7%
--------------------------------------
Section list
Recommended content