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

    List of comments or GCode used to display file information

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    3
    490
    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.
    • jgrouseundefined
      jgrouse
      last edited by

      Just trying to define a post-processor for my Vectric software to insert comments at the start of the file which would be relevant to the Duet. Had a good search on the web for any info I could find on it and came up with nothing.

      Is there a list of comments and GCode the firmware looks for to gather display info regarding each file? Even just some basics for just the file listing columns in the web interface?

      I have some large files on the SD without any comments and it seems to take an age to read the entire file before it moves onto the next in the file list. Hoping that adding the correct comments will save the firmware some time by finding what it needs at the header of the file?

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        There isn't any documentation for this, but you can find the code at https://github.com/dc42/RepRapFirmware/blob/v2-dev/src/Storage/FileInfoParser.cpp. Most of the comment strings it looks for are in tables, so you can search for "static const char* const" to find them.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        jgrouseundefined 1 Reply Last reply Reply Quote 0
        • jgrouseundefined
          jgrouse @dc42
          last edited by

          @dc42 Thanks! I'll have a look through the code now.

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