数控车床常用计算公式直径Φ倒角量a角度θ正切函数tanθ正弦函数sinθ余弦函数cosθ圆弧半径R乘以号x除以号÷先运算()内结果,再运算【】,再运算全式一、外圆倒斜角计算公式例子:Φ30直径外端倒角1.5x60°程式:GoX32Z21,倒角起点直径X=Φ-2xaxtanθ°X=30-2x1.5x1.732=24.804G1X24.804Z0F0.22,倒角起点长度Z=0其中tan60°由数学用表查出G1X30Z-1.5F0.153,倒角收点直径X=Φ;G1Z-504,倒角收点长度Z=-a。。。。。。二、内圆倒斜角计算公式例子:Φ20孔径外端倒角2x60°程式:GoX18Z21,倒角起点直径X=Φ+2xaxtanθ°x=20+2x2x1.732=26.928G1x26.928Z0F0.22,倒角起点长度Z=0G1X20Z-2F0.153,倒角收点直径X=Φ;G1Z-304,倒角收点长度Z=-a。。。。。。三、外圆倒圆角计算公式例子:Φ35直径外端圆角R3程式:GoX36Z21,倒角起点直径X=Φ-2*RX=35-2x3=29G1X29Z0F0.22,倒角起点长度Z=0G3X35Z-3R3F0.153,倒角收点直径X=Φ;G1Z-304,倒角收点长度Z=-R。。。。。。四、内圆倒圆角计算公式例子;Φ20孔径外端圆角R2程式:G0X18Z21,倒角起点直径X=Φ+2*RX=20+2x2=24G1X24Z0F0.22,倒角起点长度Z=0G2X20Z-2R2F0.13,倒角收点直径X=Φ;G1Z-254,倒角收点长度Z=-R。。。。。。五、G90、G92数控指令R锥度值的计算:例子:大端Φ35小端Φ32锥体长20牙长16mm让刀3mm加工1、计算图上锥度比例值:(32-35)/20=-0.15程式;G0X37Z3(起始端直径-收点端直径)÷锥体长度G92X33.8Z-16R-1.425F22、计算G92实际R值(车牙时,起始端至收点端的半径差):-0.15X1/2X(16+3)=-1.425X33.1锥度比例值x1/2x(有效牙长度+让刀位置)X32.63、G92的收刀点直径:35+(-0.15X(20-16))-2X1=32.4X32.4锥体收点端直径+锥度比例值x(锥体长度—有效螺纹长度)—2x牙高。。。。。六、球冠的高度计算公式:1、当截面为劣弧时。球冠高度=R-【R2-(X/2)2)】的方差的平方根2、当截面为优弧时。球冠高度=R+【R2-(X/2)2)】的方差的平方根例如:Φ35外径前端车制一个R50的圆弧面弓高=R50-【R50乘方-(35/2)乘方】的方差的平方根=3.162程序:S800M3G99T0101G0X36Z2G71U2R1F0.25G71P10Q40U0.8W0.1N10G0X0N20G1Z0N30G3X35Z-3.162R50N40G1X36G70P10Q40S1500F0.1G0X100Z50M5M30例如:Φ40棒料车制尾柄为Φ18的R20的球体弓高=R20+【R20乘方-(18/2)乘方】的方差的平方根=37.86程序:S800M3G99T0101G0X41Z2G71U2R1F0.25G71P10Q40U0.8W0.1N10G0X0N20G1Z0N30G3X40Z-20R20N40G1X41G70P10Q40S1500F0.1G0X100Z50T0202G0X44Z-37.86G72W2.5R0F0.25G72P50Q80U0.8W0N50G0Z-20N60G1X40N70G3X18Z-37.86R20N80G1Z-37.86G70P50Q80S1500F0.1G0X100Z50M30七、锥体与球体结合体的接点计算:1、顶端X=0Z=02、圆弧与锥体相切点X=2xRxcosθ°Z=-(1-Sinθ°)xR收点端X=锥体大端ΦZ=-(Φ-切点X)÷2÷tanθ+切点的Z例如;Φ32棒料车制一个前端为R3的60度顶尖圆弧与锥体切点X=2*3*0.866=5.196Z=-(1-0.5)*3=-1.5锥大端=32锥体大端=-(32-5.195)÷2÷0.57733+(-1.5)=-24.713程序:S700M3G99T0101G0X32.5Z2G71U2R1F0.25G71P10Q40U0.8W0.1N10G0X0N20G1Z0N30G3X5.196Z-1.5R3N40G1X32Z-24.713G70P10Q40S1500F0.1G0X100Z50M5M30八、锥台圆角的计算:1、起始端X=Φ-2R【(1-sinθ)*tanθ-cosθ】Z=02、切点X=Φ+2R(1-sinθ)*tanθZ=-(1-Sinθ)*R3、收点X=锥体大端直径ΦZ=-(Φ-切点X)÷2÷tanθ+切点的Z(也就是锥长)九、大圆弧R与小圆弧r的接合:1、起始端X=0Z=02、切点XZ见上图3、收点X=ΦZ=见上图例如直径100棒料车R80大球端,r10卷边S500M3T0101G99G0X102Z2G71U2.5R1F0,25G71P10Q50U0.8W0.2N10G0X0N20G1Z0N30G3X91.428Z-14.347R80N40G3X100Z-22.554R10N50G1Z-23G70P10Q50S800F0.12G0X150Z50M5M30