Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Writing macro files with PanelDue usability in mind

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    354
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • zaptaundefined
      zapta
      last edited by zapta

      This questions applies to a few macro files that I am using but will use the Leveling one (which probes and prints recommendations for bed screws adjustment) as an example. Once I click on it in the Macros tab, I would like to achieve two things

      1. Avoiding a second unintentional click. This happens to me a few times where two clicks are registered and the (slow) macro runs twice.

      2. Switch the display back to the Control tab as I am done with the Macros tab.

      Edit:
      3. Making sure it appears as one of the 4 marco buttons in the Control tab.

      Is it possible?

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        #1 would I think be best done by using a slower repeat rate in PanelDue for the macro buttons, on the grounds that it's rare to want to run a macro several time sin quick succession. Unfortunately for you I've just done a PanelDue firmware release, so this will have to wait until next time.

        #3 can be done. Macros are ordered alphabetically by the names of the macro files. The first 4 in this order are listed on the Control page. If a macro filename starts with one or more decimal digits followed by underscore, that that part won't show up as part of the name in the list. So prefix the first file you want to show with 1_ and the second with 2_ and so on.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        zaptaundefined 1 Reply Last reply Reply Quote 0
        • zaptaundefined
          zapta
          last edited by

          Thanks dc42.

          1. The cases where I use macro successively are 'Extrude 5mm' and similar to feed filament. Slowing the repeat rate sounds as a good idea. Another good option may be to ignore new macro clicks while an existing macro is running.

          2. Awesome. I was not aware of this feature. Thanks.

          1 Reply Last reply Reply Quote 0
          • zaptaundefined
            zapta @dc42
            last edited by zapta

            @dc42, the numeric prefix trick works very good, thanks. I can see the numbers on the web UI (good) and not on PanelDue (good). Thanks.

            Does it make sense to add similar encodings to control other aspect of the macros experience on the LCD UI? E.g.

            2*_Leveling

            Will also exit the Macros panel once clicked

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA