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

M command to store / read variables

Scheduled Pinned Locked Moved
Firmware wishlist
4
9
637
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.
  • undefined
    benecito
    last edited by 17 Jul 2021, 20:33

    I'd love to keep some (global) variables upon restart.
    Figured in keeping variables (global) after reset .gco files could be used, but it will get complicated soon.
    Would love to see a M*** command that writes all currently set globals to a file variables.g (or alike) in sys, which could then be called while startup. This way you could simply change the value of one variable, and write them all back to the variables file if needed. kind of like with config-override.g

    undefined 1 Reply Last reply 19 Jul 2021, 09:03 Reply Quote 1
    • undefined
      dc42 administrators @benecito
      last edited by 19 Jul 2021, 09:03

      @benecito it's more likely that we will implement a variation of the echo command that writes the resulting string to file. This would allow you to generate a macro file that can be run within config.g to initialise some global variables.

      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

      undefined 1 Reply Last reply 19 Jul 2021, 13:33 Reply Quote 0
      • undefined
        benecito @dc42
        last edited by 19 Jul 2021, 13:33

        @dc42 also sounds good to me, as long as i can call it from Repetier Server (via console)

        undefined 1 Reply Last reply 4 Oct 2021, 22:03 Reply Quote 0
        • undefined
          benecito @benecito
          last edited by 4 Oct 2021, 22:03

          @dc42 any news on this? Just starting to prepare the next "update" and wondering if anything has already been implemented / will be implemented in RRF3.4?

          undefined undefined 2 Replies Last reply 4 Oct 2021, 22:17 Reply Quote 0
          • undefined
            T3P3Tony administrators @benecito
            last edited by T3P3Tony 10 May 2021, 09:13 4 Oct 2021, 22:17

            @benecito this is not yet implemented in 3.4b4 or planned for 3.4b5 AFAIK.

            Woops forgot about the echo!

            www.duet3d.com

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators @benecito
              last edited by 5 Oct 2021, 06:01

              @benecito the variation of the echo command that I mentioned is implemented in recent 3.4beta releases. This lets you generate macro files that reload values of global variables when you run them.

              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

              undefined 1 Reply Last reply 5 Oct 2021, 06:14 Reply Quote 0
              • undefined
                benecito @dc42
                last edited by 5 Oct 2021, 06:14

                @dc42 is there a documentation on this already?

                undefined 1 Reply Last reply 5 Oct 2021, 06:19 Reply Quote 0
                • undefined
                  jay_s_uk @benecito
                  last edited by 5 Oct 2021, 06:19

                  @benecito this should help you in the right direction
                  https://forum.duet3d.com/topic/24880/does-rrf-have-maintenance-counters-timers/5?_=1633414661879

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                  undefined 1 Reply Last reply 5 Oct 2021, 06:45 Reply Quote 0
                  • undefined
                    benecito @jay_s_uk
                    last edited by benecito 10 May 2021, 06:45 5 Oct 2021, 06:45

                    @jay_s_uk thanks - I'll give it a try and get back to you if needed!

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