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

    Error: Bad command: macros

    Scheduled Pinned Locked Moved Solved
    General Discussion
    5
    22
    1.2k
    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.
    • dc42undefined
      dc42 administrators @Topher
      last edited by dc42

      @leckietech although officially M98 requires quotes around the filename in RRF3, unofficially it still works without them in standalone mode. So I wonder whether S3D does something special with the forward-slash character. Have you checked what the generated GCode file contains?

      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

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

        @dc42 said in Error: Bad command: macros:

        @leckietech although officially M98 requires quotes around the filename in RRF3, unofficially it still works without them in standalone mode. So I wonder whether S3D does something special with the forward-slash character. Have you checked what the generated GCode file contains?

        when you and I were talking about this the other day, I never did get a proper output using additional quotes from S3D. I also saw on simplify's forums that many others were having the same trouble since 2018 with no solution. After you suggested making my own M codes, since then I have been using this and my own custom G110 and G111 firmware retraction codes with much success, it simply works flawlessly. I've made a dozen of my own custom codes and am in the works of adding these to all the printers in our farm! Opens the door to so much flexibility!

        code7undefined 1 Reply Last reply Reply Quote 1
        • code7undefined
          code7 @Topher
          last edited by

          @leckietech @fcwilt

          Thanks for the good work arounds. The script is run on retractions.

          @dc42
          This line produced by S3D runs fine when pasted into the DWC console, but it doesn't run from inside of a gcode file.
          "M98 P/macros/Power_OFF"

          Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

          dc42undefined fcwiltundefined 2 Replies Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @code7
            last edited by

            @code7 said in Error: Bad command: macros:

            This line produced by S3D runs fine when pasted into the DWC console, but it doesn't run from inside of a gcode file.
            "M98 P/macros/Power_OFF"

            Please make the GCode file available on a file sharing site - dont copy and paste the contents because I think there may be a non-printing character embedded in that line.

            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

            1 Reply Last reply Reply Quote 0
            • fcwiltundefined
              fcwilt @code7
              last edited by

              @code7 said in Error: Bad command: macros:

              The script is run on retractions.

              Your turning some power supply off on every retraction????

              Frederick

              Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

              1 Reply Last reply Reply Quote 0
              • code7undefined
                code7 @Topher
                last edited by code7

                @leckietech said in Error: Bad command: macros:

                I thought of an easier way for you to do this. Just make a file in your system directory called M102.g and put your PSU macro text in the file. M102 isn't used by RRF so you can use it natively right out of S3D, not need to run any post in S3D for it.

                I've tried this with the M102.g macro within the system directory. When I send M102 from the console the green popup displays indicating the command is good but nothing runs. Do you know why this might be?

                @dc42
                Here is the S3D gcode file

                @fcwilt I'm turning off a device at each retraction.

                Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

                Topherundefined fcwiltundefined 2 Replies Last reply Reply Quote 0
                • Topherundefined
                  Topher @code7
                  last edited by

                  @code7 can you post what is in the M102.g file?

                  1 Reply Last reply Reply Quote 0
                  • fcwiltundefined
                    fcwilt @code7
                    last edited by

                    @code7 said in Error: Bad command: macros:

                    @fcwilt I'm turning off a device at each retraction.

                    And you cannot use the user code hook in S3D for retraction?

                    Frederick

                    Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

                      @code7 M101, M102 and M103 are already implemented. Use a different code. I don't know why they are not listed on the GCodes wiki page.

                      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

                      code7undefined 1 Reply Last reply Reply Quote 1
                      • code7undefined
                        code7 @dc42
                        last edited by

                        @dc42
                        I changed M102.g to another number and it's working great now. Thanks

                        Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

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