caxa公式曲线实例
sqrt((60-80*sin(t))^2+6400*(1-cos(t))^2)*cos(180+t/23.5*172)
sqrt((60-80*sin(t))^2+6400*(1-cos(t))^2)*sin(180+t/23.5*172)
a2100 数控程序
:T19M6
(MSG,"Drill12")
[@DEEP1]=0
M3S250
G1X91.2425Y12.8233F3000
G81R[@DEEP1]Z-10F40W50
G80
M00
:T12M6
(MSG,"Mill12")
[#Q]=-23.5
[#Step]=0.005
M3S400
G1X91.2425Y12.8233F3000
Z5F1000
Z-10F100
[Next]
[#ang]=180+[#Q]/23.5*172
[#tem1]=60-80*SIN([#Q])
[#tem2]=[#tem1]*[#tem1]
[#tem3]=1-COS([#Q])
[#tem4]=6400*[#tem3]*[#tem3]
[#tem5]=[#tem2]+[#tem4]
[#rad]=SQR([#tem5])
G1X0Y0L[#rad]E[#ang]F10
[#Q]=[#Q]+[#Step]
(IF[#Q]<=23.5GOTO[Next])
G1Z100F1000
M02 |
|