From: Charles S. <ch...@st...> - 2012-08-30 18:26:01
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Coolness! I wasn't aware tricks like that could be done with the .ini file. I'm well-versed in sed and script-based hacks to get things working (I supported a floppy-based firewall distribution ages ago where most everything was done with an ash shell and sed), I just didn't realize it could be hooked into LinuxCNC that way. On 8/30/2012 1:05 PM, Lars Andersson wrote: > > A typical line G1 X53.6223 Y37.9513 E49.6224 F2300 will be changed > to G1 X53.6223 Y37.9513 A49.6224 F2300 replacing first "space E > digit" with " space A digit" on all lines > > This is my filter section in .ini > > [FILTER] PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image > PROGRAM_EXTENSION = .py Python Script PROGRAM_EXTENSION = .gcode > Extruder gcode png = image-to-gcode gif = image-to-gcode jpg = > image-to-gcode py = python gcode = E2A > > This is the E2A script file that will be called because of the > "gcode = E2A" > > #!/bin/bash sed -re 's/( E)([0-9]+)/ A\2/' $1 > > There was a thread here in EMC users named " Axis naming X Y Z E, > can I have that?" that helped me fix this. You might find it in the > archives. > > HTH /Lars > > >> -----Original Message----- From: Charles Steinkuehler >> [mailto:ch...@st...] Sent: den 30 augusti 2012 >> 13:25 To: emc...@li... Subject: Re: >> [Emc-users] Supporting RepRap G-Code Flavor? >> > Yes, please (if it's not too much trouble)! > > I'm still learning about all the magic that can be done via > LinuxCNC configuration! :) > > On 8/30/2012 2:03 AM, Lars Andersson wrote: >>>> I have fixed it in this way: When LinuxCNC opens a Gcode file >>>> all E statements are converted to A statements. This is done >>>> by LinuxCNC configuration settings. I can dig out how if you >>>> are interested. >>>> >>>>> -----Original Message----- From: Charles Steinkuehler >>>>> [mailto:ch...@st...] Sent: den 29 augusti >>>>> 2012 21:23 To: emc...@li... Subject: >>>>> [Emc-users] Supporting RepRap G-Code Flavor? >>>>> >>>> I'm hooking LinuxCNC up to my 3D printer, and while some of >>>> the various slicing programs will support "Mach/LinuxCNC" >>>> G-Code generation, I would like to craft a configuration that >>>> works just > like >>>> the typical Arduino-based controllers for these printers. >>>> >>>> The biggest issue seems to be the E (extruder) axis (which >>>> IIRC LinuxCNC wants to call A). Even worse, for multiple >>>> extruders, the E parameter can be followed by multiple values >>>> (as set by M160): >>>> >>>> http://reprap.org/wiki/G-code#M160:_Number_of_mixed_materials >>>> >>>> >>>> ...any hope of setting up an 'E' axis in LinuxCNC and/or supporting >>>> multiple values following the E in a G0/G1 move? >>>> >>>> Also, anyone else using LinuxCNC to control their RepRap or >>>> other 3D printer? Care to share your configuration setup? > >> >> ----------------------------------------------------------------------- >> >> - ------- >> Live Security Virtual Conference Exclusive live event will cover >> all the ways today's security and threat landscape has changed >> and how IT managers can respond. Discussions will include >> endpoint security, mobile security and the latest in malware >> threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ Emc-users mailing >> list Emc...@li... >> https://lists.sourceforge.net/lists/listinfo/emc-users > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ Emc-users mailing > list Emc...@li... > https://lists.sourceforge.net/lists/listinfo/emc-users - -- Charles Steinkuehler ch...@st... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlA/r6kACgkQLywbqEHdNFyMQACg2qjnHCUVvMfI4UWlm2KuFQIC l7YAniPPl22yOLbOADdRwpHczpMGk5VC =/fyM -----END PGP SIGNATURE----- |