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

    Writing text and expressions to SD Card

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    3
    196
    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.
    • audryhomeundefined
      audryhome
      last edited by

      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. as

      var.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

      o_lampeundefined 1 Reply Last reply Reply Quote 0
      • o_lampeundefined
        o_lampe @audryhome
        last edited by

        @audryhome
        You can use the echo command for this.

        audryhomeundefined 1 Reply Last reply Reply Quote 0
        • audryhomeundefined
          audryhome @o_lampe
          last edited by

          @o_lampe Many thanks, as always the evidence is just in front of your eye!

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