Greetings, I am about to print Hello World on what is likely the world’s second optical glass 3D printer command by LinuxCNC. My blog on the subject is here: http://glassprinted.com
Unlike the world’s first, I have a mechanical nozzle actuator that I need to close (on retract g-code) and open after the rapid move but before beginning to print. I found this thread which looks like a perfect start: http://comments.gmane.org/gmane.linux.distributions.emc.user/39222 It is a shell script that changes instance of "space E digit" with " space A digit" (as Axis is configured to use A as the 4th axis). This gets me half way there - the nozzle would close, but I need to add a similar line following a rapid but only following a retract. That would be safest I think. So here is example 3D printer g-code (generated from Slic3r) - I added the comments: G1 E2.00000 F2400.00000 //Retract G1 X87.650 Y92.119 E2.20901 F1800.000 //Rapid G1 X87.650 Y85.364 E2.41802 //Print G1 X93.500 Y81.987 E2.62703 //Print G1 X…. Y…. G1 E2.00000 F2400.00000 //Retract G1 X100.650 Y92.119 E2.20901 F1800.000 //Rapid G1 X100.650 Y85.364 E2.41802 //Print G1 X106.500 Y81.987 E2.62703 //Print G1 X112.350 Y85.364 E2.83603 //Print G1 X…. Y…. What I need is: G1 A2.00000 F2400.00000 //Retract G1 X87.650 Y92.119 E2.20901 F1800.000 //Rapid G1 A-2.00000 F2400.00000 //Un-retract *insert line* G1 X87.650 Y85.364 E2.41802 //Print G1 X93.500 Y81.987 E2.62703 //Print G1 X…. Y…. G1 A2.00000 F2400.00000 //Retract G1 X100.650 Y92.119 E2.20901 F1800.000 //Rapid G1 A-2.00000 F2400.00000 //Un-retract *insert line* G1 X100.650 Y85.364 E2.41802 //Print G1 X106.500 Y81.987 E2.62703 //Print G1 X112.350 Y85.364 E2.83603 //Print G1 X…. Y…. Awk and sed are definitely not my strength - any hints would be greatly appreciated! I will print someone a glass coffee mug! :) Thanks, Jeshua Lacock Founder/Engineer <3DTOPO.com> GlassPrinted.com ------------------------------------------------------------------------------ Presto, an open source distributed SQL query engine for big data, initially developed by Facebook, enables you to easily query your data on Hadoop in a more interactive manner. Teradata is also now providing full enterprise support for Presto. Download a free open source copy now. http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users