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

3.2 final execonmcode warning issue

Scheduled Pinned Locked Moved Solved
General Discussion
4
13
429
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.
  • undefined
    oozeBot
    last edited by 15 Jan 2021, 14:45

    I am not sure which category this needs to go in, so please move it accordingly.

    With 3.2 final (on a Duet 3 / RPi) mcodes that have custom scripts associated through execonmcode now result in a warning. This was not happening previously.

    m9999
    Warning: M9999: Command is not supported
    
    undefined 1 Reply Last reply 15 Jan 2021, 18:32 Reply Quote 0
    • undefined
      Phaedrux Moderator
      last edited by 15 Jan 2021, 18:11

      @wilriker may have some input?

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • undefined
        wilriker @oozeBot
        last edited by 15 Jan 2021, 18:32

        @oozeBot No idea right away but I don't see it on my system. Is it maybe because you used lower-case m?

        Manuel
        Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
        with probably always latest firmware/DWC (incl. betas or self-compiled)
        My Tool Collection

        1 Reply Last reply Reply Quote 0
        • undefined
          oozeBot
          last edited by 15 Jan 2021, 19:47

          Same result, but I tested a few other custom mCodes and it appears that this is only happening with M9999.. weird.

          M9999
          Warning: M9999: Command is not supported
          
          1 Reply Last reply Reply Quote 0
          • undefined
            PCR
            last edited by 15 Jan 2021, 20:00

            @oozeBot always happend to me. DWC dont know the Mcode. So it will say it

            undefined 1 Reply Last reply 15 Jan 2021, 20:46 Reply Quote 0
            • undefined
              PCR
              last edited by 15 Jan 2021, 20:01

              what you can do is making a macro names M9999.g and put nothing inside or only a M117 "Command"

              1 Reply Last reply Reply Quote 0
              • undefined
                PCR
                last edited by 15 Jan 2021, 20:04

                https://www.youtube.com/watch?v=WxcLDUF9zMs&t

                here you can see it at the end of the video

                1 Reply Last reply Reply Quote 0
                • undefined
                  Phaedrux Moderator
                  last edited by 15 Jan 2021, 20:07

                  What is M9999 supposed to be anyway?

                  Did you mean M999?

                  Z-Bot CoreXY Build | Thingiverse Profile

                  undefined 1 Reply Last reply 15 Jan 2021, 20:14 Reply Quote 0
                  • undefined
                    oozeBot @Phaedrux
                    last edited by 15 Jan 2021, 20:14

                    @Phaedrux it’s a custom mCode through execonmcode to safely shutdown the raspberry pi..

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Phaedrux Moderator
                      last edited by 15 Jan 2021, 20:28

                      thanks. I assumed but wasn't certain.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        oozeBot @PCR
                        last edited by 15 Jan 2021, 20:46

                        @PCR it's odd that it only happens on M9999.. none of my other custom mCodes.

                        undefined 1 Reply Last reply 18 Jan 2021, 08:17 Reply Quote 0
                        • undefined
                          wilriker @oozeBot
                          last edited by 18 Jan 2021, 08:17

                          @oozeBot How do you issue this command? I checked RRF source code and if the command reaches the Duet via PanelDue it will show this warning regardless which custom code you send. All paths that run through DCS should be handled.

                          Manuel
                          Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                          with probably always latest firmware/DWC (incl. betas or self-compiled)
                          My Tool Collection

                          undefined 1 Reply Last reply 13 May 2021, 14:11 Reply Quote 0
                          • undefined
                            oozeBot @wilriker
                            last edited by oozeBot 13 May 2021, 14:11

                            For posterior's sake, I figured this out. My custom mCode (M9999 in this case) to reboot the RPi is immediately shutting it down. DWC is still online long enough to process it as an unknown command since execonmcode doesn't return the call and reports unsupported.

                            It appears a method to reboot the RPi is being introduced in 3.3 (M999 B-1), so this will no longer be necessary.

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