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

    [Help] BLtouch not working with Duet Wifi; "Invalid Servo Index"

    Scheduled Pinned Locked Moved
    General Discussion
    2
    6
    3.1k
    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.
    • JohnnyCrashundefined
      JohnnyCrash
      last edited by

      A couple of weeks ago, I got a Duet Wifi and so far, so good! It hasn't been as easy to set up as the original RAMBo for my Rostock Max V2, but I've got it working, well enough so that I could print a new effector plate that'll let me use a BLtouch.
      I've followed a few guides to install my BLtouch, and it seems to function, but not "work" as intended. When I turn the printer on, the BLtouch glows red, the probe deploys and retracts. I figure this is a power-on self-test of the BLtouch itself.
      I've done the wiring and added the snippets of code to my config.g and made the macros according to a couple of different walkthroughs, and combinations thereof:

      • The "official" one from Duet3d: https://duet3d.com/wiki/Connecting_a_Z_probe

      • The one by BeTrue3D: https://betrue3d.dk/bltouch-on-duet-wifi-duetreprapfirmware/

      • Duet3D forums: https://www.duet3d.com/forum/thread.php?id=2062

      However, when I start the "Deploy Probe" or "Retract Probe" macros, I get the following message:

      [c]M98 P0:/macros/Deploy Probe
      Error: Invalid servo index 3 in M280 command[/c]

      I've tried using the PWM for Heater 3 and Heater 8, and checked my wiring a few times. My config.g is here: https://pastebin.com/nGkVPpnJ
      I feel like I must be missing something very simple. Wiring Pics: https://imgur.com/gallery/eaal6
      Once I'm past this hiccup, I think I can get the autoleveling and probe height stuff figured out.

      Any help would be appreciated!

      My macros are as follow for deploy and retract, respectively:
      [c]M280 P3 S10 I1[/c]
      [c]M280 P3 S90 I1[/c]
      I've played with the P values in both to reflect the values in my config.g, but no dice.

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

        It sounds as though this line:

        M307 H3 A-1 C-1 D-1

        isn't working. What firmware version are you running? If you send M307 H3 with no other parameters, what does it report?

        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
        • JohnnyCrashundefined
          JohnnyCrash
          last edited by

          Firmware version is 1.19, I'll check the M307 command response once I get home today! Thanks for the fast response!

          1 Reply Last reply Reply Quote 0
          • JohnnyCrashundefined
            JohnnyCrash
            last edited by

            @dc42:

            It sounds as though this line:

            M307 H3 A-1 C-1 D-1

            isn't working. What firmware version are you running? If you send M307 H3 with no other parameters, what does it report?

            So, sending just M307 H3 results in:

            M307 H3
            Heater 3 model: gain 340.0, time constant 140.0, dead time 5.5, max PWM 1.00, mode: PID
            Computed PID parameters for setpoint change: P13.4, I0.095, D51.4
            Computed PID parameters for load change: P13.4, I0.949, D51.4
            
            

            Thanks for the patience, and the help. Great to see a dev continuing to support a great product!

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

              So the M307 H3 command isn't working, or else it is being overridden. Perhaps there is one in your config-override.g file as well? If so, delete it. If not, delete and re-type the original M307 H3 line in config.g in case it contains an unprintable character.

              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
              • JohnnyCrashundefined
                JohnnyCrash
                last edited by

                @dc42:

                So the M307 H3 command isn't working, or else it is being overridden. Perhaps there is one in your config-override.g file as well? If so, delete it. If not, delete and re-type the original M307 H3 line in config.g in case it contains an unprintable character.

                Ugh you're the best. I knew I was overlooking something simple…! It was overridden.

                My config-override.g is as follows:

                ; This is a system-generated file - do not edit
                ; Delta parameters
                M665 L291.060 R144.158 H387.800 B120.0 X0.000 Y0.000 Z0.000
                M666 X0.000 Y0.000 Z0.000 A0.00 B0.00
                ; Heater model parameters
                M307 H0 A100.7 C757.4 D25.1 S1.00 B0
                M307 H1 A516.8 C155.7 D2.9 S1.00 B0
                M307 H2 A340.0 C140.0 D5.5 S1.00 B0
                M307 H3 A340.0 C140.0 D5.5 S1.00 B0
                M307 H4 A340.0 C140.0 D5.5 S1.00 B0
                M307 H5 A340.0 C140.0 D5.5 S1.00 B0
                M307 H6 A340.0 C140.0 D5.5 S1.00 B0
                M307 H7 A340.0 C140.0 D5.5 S1.00 B0
                ; Z probe parameters
                G31 T1 P500 X0.0 Y0.0 Z-0.05
                G31 T3 P500 X0.0 Y0.0 Z0.70
                G31 T4 P500 X0.0 Y0.0 Z0.00
                
                

                Thank you so so much! Now I can figure the rest of this stuff out!

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