数控车床的简单编程(参见)

假设毛坯为φ30圆钢,Fanuc数控车床,如图建立工件坐标系。

程序编写如下:

M03?S500

t 0101;

G00?X32 Z?0?M08

G01?X28?Z0?f 1;

z-37;

G00?X30?Z0;

G01?X24?;

z-32;

G00?X30?Z0;

G01?X20?;

G00?X30?Z0

G01?x 16;

z-14;

G00?X30?Z0;

G01?x 14;

z-14;

?X20?z-22;

G00?X30?Z0;

?X0?Z0;

G03?X14?Z-7?r7;

G00?X32?Z0;

M09

M05

M30