Sunday, 11 March 2018
Engraving a cylinder with graduations to be used as machine tool / lathe dial.
Using gcmc to generate the gcode, this becomes a trivial exercise in more modern programming techniques.
feedrate(400.0mm);
sf = 10.0mm; /* Scaling factor */
diameter = 80.0mm; /* Scaling factor */
n = 0;
for (c=0deg; c<360deg ; c=c+3.6deg ) {
// message(">>>> ", c, " ",c%36);
if ( ( c % 36 ) == 0deg || ( c % 36 ) == 36deg) {
message("--- ", n);
vl = typeset(to_string(n), FONT_HSANS_1);
vl = scale(vl, [sf / (2.0*pi()), sf]);
n = n + 10;
goto([diameter/2,-,0.0mm,-,-,c]);
move([-,-,14.0mm,-,-,-]);
}
elif ( ( c % 36 ) == 18deg ) {
message("-- ", c);
goto([diameter/2,-,0.0mm,-,-,c]);
move([-,-,10.0mm,-,-,-]);
}
elif ( ( c % 36 ) != 0deg || ( c % 36 ) != 18deg ) {
message("- ", c);
goto([diameter/2,-,0.0mm,-,-,c]);
move([-,-,7.0mm,-,-,-]);
}
}
Interesting site with lathe dial reductions to suit different lead screws.
http://www.modelengineeringwebsite.com/Mini_handwheel_1.html
Subscribe to:
Post Comments (Atom)
Chipmaster Gear Cutting
Calculate all the possible gear combinations for the gear selector to cut a 15TPI thread: Imperial TPI C 5 24 20 Imperial TPI ...
-
To regrind the Chipmasters bed I will need to balance the wheel and spindle. I was thinking along the lines of using a gyro, accelerometer...
-
The site at precision rpm has a list of bearing designations used in Cochester Lathes. http://www.precisionrpm.com/pub/gamets/lathes_1 T...
No comments:
Post a Comment