M command to store / read variables
-
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 -
@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.
-
@dc42 also sounds good to me, as long as i can call it from Repetier Server (via console)
-
@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?
-
@benecito
this is not yet implemented in 3.4b4 or planned for 3.4b5 AFAIK.Woops forgot about the echo!
-
@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.
-
@dc42 is there a documentation on this already?
-
@benecito this should help you in the right direction
https://forum.duet3d.com/topic/24880/does-rrf-have-maintenance-counters-timers/5?_=1633414661879 -
@jay_s_uk thanks - I'll give it a try and get back to you if needed!