程序仅供参考:
G65P8077R2Z-20A10V2Q3K10M1D30E500
#603=6(K值不得为负值 )
#604=20(锥管半锥值 )
#605=20(小锥孔直径 )
#610=5
#614=1000
#602=3000
#611=1000
#612=#17/[360/#13](计算:每层循环Z向数据 )
#608=TAN[#604]*#612 (计算:变径的偏移量 )
#600=#605-#610(初始化当前变径值 );
#601=#600/2
#606=1(初始化循环次数K)
#607=0(初始化开始角度)
#613=#26(初始化循环Z向角度)
#618=1(G2=-1 G3=1 )
#621=0
#622=0
G52X#621Y#622
G08P1
G90 G00 X0 Y0
Z#18
G01 Z#26 F#8
G3X#600Y0R#601F#611
WHILE[#606LE#603]DO1
WHILE[ABS[#607]LE[360]]DO2
#609=#600+#608(计算:变径终点值 )
#615=#613+#612(计算:Z向终点值 )
#607=#607+#13*#618
#616=[COS[#607]*#609](计算:每层循环X向数据 )
#617=[SIN[#607]*#609](计算:每层循环Y向数据 )
G01 X#616 Y#617 Z#615
#600=#609(记录当前变径值 )
#613=#615(记录当前Z值 )
END2
#606=#606+1
#607=0(初始化开始角度)
END1
G01X0Y0F#602
G90G00Z#11
G08P0
G52X0Y0Z0
M99
刀轨: