<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Marlin response too early</title>
        <description> [attachment 56382 2015-06-12-18.39.50.gif]

*Moved from General*

The issue I am experiencing is that Octoprint sends Gcodes to RAMPS(Marlin) and RAMPS responses with ok, however, before it actually having moved its motor to the position.
So what actually happens is only few of the Gcode sent by Octoprint being actualized to the machine. Although I made an STL file with star shape, it makes some random shape or even completely ignores XY movement and only raise extruder head every 2 seconds which is insane. The estimated print time is 3hours according to CURA, but RAMPS, which experiences almost instantenous response from RAMPS, estimates its finish time to 10 minutes! 

Here is the terminal log from Octoprint :

Send: N6725 G0 F600 X205.675 Y141.513*78
Recv: ok
Send: N6726 G1 F1200 X207.931 Y139.258 E124.31224*57
Recv: ok
Send: N6727 G0 F600 X208.769 Y139.833*77
Recv: ok
Send: N6728 G1 F1200 X207.089 Y141.513 E124.31378*50
Recv: ok
Send: N6729 G0 F600 X208.503 Y141.513*77
Recv: ok
Send: N6730 G1 F1200 X210.027 Y140.696 E124.31480*54
Recv: ok
Send: N6731 G1 X209.918 Y141.513 E124.31533*89

it would have been much more descriptive if I could configure octoprint to print out timestamps, but I can tell you that this much log happened in less than 2 seconds.

Our printer in fact isn&#039;t conventional - we are extruding chocolate out of cylinder, so we have some few irregularities on CURA settings. Since we are extruding molten chocolate out of cylinder, we set filament diameter to 42mm and layer thickness to 1mm (both causing warning message), although I don&#039;t really think this is the source of error. 

Did anyone experience same problem as me when using octoprint + marlin? I would appreciate it if you could share your solution. I am also attaching my configuration.h

Thanks!</description>
        <link>https://reprap.org/forum/read.php?146,520740,520740#msg-520740</link>
        <lastBuildDate>Sat, 18 Apr 2026 16:28:43 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,523091#msg-523091</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,523091#msg-523091</link>
            <description><![CDATA[ Good to hear, it is solved... where is my chocolate bunny? ;)<br />
<br />
@frank<br />
Now I got it, you were talking about 6.6mm / step...I caculated, my extruder would produce a track of ~19mm per 1mm filament (1.75/ 0.4 nozzle ), so I thought 6.6mm is OK 8-)]]></description>
            <dc:creator>o_lampe</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Thu, 18 Jun 2015 06:15:14 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,523034#msg-523034</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,523034#msg-523034</link>
            <description><![CDATA[ SOLVED<br />
<br />
the software endstop caused the problem. whenever the movement was set to out of bounds, it completely ignored the movement.<br />
<br />
maybe printing warning message rather than just sending recv: ok would be a better.<br />
<br />
Thanks for your support]]></description>
            <dc:creator>totorovirus</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Thu, 18 Jun 2015 03:40:32 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,522364#msg-522364</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,522364#msg-522364</link>
            <description><![CDATA[ I haven't even considered gears and so on. I believe that the mechanical side is irrelevant... the steps/mm in Configuration.h gives the relationship between the stepper motor steps and the feed rate into the hotend.]]></description>
            <dc:creator>frankvdh</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Tue, 16 Jun 2015 15:15:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,522258#msg-522258</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,522258#msg-522258</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>frankvdh</strong><br />
Doh! You're right, Olaf. <br />
Correctly,<br />
 1 extruder step gives pi*21*21/266.67 = 5.19 cubic mm of chocolate = 6.6mm of extruded chocolate<br />
<br />
Which still seems an order of magnitude or two out.</div></blockquote>
<br />
Looks better! :D<br />
But could you please draw a mental picture how a steppermotor would directly drive such a syringe/paste extruder?<br />
<br />
There has to be an ( unknown for us ) gear-ratio between stepper and syringe, right? :)<br />
<br />
@totorovirus Does the problem still exist?]]></description>
            <dc:creator>o_lampe</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Tue, 16 Jun 2015 11:16:57 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,521887#msg-521887</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,521887#msg-521887</link>
            <description><![CDATA[ Doh! You're right, Olaf. <br />
Correctly,<br />
 1 extruder step gives pi*21*21/266.67 = 5.19 cubic mm of chocolate = 6.6mm of extruded chocolate<br />
<br />
Which still seems an order of magnitude or two out.]]></description>
            <dc:creator>frankvdh</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Mon, 15 Jun 2015 15:28:18 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,521650#msg-521650</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,521650#msg-521650</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>frankvdh</strong><br />
So 1 extruder step gives pi*42*42/266.67 = 20.8 cubic mm of chocolate = 6.6mm of extruded chocolate<br />
</div></blockquote>
<br />
It is a geared stepper for sure. Paste extrusion often use a leadscrew design.<br />
<br />
Did you mix up radius and diameter? <br />
"Pi/4 D²" would be right :D<br />
-Olaf]]></description>
            <dc:creator>o_lampe</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Mon, 15 Jun 2015 03:02:09 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,521593#msg-521593</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,521593#msg-521593</link>
            <description><![CDATA[ But still, 42mm diameter = 1.68".<br />
<br />
From Configuration.h<br />
#define DEFAULT_AXIS_STEPS_PER_UNIT   {100,100,1600,<span style="color:#FF0000">266.67</span>}  // default steps per unit for Ultimaker<br />
<br />
So 1 extruder step gives pi*42*42/266.67 = 20.8 cubic mm of chocolate = 6.6mm of extruded chocolate<br />
<br />
This seems like an order of magnitude (or two) out.]]></description>
            <dc:creator>frankvdh</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Sun, 14 Jun 2015 20:12:23 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,521181#msg-521181</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,521181#msg-521181</link>
            <description><![CDATA[ Note they said this is extruding chocolate . . . this isn't your Mother's RepRap . . .<br />
<br />
- Tim]]></description>
            <dc:creator>tadawson</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Sat, 13 Jun 2015 12:23:34 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,521048#msg-521048</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,521048#msg-521048</link>
            <description><![CDATA[ 42mm diameter filament? You're sure it's not 3.0?]]></description>
            <dc:creator>Frans@France</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Sat, 13 Jun 2015 05:16:29 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,521004#msg-521004</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,521004#msg-521004</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>dc42</strong><br />
<br />
Do you see the same problem when you use e.g. Pronterface to print the file, instead of Octoprint?</div></blockquote>
<br />
I'll try it with Pronterface though I don't really think the driver caused the problem.]]></description>
            <dc:creator>totorovirus</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Sat, 13 Jun 2015 00:51:36 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,521003#msg-521003</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,521003#msg-521003</link>
            <description><![CDATA[ [attachment 56419 2015-06-1313.23.05.png][attachment 56418 2015-06-1313.23.02.png]<br />
<br />
Here is the nozzle and diameter setting in CURA.]]></description>
            <dc:creator>totorovirus</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Sat, 13 Jun 2015 00:49:37 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,520775#msg-520775</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,520775#msg-520775</link>
            <description><![CDATA[ Did you mix up filament diameter with nozzle diameter?<br />
Filament dia is more important in relation to extruder-steps, but you seem to have a problem with x/y movement and it´s calculated based on nozzle dia.<br />
-Olaf]]></description>
            <dc:creator>o_lampe</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Fri, 12 Jun 2015 11:52:59 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,520757#msg-520757</guid>
            <title>Re: Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,520757#msg-520757</link>
            <description><![CDATA[ It is entirely normal for 3D printer firmware to acknowledge commands before they have been fully actioned. If it didn't, the machine wouldn't be able to do lookahead, which would result in very slow and low-quality prints. What should happen is that once the lookahead queue is full, the firmware only sends OK in response to a new command when it has room in the lookahead queue for it.<br />
<br />
Do you see the same problem when you use e.g. Pronterface to print the file, instead of Octoprint?]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Fri, 12 Jun 2015 11:21:04 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,520740,520740#msg-520740</guid>
            <title>Marlin response too early</title>
            <link>https://reprap.org/forum/read.php?146,520740,520740#msg-520740</link>
            <description><![CDATA[ [attachment 56382 2015-06-12-18.39.50.gif]<br />
<br />
*Moved from General*<br />
<br />
The issue I am experiencing is that Octoprint sends Gcodes to RAMPS(Marlin) and RAMPS responses with ok, however, before it actually having moved its motor to the position.<br />
So what actually happens is only few of the Gcode sent by Octoprint being actualized to the machine. Although I made an STL file with star shape, it makes some random shape or even completely ignores XY movement and only raise extruder head every 2 seconds which is insane. The estimated print time is 3hours according to CURA, but RAMPS, which experiences almost instantenous response from RAMPS, estimates its finish time to 10 minutes! <br />
<br />
Here is the terminal log from Octoprint :<br />
<br />
Send: N6725 G0 F600 X205.675 Y141.513*78<br />
Recv: ok<br />
Send: N6726 G1 F1200 X207.931 Y139.258 E124.31224*57<br />
Recv: ok<br />
Send: N6727 G0 F600 X208.769 Y139.833*77<br />
Recv: ok<br />
Send: N6728 G1 F1200 X207.089 Y141.513 E124.31378*50<br />
Recv: ok<br />
Send: N6729 G0 F600 X208.503 Y141.513*77<br />
Recv: ok<br />
Send: N6730 G1 F1200 X210.027 Y140.696 E124.31480*54<br />
Recv: ok<br />
Send: N6731 G1 X209.918 Y141.513 E124.31533*89<br />
<br />
it would have been much more descriptive if I could configure octoprint to print out timestamps, but I can tell you that this much log happened in less than 2 seconds.<br />
<br />
Our printer in fact isn't conventional - we are extruding chocolate out of cylinder, so we have some few irregularities on CURA settings. Since we are extruding molten chocolate out of cylinder, we set filament diameter to 42mm and layer thickness to 1mm (both causing warning message), although I don't really think this is the source of error. <br />
<br />
Did anyone experience same problem as me when using octoprint + marlin? I would appreciate it if you could share your solution. I am also attaching my configuration.h<br />
<br />
Thanks!]]></description>
            <dc:creator>totorovirus</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Fri, 12 Jun 2015 10:57:18 -0400</pubDate>
        </item>
    </channel>
</rss>
