Jump to content

Arc Welder Anti Stutter plugin


ahoeben

Recommended Posts

Posted (edited) · Arc Welder Anti Stutter plugin

I haven't gotten that deep into it but I am using it for parts with lots of radii.

 

I did find a downside.  I have my own pause routine that sends M25 to pause a print.  When using G1 commands and printing around a 65mm diameter cylinder - the M25 gets acted on after about .2 seconds (7 lines of Gcode).  When using G2-3 commands it takes a while (up to 35 seconds) for the M25 to get to the front of the queue to pause the print.  It can be an issue if I'm pausing to do a hot pull to clear a bowden problem or making an emergency adjustment to save a print.

 

Edit:  The same issue occurs when attempting to adjust Flow, Speed, Hot End Temp, Bed Temp or Fan speed during a print.  It takes a long time for the queue to move.  I don't think this can be addressed (at least not on my Ender with Marlin 1.1.8).

Edited by GregValiant
Another thought.
  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin
    On 11/22/2020 at 3:24 AM, UbuntuBirdy said:

    [Error 13] Keine Berechtigung => (No authorization) when trying to save the gcode.

    This should be fixed in the new development snapshot. Could you check?

  • Link to post
    Share on other sites

    Posted (edited) · Arc Welder Anti Stutter plugin

    And much more worryingly, the result in NCViewer also appears to be invalid. Be careful before testing this new version. 

    Cura.jpg

    the Layer in Cura

    tested.jpg

    The code tested

    Test_2.jpg

    The new code ?

     

    Edited by Cuq
  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    Updating this to note that the issues pointed out by @cuq have been resolved.  I moved some code around to support counting of arcs aborted due to the firmware compensation, but missed a step.  In my haste I just replaced the 1.0.0 release (though in the future I will update the version number appropriately, but have been putting out forest fires recently and breaking my own rules).  The new artifacts are available in the 1.0.0 release.

    There still could be some small glitches with the firmware compensation.  Testing that more completely now.  @cuq has suggested that a default of 14 for minimum arcs works better than 12, as I had been using.  If you are using any version of marlin that does not contain the enhanced arc settings, I highly recommend using the firmware compensation, even if it does reduce compression somewhat. 

    • Like 2
    Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    I have submitted an updated version of the plugin for inclusion in the Marketplace.

    • Like 2
    • Thanks 1
    Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    Trying to understand, how this plugin, the Cura OctoPrint plugin, and Arc-Welder all play together.  I have AW loaded on my OctoPrint instance already.  Any special setup for AW on OctoPrint to accept the "Print" button aka Cura OctoPrint plugin?

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    I think the best option is to use the ArcWelder plugin in Cura, and to deactivate it on OctoPrint. This has the benefit that the file gets processed on your (likely more powerful) computer that you slice with instead of the (slower) computer that OctoPrint runs on. There is no use in processing the file on both ends.

     

    Once @FormerLurker and I figure out a way to have the Cura OctoPrint connection plugin detect that processing of the file on OctoPrint is done I can make the plugin start the print automatically.

    • Like 1
    Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    Thank you.  Any update on Marketplace?  Want to make sure I'm always running the latest and greatest.

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    The plugin needs to be reviewed before it is published on the Marketplace. That normally takes between half a week and two weeks.

    • Like 1
    Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    I'm getting "[Errno 13] Permission Denied" when I try to use Cura OctoPrint Print button with Arc Welder checked in Cura.  It slices it, but trying to send the file to OctoPrint throws that error.

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    @Hilbe, what OS do you use? The development snapshots linked above do have that issue on Linux (and possibly OSX).

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    OSX 😞

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin
    On 11/22/2020 at 7:24 AM, UbuntuBirdy said:

    [Error 13] Keine Berechtigung => (No authorization) when trying to save the gcode.

     

    Cura 4.8

    Ubuntu 20.04

     

     

    Open Terminal, type:

    chmod 777 /Users/[USERNAME]/Library/Application\ Support/cura/4.7/plugins/ArcWelderPlugin/ArcWelderPlugin/bin/osx/ArcWelder

    Press Enter

    • Like 1
    Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    Thanks @production, the version that I have submitted to the Marketplace (you might say "the production version") does that automatically for you.

    • Like 2
    Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin
    7 hours ago, production said:

    Open Terminal, type:

    
    chmod 777 /Users/[USERNAME]/Library/Application\ Support/cura/4.7/plugins/ArcWelderPlugin/ArcWelderPlugin/bin/osx/ArcWelder

    Press Enter

    Thanks, but I'm hesitating to type something like "osx" in my Ubuntu terminal...

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    Fyi @ahoeben, some issues with the binaries you are using have been discovered:

    1.  In some cases depending on the gcode precision, both I and J can be rounded to 0, which will cause a 'bad parameters' reply from the printer.  If running from Octoprint, this will disconnect the user unfortunately 😞 In these cases the radius is so small that simply skipping the command would be fine.  In every case I've seen the distance traveled was right around 0.001mm, but due to the disconnect this needed immediate correction.
    2.  This should not really affect the cura plugin, but in some cases the 'dynamic gcode precision' feature I added a while back can cause the precision to grow beyond what marlin allows in a single line of gcode.  I've seen this so far only from a user who ran their gcode through a tool that was producing ridiculously high precision (like 10 decimal places or something).  Arc welder saw this and bumped up the precision accordingly, causing the problem.  I've added a few parameters to control this, but I think the cura plugin should simply match the output of cura itself.  The default is 3 decimals for XYZIJ, 5 for E and 0 for F (integer F), and dynamic precision is disabled.

    I worked on the above issues for a long time, and was in the middle of some fun performance enhancements.  I decided to merge the code after fixing issues 1 and 2.  The result is about a 50% reduction in processing time.  Still testing all of this.

    Hopefully these binaries stabilize soon 🙂

    • Like 1
    • Thanks 1
    Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    The plugin is now available for general consumption in the Ultimaker Marketplace.

    • Like 1
    • Thanks 1
    Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    So far I have only searched the G-code for G2 and G3 when testing. Today I wanted to test the plugin for the first time with a real print: unfortunately unsuccessful ...

    Even before the print starts, my UM2+ asks me whether I really want to allow the G-code to ignore the printer's settings.

    Well, let's try, I thought. And the printer starts right away: in the corner of the home position, it prints straight away without first heating up the bed or at least the nozzle and it keeps moving to the limit switch ...
    ArcWelder is apparently not usable for me ... What a shame ...

    What am I doing wrong???

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    I don't get involved in Ultimaker machine discussions because I don't know them, but gcode is gcode.  If the instructions were in the file then the printer should have read them and followed orders.

    Post that gcode file.  I don't use the plugin either but I do find the topic interesting.  I also find the noises interesting.  The sound of words and concepts flying by about 3 meters over my head gets my blood flowing.  (geez...I gotta get a life.)

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin
    9 hours ago, UbuntuBirdy said:

    Even before the print starts, my UM2+ asks me whether I really want to allow the G-code to ignore the printer's settings.

    It looks like the printer is no longer recognising the gcode file as an Ulticode flavor file. You could try setting the gcode flavor to Marlin (instead of "Ultimaker 2"). That way you will still get the same warning, but at least you should get a working gcode file again.

     

    I can see if I can "repair" an Ulticode file after it has been processed.

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin
    7 hours ago, ahoeben said:

    I can see if I can "repair" an Ulticode file after it has been processed.

    If you want to, but do it not for me. My UM2+ gets a new PCB next week..

  • Link to post
    Share on other sites

    Posted · Arc Welder Anti Stutter plugin

    Note; you might actually want to decrease the max resolution settings when using this plugin. Lines per segment aren't that important anymore (As such, you don't want any simplifications going on before you weld the lines together)

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...