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

    M117 Bad Command

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    10
    608
    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.
    • mitchundefined
      mitch
      last edited by mitch

      Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.01-beta3 (2020-01-29b1)
      Duet2 Ethernet

      I have been getting errors in scripts randomly that use the M117 command. Some work. Some don't.
      m117.png

      1 Reply Last reply Reply Quote 0
      • jens55undefined
        jens55
        last edited by

        Try using double quotes around the message as in
        M117 "purging material"

        1 Reply Last reply Reply Quote 0
        • mitchundefined
          mitch
          last edited by mitch

          It is indeed in the simplify 3d Start script:

          ; Ender 5 Custom Start G-code
          
          M80; Turn on Printer
          M117 Pre-heating Bed
          M140 S[bed0_temperature] ; Set Heat Bed temperature
          M190 S[bed0_temperature] ; Wait for Heat Bed temperature
          M117 Pre-heating extruder
          M117 Heating extruder
          M104 S[extruder0_temperature] ; Set Extruder temperature
          G28 ; Home all axes
          M117 Auto bed-leveling
          G29 ; Auto bed-level (BL-Touch)
          G92 E0 ; Reset Extruder
          M109 S[extruder0_temperature] ; Wait for Extruder temperature
          
          G1 Z1.0 F3000 ; move z up little to prevent scratching of surface
          G1 X0.1 Y20 Z0.3 F5000.0 ; move to start-line position
          
          M117 Purging Material
          G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; draw 1st line
          G1 X0.4 Y200.0 Z0.3 F5000.0 ; move to side a little
          G1 X0.4 Y20 Z0.3 F1500.0 E30 ; draw 2nd line
          G92 E0 ; reset extruder
          G1 Z1.0 F1500 ; move z up little to prevent scratching of surface
          M117 Printing
          
          ; End of custom start GCode
          

          However, the "Purging Material" lines seems to be the only one that the Duet complains about. Several of the other M117 commands execute just fine.

          1 Reply Last reply Reply Quote 0
          • jens55undefined
            jens55
            last edited by

            Just for curiosity sake, put the quotation marks around it and see what happens.
            I know it doesn't make sense but humour me, please !

            1 Reply Last reply Reply Quote 0
            • mitchundefined
              mitch
              last edited by

              Will do. I have a print still running for the rest of the day. I will try that as soon as this one completes.

              The only thing I see that makes that line unique is the blank line before it??

              1 Reply Last reply Reply Quote 0
              • jens55undefined
                jens55
                last edited by

                Yes, I have noticed that as well. The reason I am asking you to run that line with quotes is because I had a similar issue where some M117 commands without quotes didn't work and then worked fine once quoted. According to DC42, both quoted and unquoted should work (and they do for you) but since I have seen the weirdness before, I think it is worthwhile testing it.

                1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  I dunno what happened to me in my formative years, but having a string WITHOUT quotes makes me nervous.

                  Z-Bot CoreXY Build | Thingiverse Profile

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

                    @mitch, please can you post (either here or on a file sharing site such as Dropbox) a GCode file that demonstrates the problem, so that I can try to reproduce the problem and fix it.

                    I have already tested that your failing M117 line preceded by a blank line works for me.

                    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

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

                      @dc42

                      Will do. I am on travel so it may be a few days but happy to post a file with the issue when I return.

                      1 Reply Last reply Reply Quote 0
                      • mitchundefined
                        mitch
                        last edited by

                        eyeball4_2 trunkcated.gcode

                        I truncated the file to meet the upload limit but here is the offending file. same error on that same M117 line every print.

                        I haven't tried with quotes. Pretty confident that would fix it. But I get that it should work both ways and you want to see why is causing the problem. Much appreciated.

                        thanks

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