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 06: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 09, 2017 11:26PM
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 12: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 12:06AM by Esperant.
Re: Replacing G1 by G0 via post processing script
November 11, 2017 12: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 07: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 11, 2017 11:41PM
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 11, 2017 11:57PM
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.


Delta printer calibration calculator, mini IR Z probe, and colour touch screen control panel: [escher3d.com]

Large delta printer, and other 3D printer blog postings: [miscsolutions.wordpress.com]

Disclosure: I have a financial interest in sales of the Panel Due, Mini IR height sensor, and Duet WiFi/Duet Ethernet [www.duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login