Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Writing M122 to file

    Gcode meta commands
    2
    2
    76
    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.
    • Piet
      Piet last edited by

      Dear users,

      I'm wondering if there is a way to write the diagnostics output of the M122 command to a text file using meta Gcode.

      Thanks in advance, Piet.

      T3P3Tony 1 Reply Last reply Reply Quote 0
      • T3P3Tony
        T3P3Tony administrators @Piet last edited by

        @Piet
        there is not currently a way to echo it directly to a file however the logging function can be used, e.g.:

        M929 P{"M122_Log"^{state.upTime}^".txt"} S3
        M122
        M929 S0
        

        If you put that in a macro then everytime you run it a new log file will be created with the output of M122.

        Note this wont work if you are already logging to another file

        www.duet3d.com

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