<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Laser raster GCode interactions with Marlin firmware and GRBL software</title>
        <description> Hello,

I will start from the beginning to ensure I cover all the details.
I built a Shapeoko model 3D printer/CNC running off Arduino Mega and Ramps 1.4, configured with Marlin and GRBL interchangeably. I recently decided to convert the whole thing into a laser engraver and after a lot of consideration, decided to go with Marlin for speed and SD capability. The issue is that the best Gcode softwares seem intended for GRBL. 
I am primarily using LaserGRBL and LaserWeb. Both of these work fine for vector cuts (I use the D9 port and tweaked the firmware to read an M3 command instead of M106). As you can see from the Gcode I attached, this may work for vectors but not rasters which give the bit-by-bit commands. Essentially, this M3 command is sent followed by an S0 to give the laser zero power and in each following line, the motor commands are given with an S command for laser intensity. The problem is that Marlin seems to need an M3 command every line in order to change the laser&#039;s intensity. 
As it is now, the Gcode runs with no laser and when I manually add M3 to every line after the start, it runs just fine. Since I can&#039;t change LaserGRBL, I would like to find some way of adapting the firmware to read this code without M3 on every line.
Is this possible? If so, how would I go about it? I&#039;m still newer to the language so you might need to use small words. 
Any advice is greatly appreciated. Thank you.</description>
        <link>https://reprap.org/forum/read.php?4,828214,828214#msg-828214</link>
        <lastBuildDate>Thu, 21 May 2026 16:10:42 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?4,828214,840688#msg-840688</guid>
            <title>Re: Laser raster GCode interactions with Marlin firmware and GRBL software</title>
            <link>https://reprap.org/forum/read.php?4,828214,840688#msg-840688</link>
            <description><![CDATA[ Hi jdargot! Check out this little app <a href="https://www.thingiverse.com/thing:2726163" target="_blank"  rel="nofollow">ImageToGcode</a><br />
It works with Marlin and Repetier firmware.]]></description>
            <dc:creator>viktorglekler</dc:creator>
            <category>Reprappers</category>
            <pubDate>Fri, 07 Dec 2018 21:18:23 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,828214,828366#msg-828366</guid>
            <title>Re: Laser raster GCode interactions with Marlin firmware and GRBL software</title>
            <link>https://reprap.org/forum/read.php?4,828214,828366#msg-828366</link>
            <description><![CDATA[ I get it, GRBL is based around router/laser work to begin with and as such, it is simpler to connect to those softwares. My reason for picking Marlin is because it's fast, versatile, and works well for SD projects. It's not the easiest thing to convert but I am asking here because I think it is worth it and I want to see if others have tried. The gcode is rather similar all things considered and at the very least, I learn what not to do in the future.]]></description>
            <dc:creator>jdargot</dc:creator>
            <category>Reprappers</category>
            <pubDate>Wed, 11 Jul 2018 16:24:58 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,828214,828363#msg-828363</guid>
            <title>Re: Laser raster GCode interactions with Marlin firmware and GRBL software</title>
            <link>https://reprap.org/forum/read.php?4,828214,828363#msg-828363</link>
            <description><![CDATA[ WHAT?<br />
<br />
I have a shapeoko 2 with arduino and GRBL board<br />
can throw a router or laser on it --- it's great<br />
<br />
Laser is controlled off of pin12 TTL to laser control board<br />
<br />
Laser GRBL and other software crbide create generate good g-code and UGS runs it out to machine<br />
<br />
There is 3D printer Firmware (Marlin) and CNC firmware (GRBL)<br />
<br />
Perhaps you should use modify cooking softwate to paint a house?<br />
<br />
I don't know why you selected Marlin?<br />
<br />
Current Marlin bloated with code for every machine and every bell and whistle<br />
Would be nice it one could choose configuration before compile and load of Marlin.<br />
<br />
The software is Named Laser GRBL   NOT  laser GRBL / Marlin<br />
<br />
might want to look at:<br />
<br />
Marlin firmware as laser cutter<br />
<br />
[<a href="https://reprap.org/forum/read.php?133,545144" target="_blank" >reprap.org</a>]<br />
<br />
<br />
Turnkey K40 Laser Arduino + Ramps Firmware<br />
<br />
[<a href="https://github.com/TurnkeyTyranny/buildlog-lasercutter-marlin" target="_blank"  rel="nofollow">github.com</a>]<br />
<br />
<br />
:X]]></description>
            <dc:creator>cozmicray</dc:creator>
            <category>Reprappers</category>
            <pubDate>Wed, 11 Jul 2018 15:42:02 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,828214,828310#msg-828310</guid>
            <title>Re: Laser raster GCode interactions with Marlin firmware and GRBL software</title>
            <link>https://reprap.org/forum/read.php?4,828214,828310#msg-828310</link>
            <description><![CDATA[ Thanks. I actually have a controller I am using under most situations. It's just a little harder when I want to set for multiple passes and such. <br />
Yeah, I have considered inkscape too. I'll need to look further into the plugins there. <br />
And I'll definitely look into that laser section, thanks for the advice.]]></description>
            <dc:creator>jdargot</dc:creator>
            <category>Reprappers</category>
            <pubDate>Tue, 10 Jul 2018 14:50:49 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,828214,828253#msg-828253</guid>
            <title>Re: Laser raster GCode interactions with Marlin firmware and GRBL software</title>
            <link>https://reprap.org/forum/read.php?4,828214,828253#msg-828253</link>
            <description><![CDATA[ You should take a look into the 'laser' section of this forum. There are lots of hints, how to control a laser for engraving.<br />
I often use 'inkscape' with various plugins to generate grayscale Gcode. Sometimes I have to postprocess the generated Gcode in a text-editor. Some people have written postprocessing-scripts in Python.<br />
It's pretty hard for the Arduino ( or the USB port ) to process all the data fast enough.<br />
A 32bit controller would be better.]]></description>
            <dc:creator>o_lampe</dc:creator>
            <category>Reprappers</category>
            <pubDate>Tue, 10 Jul 2018 00:59:54 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,828214,828215#msg-828215</guid>
            <title>Re: Laser raster GCode interactions with Marlin firmware and GRBL software</title>
            <link>https://reprap.org/forum/read.php?4,828214,828215#msg-828215</link>
            <description><![CDATA[ Here is a sample of the Gcode I referenced.<br />
<br />
G90<br />
G0 X0 Y0<br />
M3 S0<br />
F1000<br />
X0.1 S19<br />
X0.15 S18<br />
X0.2 S17<br />
G0 X0.25 Y0 S0<br />
G1 X0.45 S17<br />
X0.55 S18<br />
X0.65 S17<br />
X0.7 S19<br />
X0.85 S18<br />
X0.9 S17<br />
X0.95 S18<br />
X1.05 S19<br />
X1.1 S18<br />
X1.2 S17<br />
X1.25 S18<br />
X1.3 S17<br />
X1.4 S18<br />
X1.5 S17<br />
X1.65 S18<br />
X1.85 S19<br />
...]]></description>
            <dc:creator>jdargot</dc:creator>
            <category>Reprappers</category>
            <pubDate>Mon, 09 Jul 2018 14:37:53 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,828214,828214#msg-828214</guid>
            <title>Laser raster GCode interactions with Marlin firmware and GRBL software</title>
            <link>https://reprap.org/forum/read.php?4,828214,828214#msg-828214</link>
            <description><![CDATA[ Hello,<br />
<br />
I will start from the beginning to ensure I cover all the details.<br />
I built a Shapeoko model 3D printer/CNC running off Arduino Mega and Ramps 1.4, configured with Marlin and GRBL interchangeably. I recently decided to convert the whole thing into a laser engraver and after a lot of consideration, decided to go with Marlin for speed and SD capability. The issue is that the best Gcode softwares seem intended for GRBL. <br />
I am primarily using LaserGRBL and LaserWeb. Both of these work fine for vector cuts (I use the D9 port and tweaked the firmware to read an M3 command instead of M106). As you can see from the Gcode I attached, this may work for vectors but not rasters which give the bit-by-bit commands. Essentially, this M3 command is sent followed by an S0 to give the laser zero power and in each following line, the motor commands are given with an S command for laser intensity. The problem is that Marlin seems to need an M3 command every line in order to change the laser's intensity. <br />
As it is now, the Gcode runs with no laser and when I manually add M3 to every line after the start, it runs just fine. Since I can't change LaserGRBL, I would like to find some way of adapting the firmware to read this code without M3 on every line.<br />
Is this possible? If so, how would I go about it? I'm still newer to the language so you might need to use small words. <br />
Any advice is greatly appreciated. Thank you.]]></description>
            <dc:creator>jdargot</dc:creator>
            <category>Reprappers</category>
            <pubDate>Mon, 09 Jul 2018 14:35:57 -0400</pubDate>
        </item>
    </channel>
</rss>
