{"id":329,"date":"2010-08-04T20:59:47","date_gmt":"2010-08-05T01:59:47","guid":{"rendered":"http:\/\/chrismeyer.org\/wordpress\/?p=329"},"modified":"2015-10-11T16:32:14","modified_gmt":"2015-10-11T21:32:14","slug":"reprap-gcode-using-meshcam","status":"publish","type":"post","link":"https:\/\/chrismeyer.org\/wordpress\/?p=329","title":{"rendered":"RepRap gcode using MeshCAM"},"content":{"rendered":"<p>Warning &#8211; this post was sitting in the drafts, I don&#8217;t know how helpful it&#8217;ll be but it&#8217;s been sitting for 5 years &#8211; may as well release the information and hope it helps someone.<\/p>\n<p>***<\/p>\n<p>If anyone out there is running the RepRap \/  Makerbot gcode intrepreter for a CNC dremel \/ router \/ etc and is trying to use MeshCAM here&#8217;s some instructions:<\/p>\n<p>Use MeshCAM as usual, but you&#8217;ll want to use this post script (you probably don&#8217;t actually need to print all of the XYZ commands when you&#8217;re not moving them, but it doesn&#8217;t hurt to do it, hence the @ rather than #):<br \/>\n<code>; MeshCAM config<br \/>\n; This config is the basis for the minimum<br \/>\n; gcode output. If you're looking for<br \/>\n; the shortest output file then this is the config<br \/>\n; to start with.  Also show how to integrate CutViewer config into<br \/>\n; the output.<br \/>\n;<br \/>\n; 2\/29\/04 \tChanged comments to be enclosed by () rather than start with ;<br \/>\n;\t\tAdded CutViewer config output<br \/>\n; 5\/13\/04 \tAdded toolchange gcode<br \/>\n; 2\/12\/05\tChanged name and added units<br \/>\n; 3\/17\/05\tChanged stock definition to use CUTVIEWERSTOCK variable<br \/>\n; 5\/19\/05\tRemoved feedrate command for rapid moves<br \/>\n; 5\/25\/05\tAdded dummy tool for CutViewer<br \/>\n; 6\/27\/05\tChanged the formats to 1.4 to get 4 decimal places of accuracy<br \/>\n;<br \/>\nDESCRIPTION = \"RepRap GCode-MM(*.nc)\"<br \/>\nFILE_EXTENSION = \"nc\"<br \/>\nUNITS = MM<br \/>\n;Feeds<br \/>\nFORMAT = [F|@|F|1.1]<br \/>\n;Moves<br \/>\nFORMAT = [X|@|X|1.4]<br \/>\nFORMAT = [Y|@|Y|1.4]<br \/>\nFORMAT = [Z|@|Z|1.4]<br \/>\n;<br \/>\nSTART = \"%\"<br \/>\nSTART = \"(FILENAME: [FILENAME])\"<br \/>\n; The following is a dummy tool to keep CutViewer from generating an error when G20 is called without a tool<br \/>\nSTART = \"(TOOL\/MILL,0.1,0.05,0.000,0)\"<br \/>\nSTART = \"G21 ;Metric is good\"<br \/>\nSTART = \"([CUTVIEWERSTOCK])\"<br \/>\nSTART = \"G90 ;Absolute Positioning\"<br \/>\n;<br \/>\nFIRST_RAPID_RATE_MOVE   = \"G0 [X] [Y] [Z] [F]\"<br \/>\nRAPID_RATE_MOVE        = \"G0 [X] [Y] [Z]\"<br \/>\n;<br \/>\nFIRST_FEED_RATE_MOVE   = \"G1 [X] [Y] [Z] [F]\"<br \/>\nFEED_RATE_MOVE         = \"G1 [X] [Y] [Z]\"<br \/>\n;<br \/>\nEND = \"(END)\"<br \/>\nEND = \"(OF PROGRAM)\"<\/code><\/p>\n<p>Here&#8217;s a text version, make sure to rename the extension to .con and put it in your posts folder in the MeshCAM installation directory<\/p>\n<p><a href=\"http:\/\/chrismeyer.org\/wordpress\/wp-content\/uploads\/2010\/08\/RepRap-gcode-MM.txt\">RepRap gcode-MM<\/a><\/p>\n<p>Next up, open your STL\/etc file, set up your tooling, and then the important part:<\/p>\n<p>Your RepRap will not allow you to cross the Z axis, so when MeshCAM creates the gcode and moves the position to positive Z to clear the work surface, your RepRap will toss this command and destruction will ensue. . .\u00a0 Figure out your retract height, in my case I set it to 2.5mm so I can easily remember it.\u00a0 You want to take this number, then set your stock size to fit geometry (or as needed), but make sure you add your retract height to the stock height and put it in the Z Position.<\/p>\n<p>For example, I have a 5.08mm block I&#8217;m machining, with a 2.5mm retract height.\u00a0 So I would define my Z Position as 5.08+2.50 or 7.58mm\u00a0 This will result in your retraction remaining less than 0mm and the machine will actually retract away from the workpiece.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Warning &#8211; this post was sitting in the drafts, I don&#8217;t know how helpful it&#8217;ll be but it&#8217;s been sitting for 5 years &#8211; may as well release the information and hope it helps someone. *** If anyone out there is running the RepRap \/ Makerbot gcode intrepreter for a CNC dremel \/ router \/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[130,129,135],"class_list":["post-329","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-gcode","tag-meshcam","tag-reprap"],"_links":{"self":[{"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=329"}],"version-history":[{"count":4,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/329\/revisions"}],"predecessor-version":[{"id":336,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/329\/revisions\/336"}],"wp:attachment":[{"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chrismeyer.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}