<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>echo: &amp;quot;Unknown Command G21&amp;quot;</title>
        <description> RAMPS 1.4
Marline 2.0 
Laser setup as a printer
Board definition: #define MOTHERBOARD BOARD_RAMPS_14_EFB

So I&#039;m using a program called LightBurn to control the laser.  LightBurn&#039;s function is to generate and send the gcode to the laser.  The begging of each gcode file starts out the same.  The first command issued it to put the machine into mm mode as seen below.

; LightBurn 0.8.06
; Marlin device profile, absolute coords
G21
G90
; Scan @ 1300 mm/min, 100% power
M106 S0 
G0 X4.56 Y3.51 F0
G91
M106 S0
G1 X0.32 F1300
M106 S25.5
G1 X20.01

When the G21 command is issued to make sure the machine is in mm mode Marlin echo&#039;s an error: Command Unknown.

I have been unable to figure out why this is happening.  I had downloaded V 2.0 a couple of months ago and had recently decided to implement it.  As soon as I did I started getting the error.  So last night I decided that perhaps somehow I did not get all the files needed in the download.  Well apparently the was incorrect because after configuration I got the same error.

The interesting part is that when I look at the communications stream when LightBurn first connects to the laser machine Marlin accepts G21 as can be seen in the attached file.
But when issued from the gcode gets rejected.  

So for now I have reverted to Marlin V 1.8 as it dose not have this problem.

Any thought&#039;s on the subject?


[attachment 108325 UnknownCommand_G21-1.JPG]</description>
        <link>https://reprap.org/forum/read.php?415,839783,839783#msg-839783</link>
        <lastBuildDate>Thu, 15 Oct 2026 15:47:54 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?415,839783,839818#msg-839818</guid>
            <title>Re: echo: &quot;Unknown Command G21&quot;</title>
            <link>https://reprap.org/forum/read.php?415,839783,839818#msg-839818</link>
            <description><![CDATA[ Thank you once again  Dust.<br />
<br />
No I did not enable it, but I will.<br />
Guess I missed that one when I was browsing the firmware.<br />
thanks]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Tue, 27 Nov 2018 21:48:45 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,839783,839816#msg-839816</guid>
            <title>Re: echo: &quot;Unknown Command G21&quot;</title>
            <link>https://reprap.org/forum/read.php?415,839783,839816#msg-839816</link>
            <description><![CDATA[ I suspect its being silently ignored in the first eg and complained about in the second eg<br />
<br />
Did you enable INCH_MODE_SUPPORT ? <br />
As that needs to be enabled to use either G20 or G21<br />
<br />
Otherwise the firmware presumes everything is in mm]]></description>
            <dc:creator>Dust</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Tue, 27 Nov 2018 21:25:58 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,839783,839783#msg-839783</guid>
            <title>echo: &quot;Unknown Command G21&quot;</title>
            <link>https://reprap.org/forum/read.php?415,839783,839783#msg-839783</link>
            <description><![CDATA[ RAMPS 1.4<br />
Marline 2.0 <br />
Laser setup as a printer<br />
Board definition: #define MOTHERBOARD BOARD_RAMPS_14_EFB<br />
<br />
So I'm using a program called LightBurn to control the laser.  LightBurn's function is to generate and send the gcode to the laser.  The begging of each gcode file starts out the same.  The first command issued it to put the machine into mm mode as seen below.<br />
<br />
; LightBurn 0.8.06<br />
; Marlin device profile, absolute coords<br />
G21<br />
G90<br />
; Scan @ 1300 mm/min, 100% power<br />
M106 S0 <br />
G0 X4.56 Y3.51 F0<br />
G91<br />
M106 S0<br />
G1 X0.32 F1300<br />
M106 S25.5<br />
G1 X20.01<br />
<br />
When the G21 command is issued to make sure the machine is in mm mode Marlin echo's an error: Command Unknown.<br />
<br />
I have been unable to figure out why this is happening.  I had downloaded V 2.0 a couple of months ago and had recently decided to implement it.  As soon as I did I started getting the error.  So last night I decided that perhaps somehow I did not get all the files needed in the download.  Well apparently the was incorrect because after configuration I got the same error.<br />
<br />
The interesting part is that when I look at the communications stream when LightBurn first connects to the laser machine Marlin accepts G21 as can be seen in the attached file.<br />
But when issued from the gcode gets rejected.  <br />
<br />
So for now I have reverted to Marlin V 1.8 as it dose not have this problem.<br />
<br />
Any thought's on the subject?<br />
<br />
<br />
[attachment 108325 UnknownCommand_G21-1.JPG]]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Tue, 27 Nov 2018 13:20:02 -0500</pubDate>
        </item>
    </channel>
</rss>
