Welcome! Log In Create A New Profile

Advanced

Replacing G1 by G0 via post processing script

Posted by Esperant 
Replacing G1 by G0 via post processing script
November 09, 2017 09:52AM
Hi

Ive made my DIY SLS printer.

Iam using slicer for generating tracks of laser. When there is a code G1 in gcode the laser is On. Sli3er use G1 code for every move so my laser is On also when laser head rectracting or travel to objects.
Is there some script which can avoid it or is there some other way how to fix it?

Thanks for your advices.
In attach there is a better explanation of my problem.
Attachments:
open | download - Výstřižek.PNG (31.1 KB)
Re: Replacing G1 by G0 via post processing script
November 10, 2017 02:26AM
Why don't you use the negative sign behind the extrusion value (E-...) to switch the laser off?
Re: Replacing G1 by G0 via post processing script
November 10, 2017 03:05AM
Its also the way.
Can you explain me it more in detail. I have no experince with it. Thanks


I found this url code.
Maybe it can work but I think that it change lines only with G1 E*, but I need to change lines where is G1 X* Y* E

If there isnt any better code I think that I have to modify this code.

Edited 1 time(s). Last edit at 11/10/2017 03:06AM by Esperant.
Re: Replacing G1 by G0 via post processing script
November 11, 2017 03:37AM
I didn't mean writing a postprocessor, but changing your firmware to switch the laser based on the sign of the extrusion value ( E >0 means ON, else means OFF )
Re: Replacing G1 by G0 via post processing script
November 11, 2017 10:21AM
I understand you. But how can I set it? I have no experience with it.
Can you tell me if there is some manual or some advices about that?
Thanks
Re: Replacing G1 by G0 via post processing script
November 12, 2017 02:41AM
The stepper driver of E0 gets a "dir" signal to change direction. Can't you use this to switch the laser?
Maybe you have to mask the "step" signal with the dir signal to get PWM control only when you want it.
Re: Replacing G1 by G0 via post processing script
November 12, 2017 02:57AM
RepRapFirmware supports the M571 command for precisely this purpose, and has done so for several years. It turns an output on, with selectable PWM, while extrusion is taking place. See [reprap.org]. But according to the wiki entry, other firmwares have not adopted it.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login