西門子r參數(shù)編程功能強(qiáng)大,現(xiàn)在舉一橢圓加工實(shí)例,零件圖如下:
橢圓零件圖1
加工效果
橢圓分層加工策略
一刀加工,即不考慮切削余量直接加工程序:
g64g40t1d1m3s800
g0x32z0
g1x-1f0.2
g0x32z2
g0x0
g1z0
r1=20
kk:r2=r1-20
r3=10*sqrt(1-r1*r1/20/20)
r4=r3*2
g1x=r4z=r2
r1=r1-0.5
ifr1>=0gotobkk
g0x200
z200
m5
m30
分層加工實(shí)例:
g64g40t1d1m3s800
g0x32z0
g1x-1f0.2
g0x32z2
r5=28
tt:g0x=r5
g1z0
r1=20
kk:r2=r1-20
r3=10*sqrt(1-r1*r1/20/20)
r4=r3*2+r5
g1x=r4z=r2
r1=r1-0.5
ifr1>=-10gotobkk
g0x32
z2
r5=r5-2
ifr5>=0gotobtt
g0x200
z200
m5
m30