Loop commands?



  • Hi,

    Duet Wi-Fi 2, 2.x firmware, delta.
    I'm adding new linear rails/carriages to my delta. One in particular is just a little stiff. It should break in a bit with some time. I'd like to set it up this evening to just run the carriage up and down over and over all night. Preferably without making a "print" where I copy and paste the up down g code for 10 hours worth of moves. Indifferent to doing all three carriages, like a regular delta homing move, or just the one stiff tower... Any idea?



  • https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands

    (would need to upgrade firmware to use)



  • Alternatively you could perhaps use M98 to have a file call itself, but you'd have to stop it by resetting the machine and you might run into issues with endless nesting.

    https://duet3d.dozuki.com/Wiki/Gcode#Section_M98_Call_Macro_Subprogram



  • Hi,

    You need to upgrade to firmware 3.1.1 but you cannot do it in one go.

    To be safe you might want to upgrade to the most recent v2 firmware - 2.05.1

    I don't know if you HAVE to do that but that's what I started with.

    Assuming you start from 2.05.1:

    On the DWC System page upload Duet2and3Firmware-3.0.zip - when it asks to update say yes.

    Then Duet2and3Firmware-3.1.1.zip - when it asks to update say yes.

    And you should be good.

    There is some newer v3 stuff out but I think it is still a work in progress.

    Frederick



  • Yeah 3.x just sounds like a whole lot of configuring to avoid some copy pasting. Thanks all!



  • @clearlynotstef said in Loop commands?:

    Yeah 3.x just sounds like a whole lot of configuring to avoid some copy pasting. Thanks all!

    That's what I thought but when I actually did it, it wasn't bad at all.

    I created a basic config using the configuration tool just using enough information to match by basic printer setup and then compared the config file generated to my existing v2 config file.

    There were just a few things that need to be changed - far fewer than I expected.

    I put off doing it for a long time BUT now I am VERY glad I did.

    Frederick



  • @clearlynotstef said in Loop commands?:

    Yeah 3.x just sounds like a whole lot of configuring to avoid some copy pasting. Thanks all!

    ..I guess "if it ain't broke it doesn't have enough features" comes to mind..

    if its a machine you tweak then 3.1.1 is a worth while upgrade imo, and far less hassle than it was before 3.1.1, the online configurator and community as a whole matured to the level its currently at.

    reverting to 2.x is pretty simple if you keep the old config as well (I've used bossac and ftp for going back and forth which is bulletproof when testing the earlier versions)


Log in to reply