{"id":3890,"date":"2016-04-15T21:41:18","date_gmt":"2016-04-16T02:41:18","guid":{"rendered":"https:\/\/www.summet.com\/blog\/?p=3890"},"modified":"2016-04-15T21:41:18","modified_gmt":"2016-04-16T02:41:18","slug":"scantek-2000-cnc-lathe-first-cut-with-linuxcnc","status":"publish","type":"post","link":"https:\/\/www.summet.com\/blog\/2016\/04\/15\/scantek-2000-cnc-lathe-first-cut-with-linuxcnc\/","title":{"rendered":"Scantek 2000 CNC Lathe &#8211; First cut with LinuxCNC"},"content":{"rendered":"<p>I converted my Scantek 2000 CNC lathe to work via Parallel port control (for Mach3\/LinuxCNC software control) and have been learning how to hand write gcode (because the Linux compatible CAM lathe software options are not terribly good).<\/p>\n<p><a href=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220855.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3892\" src=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220855-1024x758.jpg\" alt=\"IMG_20160415_220855\" width=\"584\" height=\"432\" srcset=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220855-1024x758.jpg 1024w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220855-300x222.jpg 300w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220855-768x568.jpg 768w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220855-405x300.jpg 405w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>Unfortunately, the LinuxCNC \u00a0 software doesn&#8217;t support many of the automated cycles (G71 I&#8217;m looking at you!) for lathe turning (yet!), so I had to write up a gcode file with many manual G1 passes to cut down the cone shape you see here.<\/p>\n<p><a href=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220832.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3891\" src=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220832-1024x768.jpg\" alt=\"IMG_20160415_220832\" width=\"584\" height=\"438\" srcset=\"https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220832-1024x768.jpg 1024w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220832-300x225.jpg 300w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220832-768x576.jpg 768w, https:\/\/www.summet.com\/blog\/wp-content\/uploads\/2016\/04\/IMG_20160415_220832-400x300.jpg 400w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>Instead of hand coding the whole thing, I wrote a small python script that automated the gcode generation, which takes 0.2 mm passes off the stock, stopping 0.5mm shorter each time from 10mm down to 5mm radius. But I did the first few by hand&#8230;.<\/p>\n<p>Here is a video of the process in action:<\/p>\n<p><iframe loading=\"lazy\" width=\"480\" height=\"360\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/3_XLmJ6zoX8?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>And below is the full gcode file for those who care&#8230;.<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<br \/>\n<code><br \/>\n(Lathe Demo)<br \/>\n(Stock dia 20mm, radius 10mm)<br \/>\n(z-zero is 12mm from jaw face minimum)<\/p>\n<p>N100 (Sequence Number)<br \/>\nG18  (X and Z for lathe plane)<br \/>\nM3 S2500 (Start Spindle at 2500 RPM)<br \/>\nG8 (Radius mode)<\/p>\n<p>G0 X10. Z1. (Start position, 10mm out from center, 1mm from face.)<br \/>\n(M1 Optional Stop)<br \/>\nG1 Z-12.  F200.<br \/>\nG0 X10.1<br \/>\nG0 X10.1 Z1.<\/p>\n<p>G0 X9.75 Z1.<br \/>\nG1 Z-11.5<br \/>\nG0 X10.1<br \/>\nG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-4.0<br \/>\nG0 X10.1<br \/>\nG0 X10.1 Z1<\/p>\n<p>G0 X5.75 Z1.<br \/>\nG1 Z-3.5<br \/>\nG0 X10.1<br \/>\nG0 X10.1 Z1<\/p>\n<p>G0 X5.5 Z1.<br \/>\nG1 Z-3.0<br \/>\nG0 X10.1<br \/>\nG0 X10.1 Z1<\/p>\n<p>G0 X5.25 Z1.<br \/>\nG1 Z-2.5<br \/>\nG0 X10.1<br \/>\nG0 X10.1 Z1<\/p>\n<p>(Final Exit)<br \/>\nG0 X10.1 Z20<\/p>\n<p>M5 (Stop Spindle)<br \/>\nM30<br \/>\n<\/code><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I converted my Scantek 2000 CNC lathe to work via Parallel port control (for Mach3\/LinuxCNC software control) and have been learning how to hand write gcode (because the Linux compatible CAM lathe software options are not terribly good). Unfortunately, the &hellip; <a href=\"https:\/\/www.summet.com\/blog\/2016\/04\/15\/scantek-2000-cnc-lathe-first-cut-with-linuxcnc\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[56,117],"class_list":["post-3890","post","type-post","status-publish","format-standard","hentry","category-projects","tag-cnc","tag-lathe"],"_links":{"self":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/3890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/comments?post=3890"}],"version-history":[{"count":2,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/3890\/revisions"}],"predecessor-version":[{"id":3894,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/3890\/revisions\/3894"}],"wp:attachment":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/media?parent=3890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/categories?post=3890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/tags?post=3890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}