Navigation

    Duet3D Logo

    Duet3D

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

    Can gcode comments contain non-ascii characters?

    General Discussion
    2
    3
    332
    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.
    • burtoogle
      burtoogle last edited by burtoogle

      I ask because I just discovered a really weird bug in some gcode that Cura produced for a printer controlled by Marlin (not RRF). The problem seems to be that in the following snippet, the line of gcode following the comment wasn't executed (or not executed correctly) because the z0.4 was ignored and the nozzle height didn't change.

      ;MESH:PluggMått v1.stl
      G0 F4500 X97.416 Y105.849 Z0.4
      

      So I am wondering whether it is wrong for Cura to allow anything but ascii characters to be in the comment or is it simply that Marlin is screwing up when it sees a non-ascii character?

      Does anyone know what the "standard" says about comment character encoding?

      Edit: the å character has been encoded as UTF-8.

      Thanks.

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

        I don't believe the standard says anything about encoding of comment characters.

        RepRapFirmware allows any characters in comments, other than control characters that may be interpreted as line end. In string arguments (filenames, messages etc.) RRF requires UTF8 encoding.

        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

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

          Thanks @dc42 , that's pretty much what I thought the answer would be.

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