我绘制的at125 CAD模型,设计的时候可以简单的比划下.不知道怎么上传文件,直接上代码了,同样需要openscad打开
vex=0.2;
mex=0.1;
//大托板平台
module at_table()
{
difference()
{
cube([64.9,84.9,21]);
//下燕尾槽
translate([14.5,-0.10,0])cube([33.3,84.9,21-14]);
translate([31,-0.1,-5])rotate([-90,0,0])rotate([0,0,-30])cylinder(r=24.5,h=85.9,$fn=3);
//T型槽
for(y=[15.8,60.9])
translate([-0.1,y,21-10.2])
{
cube([64.9+0.2,8.1,10.3]);
translate([0,-(13.8-8.1)/2,0])
cube([64.9+0.2,13.8,5.9]);
}
//推动螺丝安装空
translate([64.9/2,84.9/2,12])cylinder(r=8.8/2,h=20);
translate([64.9/2,84.9/2,0])cylinder(r=5.2/2,h=20);
//侧面压母
for(y=[10,84.9-10,30,84.9-30,84.9/2])
{
translate([-0.1,y,3.5])rotate([0,90,0])cylinder(r=2.5/2,h=20,$fn=8);
}
}
//推动螺母
translate([64.9/2-10.4/2,84.9/2-10.4/2,-3])
difference()
{
cube([10.4,10.4,10.4]);
translate([10.4/2,-0.1,10.4/2])rotate([-90,0,0])cylinder(r=4,h=11);
}
//塞铁
}
//主导轨
module at_slide()
{
translate([0,-380,0])
difference()
{
cube([60.4,380,75.5]);
//主燕尾
for(off=[12-10*cos(30),60.4+10*cos(30)-12])
translate([off,-mex,75.5+10*sin(30)-7.5])
rotate([-90,0,0])
rotate([0,0,30])cylinder(r=10,h=380+vex,$fn=3);
//上部凹槽
translate([60.4/2-10,-10,75.5-3.2+mex])cube([20,315,3.2]);
translate([60.4/2,315-10,75.5-3.2+mex])cylinder(r=10,h=3.2);
}
}
//传送带轮
module at_wheel(R,H=27.2/3,Deep=5.5)
{
cylinder(r=R,h=1);
translate([0,0,1])cylinder(r1=R,r2=R-2*Deep,h=2);
translate([0,0,3])cylinder(r=R-2*Deep,h=H-6);
translate([0,0,H-3])cylinder(r1=R-2*Deep,r2=R,h=2);
translate([0,0,H-1])cylinder(r=R,h=1);
}
//床头,卡盘法兰
module at_head()
{
difference()
{
translate([0,-66.1,75.5-7.5])cube([60.6,66.1,108.4]);
//4个固定孔
for(offx=[0,54])
for(offz=[0,-66])
translate([3+offx,-10+mex,75.5+125/2+29+offz])
rotate([-90,0,0])cylinder(r=3/2,h=10,$fn=12);
//通孔
translate([60.6/2,2,75.5+125/2])
rotate([90,0,0])cylinder(r=12/2,h=100);
}
//铣头夹
translate([0,-66.1,75.5-7.5+108.4+0.2])cube([60.6,66.1,20]);
//主轴法兰
translate([60.6/2,-66.1-2,75.5+125/2])rotate([90,0,0])
difference()
{
cylinder(r=37.6/2,h=5);
cylinder(r=12/2,h=10);
}
//主轴mt1
translate([60.6/2,63.9+2,75.5+125/2])rotate([90,0,0])
difference()
{
cylinder(r=8,h=63.9);
translate([0,0,-mex])cylinder(r=9/2,h=63.9+vex);
}
//传送带轮
translate([60.6/2,2+6,75.5+125/2])
rotate([-90,0,0])
{
//主轴承座
color("red")translate([0,0,-8])cylinder(r=68/2,h=3);
color("red")translate([0,0,-6])cylinder(r=50/2,h=6);
color("gray")at_wheel(R=68/2);
color("gray")translate([0,0,27.2/3])at_wheel(R=64/2);
color("gray")translate([0,0,27.2*2/3])at_wheel(R=55/2);
}
//切换车铣
translate([60.6/2,27.2+5+2,75.5+125/2])
rotate([-90,0,0])cylinder(r=42.2/2,h=12);
//齿轮架
translate([60.6/2,32+2,30])
rotate([90,0,0])cylinder(r=12/2,h=32);
}
//主丝杠及安装位
module at_screw()
{
translate([-34.5,-66.1,75.5-41.3-7.5])
difference()
{
cube([34.5,66.1,41.3]);
translate([-0.2,-mex,-0.1])cube([16,66.1+vex,41.3-25.7]);
}
translate([-26,-380,75.5-41.3-7.5])
cube([26,18.5,40.7]);
translate([-26+13,0,75.5-41.3-7.5+25])
color("gray")rotate([90,0,0])cylinder(r=12/2,h=380);
translate([-26+13,32+2,75.5-41.3-7.5+25])
rotate([90,0,0])cylinder(r=24/2,h=32);
}
//电机
module at_motor()
{
translate([102+22,-26,36+12])
rotate([90,0,0])
{
translate([0,0,-45])cylinder(r=12/2,h=50);
color("gray")translate([0,0,-45])at_wheel(R=32/2);
color("gray")translate([0,0,-45+27.5/3])at_wheel(R=24/2);
color("black")cylinder(r2=82/2,r1=70/2,h=18);
color("black")translate([0,0,18])cylinder(r=82/2,h=140-36);
color("black")translate([0,0,140-18])cylinder(r1=82/2,r2=70/2,h=18);
}
}
open=1;
close=80;
//机箱
module at_box(H=close)
{
translate([-52,0,15])
difference()
{
cube([230,H,170]);
translate([-223,0,100])rotate([0,30,0])translate([0,-1,0])cube([200,82,200]);
}
}
//钻铣头z主进给,mz微进给
module at_milling(z=20,a=10,mz=0)
{ translate([60.6/2,-66.1/2,0])
rotate([0,0,a])translate([-60.6/2,-66.1/2,196]){
translate([60.6/2,66.1/2,0])cylinder(r=45/2,h=65);
translate([0,0,z])
difference()
{
union()
{
cube([60.6,66.1,108]);
translate([-1,-150,36])cube([60.6-2,150,72]);
}
translate([-mex,67,0])rotate([4,0,0])cube([60.6+vex,66.1,400]);
}
color("gray")translate([60.1/2,-120,30-mz+z])cylinder(r=20,h=50);
}}
//齿轮架,简略画法
module at_gearframe(ang=0)
{
color("blue")
translate([-26+13,0,75.5-41.3-7.5+25])
rotate([0,110+ang,0])
translate([0,12+32,0])
rotate([90,0,0])
difference()
{
union()
{
//cylinder(r=54,h=12);
cylinder(r=32/2,h=12);
translate([-32/2,0,0])cube([32,54,9]);
rotate([0,0,60])translate([-32/2,0,0])cube([27,100,9]);
}
translate([0,0,-0.1])cylinder(r=18/2,h=13);
rotate([0,0,60])translate([-5,30,-0.1])cube([5,65,10]);
translate([12,45,-0.1])rotate([0,0,90])cube([5,25,10]);
}
}
/*
一些基本的调整参数
*/
module at125(x=0,y=0,z=0,a=-0)
{
at_slide(); //主导轨
at_head(); //主轴
at_screw(); //主丝杠
at_motor(); //电机
at_box(H=open); //机箱
at_gearframe(); //齿轮架
at_milling(z=0,a=a,mz=10);
translate([-20,-150,80])rotate([0,0,-90])at_table();
}
include <MCAD/stepper.scad>
//分度机构
module index()
{
//涡轮盘,被固定在主轴尾部
color("red")
translate([60.6/2,62+3,75.5+125/2])
rotate([90,0,0])
cylinder(r=28/2,h=10);
//蜗杆
translate([30,62+2-4,75.5+125/2-19])rotate([0,90,0])
{
translate([0,0,-31])cylinder(r=5,h=80);
translate([0,0,40])rotate([0,0,45])motor(Nema17);
//蜗杆框架
difference()
{
union()
{
translate([-10,-9,-30])cube([25,18,72]);
translate([-26,-9,36])cube([52,18,5]);
//接触垫片
translate([-10,-16,25])rotate([0,50,0])cube([40,7,25]);
}
translate([-18,10,0])rotate([90,0,0])cylinder(r=16,h=20);
//安装孔
translate([8,10,25])rotate([90,0,0])cylinder(r=5/2,h=30,$fn=12);
}
}
//y轴电机
translate([-16,45,100])
rotate([0,50,0])
rotate([90,0,0])motor(Nema17);
}
at125();
index();
|