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

    Maestro config not being executed on startup

    Scheduled Pinned Locked Moved Solved
    General Discussion
    7
    19
    874
    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.
    • JoshLundefined
      JoshL
      last edited by

      I get these two errors:

      Error: M911: No power fail script provided
      Error: G0/G1: insufficient axes homed

      1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User
        last edited by

        not too familiar with how the firmware handles errors, but does it make a difference to move the network config block up to over the M911 command? or commenting out the offending lines with a ;

        1 Reply Last reply Reply Quote 0
        • JoshLundefined
          JoshL
          last edited by

          Ah yep so I got rid of the M911 line from the config and that's fixed it. The error must have been stopping the Duet from reading the rest of the config file. Thanks heaps for the help.

          1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User
            last edited by

            fyi https://forum.duet3d.com/topic/7773/forum-feature-mark-as-question-solved/

            1 Reply Last reply Reply Quote 0
            • droftartsundefined
              droftarts administrators
              last edited by

              @joshl said in Maestro config not being executed on startup:

              M911 S21 R23 P'M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000' ; set voltage thresholds and actions to run on power loss

              I can't see anything particularly wrong with this line, except you've used single quotes rather than double quotes. However, you probably need to set up the sys/resurrect-prologue.g file.
              See here for more details: https://duet3d.dozuki.com/Wiki/Setting_up_to_resume_a_print_after_a_power_failure

              Ian

              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

              themelleundefined 1 Reply Last reply Reply Quote 0
              • themelleundefined
                themelle @droftarts
                last edited by

                @droftarts said in Maestro config not being executed on startup:

                I can't see anything particularly wrong with this line, except you've used single quotes rather than double quotes.

                According to https://duet3d.dozuki.com/Wiki/Gcode#Section_M911_Configure_auto_save_on_loss_of_power you need to use double quotes for the P parameter.
                The message Error: G0/G1: insufficient axes homed leads me to think that the single-quoted P parameter command line from the M911command is being interpreted and executed at config.g runtime as there is a G1 command in there.

                A Former User? 1 Reply Last reply Reply Quote 0
                • A Former User?
                  A Former User @themelle
                  last edited by

                  @themelle that seems to be the explanation, I was wondering where the G0/G1 line was.
                  0_1567596359027_d0ed7c86-72ad-4bc5-a62e-fe3d2947e023-image.png

                  1 Reply Last reply Reply Quote 0
                  • A Former User?
                    A Former User @JoshL
                    last edited by A Former User

                    @joshl said in Maestro config not being executed on startup:

                    including going through RepRap firmware configuration tool to generate a config file.

                    Did the RRF configurator generate the M911 line with single quotes? If so that should probably be filed as a bug

                    A Former User? 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User @A Former User
                      last edited by

                      @bearer said in Maestro config not being executed on startup:

                      Did the RRF configurator generate the M911 line with single quotes? If so that should probably be filed as a bug

                      it is a bug @chrishamm 👆

                      1 Reply Last reply Reply Quote 0
                      • A Former User?
                        A Former User
                        last edited by

                        I would move the whole network section of g code to almost the top of the config.g file so that the network gets started first...

                        1 Reply Last reply Reply Quote 0
                        • A Former User?
                          A Former User
                          last edited by

                          @calvinx said in Maestro config not being executed on startup:

                          I would move the whole network section of g code to almost the top of the config.g file so that the network gets started first...

                          seems it was further up earlier, but changed recently, and the quotes bug was introduced at the same time. wonder if that is the reason for the sudden increase in threads with network issues.

                          anyways, hopefully the quotes will be fixed and the network moved back to the top shortly.

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

                            The position of the network command shouldn't matter, but the wrong quotes for the power loss recovery halting the execution of the config certainly is a problem.

                            Oddly, if the network section hadn't been moved down it would have been much harder to spot the wrong quote problem.

                            Z-Bot CoreXY Build | Thingiverse Profile

                            A Former User? 1 Reply Last reply Reply Quote 0
                            • A Former User?
                              A Former User @Phaedrux
                              last edited by

                              @phaedrux said in Maestro config not being executed on startup:

                              The position of the network command shouldn't matter

                              for users who find it difficult to use the serial terminal it does matter when errors are introduced, further complicated by the missmatch between default EOL in the firmware and the recommended terminal.

                              if the network were given "priority" at the top, and the web interface and/or paneldue would indicate that config.g was terminated due to an error everyone wins.

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

                                @bearer No argument there.

                                One helpful trick for issues like this is to send M98 Pconfig.g which will re-execute config.g as a macro, and any error messages will be echoed back, unlike at startup. I do wish that any startup errors would get punted to the console as well, but currently that's not the case.

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 1
                                • MrsDelishundefined
                                  MrsDelish
                                  last edited by

                                  I find Arduino IDE serial monitor really quick and easy to use to talk to Duets and other boards, it has a drop down menu to set line endings and baud rate on the serial window.

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