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

    Can I store and read values from card

    Scheduled Pinned Locked Moved
    General Discussion
    6
    15
    1.5k
    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.
    • core3d.techundefined
      core3d.tech
      last edited by

      I would like to be able to store and read custom parameters from disc and use them in macros. Any way to do this?

      Stephen6309undefined 1 Reply Last reply Reply Quote 0
      • Stephen6309undefined
        Stephen6309 @core3d.tech
        last edited by

        @core3d-tech I use a couple of macros to change the z offset between PLA and PETG. If I need to change the offset, I only need to edit the macro.

        core3d.techundefined 1 Reply Last reply Reply Quote 0
        • core3d.techundefined
          core3d.tech @Stephen6309
          last edited by

          @stephen6309 I need to store information on state of the printer when it turns/off on. Something similar to XYZ location in case of power outage.

          deckingmanundefined 1 Reply Last reply Reply Quote 0
          • deckingmanundefined
            deckingman @core3d.tech
            last edited by

            @core3d-tech said in Can I store and read values from card:

            @stephen6309 I need to store information on state of the printer when it turns/off on. Something similar to XYZ location in case of power outage.

            Have you seen this ?
            https://duet3d.dozuki.com/Wiki/Setting_up_to_resume_a_print_after_a_power_failure

            Ian
            https://somei3deas.wordpress.com/
            https://www.youtube.com/@deckingman

            core3d.techundefined 1 Reply Last reply Reply Quote 0
            • core3d.techundefined
              core3d.tech @deckingman
              last edited by core3d.tech

              @deckingman Clearly that procedure stores a bunch of information, but I don't see what information it chooses to store and I want to store something completely unrelated. I have a feeling all that is coded under the M911 code in the firmware itself.

              I'll give a completely non-related example to illustrate (not what I'll be using it for); Lets say I want to store the latest RGB (LEDs) values so next time I start up my Printer it resumes at those RGB values.

              So I would need something that says M???? "RGB:...,...,...."

              At a later stage I want this information back and use it (as I'm typing this I get the feeling this is way beyond G-code/MAcro. sigh, still any suggestions...

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

                It's possible in a macro file to create and write data to a different macro file using the M559 command. Then you could execute the file from config.g. So you could use this method if you used only a few different settings of the RGB LEDs. When conditional GCode, variables and the object model are implemented, you will be able to do a lot more.

                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

                timcurtis67undefined core3d.techundefined 2 Replies Last reply Reply Quote 1
                • timcurtis67undefined
                  timcurtis67 @dc42
                  last edited by

                  @dc42 said in Can I store and read values from card:

                  It's possible in a macro file to create and write data to a different macro file using the M559 command. Then you could execute the file from config.g. So you could use this method if you used only a few different settings of the RGB LEDs. When conditional GCode, variables and the object model are implemented, you will be able to do a lot more.

                  👍 👍 Can't wait for this option. ☺

                  1 Reply Last reply Reply Quote 1
                  • core3d.techundefined
                    core3d.tech @dc42
                    last edited by

                    @dc42 that latter sounds awesome. Any chance that's in place prior to MRRF2019?

                    dc42undefined 1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators @core3d.tech
                      last edited by

                      @core3d-tech said in Can I store and read values from card:

                      @dc42 that latter sounds awesome. Any chance that's in place prior to MRRF2019?

                      When is that?

                      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

                      core3d.techundefined 1 Reply Last reply Reply Quote 0
                      • core3d.techundefined
                        core3d.tech @dc42
                        last edited by

                        @dc42 March 29th 2019 (Goshen Indiana) https://www.eventbrite.com/e/2019-midwest-reprap-festival-mrrf2019-tickets-51075814135

                        dc42undefined 1 Reply Last reply Reply Quote 0
                        • dc42undefined
                          dc42 administrators @core3d.tech
                          last edited by

                          @core3d-tech said in Can I store and read values from card:

                          @dc42 March 29th 2019 (Goshen Indiana) https://www.eventbrite.com/e/2019-midwest-reprap-festival-mrrf2019-tickets-51075814135

                          Yes, I expect it to be available before then.

                          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

                          core3d.techundefined 1 Reply Last reply Reply Quote 0
                          • core3d.techundefined
                            core3d.tech @dc42
                            last edited by

                            @dc42 Any chance, rudimentary math available (like Build height = Build height - x)?

                            dc42undefined 1 Reply Last reply Reply Quote 0
                            • dc42undefined
                              dc42 administrators @core3d.tech
                              last edited by

                              @core3d-tech said in Can I store and read values from card:

                              @dc42 Any chance, rudimentary math available (like Build height = Build height - x)?

                              Yes.

                              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

                              core3d.techundefined 1 Reply Last reply Reply Quote 0
                              • core3d.techundefined
                                core3d.tech @dc42
                                last edited by

                                @dc42 Excellent! People will ask why do you do this with your printer. It makes no sense and I'll say "because Duet lets me!!"

                                1 Reply Last reply Reply Quote 0
                                • Googliolaundefined
                                  Googliola
                                  last edited by

                                  @core3d-tech In case you have missed the discussion about variables I kicked off a while ago.

                                  dc42 posted a first draft of the intended implementation here , I haven't had proper time to comment on yet ;-(

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