refactor Z smooth rods generation

pull/9/head
Glen Chung 2013-10-22 21:01:04 +08:00
parent 59253ebaca
commit 75eeae75f5
2 changed files with 10 additions and 9 deletions

View File

@ -40,6 +40,7 @@ Y_Final_Threaded_Rod_Length = Y_threaded_rod_length+38;
Y_Final_Smooth_Rod_Length = Y_axis_sep+8;
Y_threaded_rod_offset = 8;
Z_Final_Threaded_Rod_Length = 120;
Z_Final_Smooth_Rod_Length = 140;
X_Wood_Base = X_axis_sep+100;
Y_Wood_Base = Y_axis_sep+30;
@ -160,7 +161,7 @@ module cnc_workbed() {
module X_carriage() {
translate([0,X_rod_sep_real/2,0])
rotate([0,0,90])
X_carriage_assembled(show_printbed = 0, show_Xrods = 0, show_Zrods = 1);
X_carriage_assembled(show_printbed = 0, show_Xrods = 0, z_smooth_rods_len = Z_Final_Smooth_Rod_Length);
}
module Z_carriage_piece() {
@ -287,4 +288,5 @@ echo("Non-Plastic Parts: 2 x Smooth rod for X axis, M8 x ", X_Final_Smooth_Rod_L
echo("Non-Plastic Parts: 1 x Threaded rod for X axis, M8 x ", X_Final_Threaded_Rod_Length);
echo("Non-Plastic Parts: 2 x Smooth rod for Y axis, M8 x ", Y_Final_Smooth_Rod_Length);
echo("Non-Plastic Parts: 1 x Threaded rod for Y axis, M8 x ", Y_Final_Threaded_Rod_Length);
echo("Non-Plastic Parts: 2 x Smooth rod for Z axis, M8 x ", Z_Final_Smooth_Rod_Length);
echo("Non-Plastic Parts: 1 x Threaded rod for Z axis, M8 x ", Z_Final_Threaded_Rod_Length);

View File

@ -41,7 +41,6 @@ lbearing_length = 24;
Z_smooth_rods_sep = 55;
Z_smooth_rods_len = 140;
Z_threaded_rod_len = 120;
lbearing_holder_length = Z_smooth_rods_sep+M8_rod_diam+5;
@ -172,7 +171,7 @@ module X_carriage(show_printbed = 0, show_support = 0) {
}
module X_carriage_assembled(show_printbed = 0, show_Xrods = 0, show_Zrods = 0) {
module X_carriage_assembled(show_printbed = 0, show_Xrods = 0, z_smooth_rods_len = 0) {
X_carriage(show_printbed);
if(show_Xrods){
@ -187,13 +186,13 @@ module X_carriage_assembled(show_printbed = 0, show_Xrods = 0, show_Zrods = 0) {
rod(len=100);
}
}
if(show_Zrods)
if(z_smooth_rods_len)
translate([0,0,0])
rotate([90,0,0]) {
translate([0,Z_smooth_rods_len/2-5,Z_smooth_rods_sep/2])
rod(len=Z_smooth_rods_len);
translate([0,Z_smooth_rods_len/2-5,-Z_smooth_rods_sep/2])
rod(len=Z_smooth_rods_len);
translate([0,z_smooth_rods_len/2-5,Z_smooth_rods_sep/2])
rod(len=z_smooth_rods_len);
translate([0,z_smooth_rods_len/2-5,-Z_smooth_rods_sep/2])
rod(len=z_smooth_rods_len);
}
}
@ -205,7 +204,7 @@ module X_carriage_print_plate() {
X_carriage(show_printbed = 0, show_support = 1);
}
//X_carriage_assembled(show_printbed = 1,show_Xrods = 1,show_Zrods = 1);
//X_carriage_assembled(show_printbed = 1,show_Xrods = 1,z_smooth_rods_len = Z_smooth_rods_len);
X_carriage_print_plate();
//translate([0,20,0]) X_nut_holder_cover();