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.
-
@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 -
@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...
-
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.
-
@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.
-
@dc42 that latter sounds awesome. Any chance that's in place prior to MRRF2019?
-
@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?
-
@dc42 March 29th 2019 (Goshen Indiana) https://www.eventbrite.com/e/2019-midwest-reprap-festival-mrrf2019-tickets-51075814135
-
@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.
-
@dc42 Any chance, rudimentary math available (like Build height = Build height - x)?
-
@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.
-
@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!!"
-
@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 ;-(