Writing text and expressions to SD Card
-
I want to store some data on SD Card, for instance remember the number of prints, and some specific data gathered during each print, and some macros that automate my printer.
M28 and M29 are fine for writing macros, but since I can use expressions and meta commands, I didn't found any way to expand an expression in a macro, for instance G1 Z{global.last_Z} is not expanded.
I probably missed some point, since I am not a Gcode expert, but I am thinking about a M29.1 code that would simply express as
M29.1 {"var.storedvar ="^var.actualvar^" ; recall last counter"} that would simply expand the above and store it. asvar.storedvar = 42 ; recall last counter
This would be similar to an M118 with output redirected to opened SDCard with M28.
Is this possible ?
Did I miss something in RRF 3.3?
Many thanks to the community -
@audryhome
You can use the echo command for this. -
@o_lampe Many thanks, as always the evidence is just in front of your eye!