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

    Euclid probe unnecessary docking

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    6
    16
    602
    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.
    • Joeyhersheyundefined
      Joeyhershey
      last edited by Joeyhershey

      I so the issue I'm having is that after the probe does the bed leveling it docks the probe and then goes and picks it back up to do the bed mesh. these wastes time docking and undocking.
      How do I stop this? Do i need to add a code into my slicer??
      bed.g
      mesh.g

      dc42undefined sinned6915undefined 2 Replies Last reply Reply Quote 0
      • A Former User?
        A Former User
        last edited by A Former User

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @Joeyhershey
          last edited by

          @Joeyhershey use M401 to deploy the probe at the start of the sequence and M402 to stow it at the end.

          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

          A Former User? Joeyhersheyundefined 2 Replies Last reply Reply Quote 0
          • A Former User?
            A Former User @dc42
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • Joeyhersheyundefined
              Joeyhershey @dc42
              last edited by

              @dc42 so do I need to combine the two codes into one with using the M401 &402 code??

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

                @Joeyhershey said in Euclid probe unnecessary docking:

                @dc42 so do I need to combine the two codes into one with using the M401 &402 code??

                I'm not sure what you mean, but here is what DC42 is suggesting

                M401 ; deploy probe
                ;;;Euclid Probe;;;
                M561 ; clear any bed transform
                G30 P0 X10 Y70 Z-99999        ; probe near leadscrew 1
                G30 P1 X60 Y120 Z-99999       ; probe near leadscrew 1
                G30 P2 X110 Y170 Z-99999      ; probe near leadscrew 1
                G30 P3 X160 Y220 Z-99999      ; probe near leadscrew 1
                G30 P4 X250 Y475 Z-99999      ; probe near leadscrew 2
                G30 P5 X250 Y425 Z-99999      ; probe near leadscrew 2
                G30 P6 X250 Y375 Z-99999      ; probe near leadscrew 2
                G30 P7 X250 Y325 Z-99999      ; probe near leadscrew 2
                G30 P8 X470 Y70 Z-99999       ; probe near leadscrew 3
                G30 P9 X420 Y120 Z-99999      ; probe near leadscrew 3
                G30 P10 X370 Y170 Z-99999     ; probe near leadscrew 3
                G30 P11 X320 Y220 Z-99999 S3  ; probe near leadscrew 3 and calibrate 3 motors
                M402 ; dock probe
                

                Z-Bot CoreXY Build | Thingiverse Profile

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

                  This post is deleted!
                  dc42undefined 1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators @A Former User
                    last edited by

                    To clarify: RRF keeps track of how many deploy and retract commands have been issued, either explicitly using M401/M402 or implicitly by G29 S0 or G30. If you don't use M401/M402 then every time you command G29 S0 or G30 then RRF will deploy the probe at the start of the command and retract it at the end. However, if you use M401 first then when you use G29 S0 or G30 then RRF knows the probe is already deployed and doesn't deploy and retract it.

                    So if you want to run both auto calibration or bed tramming AND mesh bed probing, then you should use M401 to deploy the probe, execute the G30 commands for auto calibration or bed tramming, then command G29 S0, and finally M402 to retract the probe. You can do all of this in a single macro as @Herve_Smith suggested.

                    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

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

                      This post is deleted!
                      dc42undefined 1 Reply Last reply Reply Quote 0
                      • dc42undefined
                        dc42 administrators @A Former User
                        last edited by

                        @Herve_Smith said in Euclid probe unnecessary docking:

                        @dc42 said in Euclid probe unnecessary docking:

                        To clarify: RRF keeps track of how many deploy and retract commands have been issued

                        What is the purpose of keeping track of that information ?

                        So that if e.g. you have a macro that uses M401 and then commands G32, and your bed.g file also uses M401, then the probe won't be retracted when the M402 in bed.g is executed but instead will remain deployed until the M402 in the original macro is executed.

                        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

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

                          This post is deleted!
                          dc42undefined 1 Reply Last reply Reply Quote 0
                          • dc42undefined
                            dc42 administrators @A Former User
                            last edited by

                            @Herve_Smith for the OP's case, if he wants to run a sequence of G30 commands in bed.g and collect/stow the probe just once, he needs to use M401 and M402.

                            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

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

                              This post is deleted!
                              dc42undefined 1 Reply Last reply Reply Quote 0
                              • dc42undefined
                                dc42 administrators @A Former User
                                last edited by

                                @Herve_Smith I guess you haven't used deployprobe.g or retractprobe.g then.

                                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
                                • sinned6915undefined
                                  sinned6915 @Joeyhershey
                                  last edited by

                                  @Joeyhershey did you get this sorted?

                                  It took us a while to figure out the RRF behavior when developing Euclid because this wasn't well documented. The RRF2 & RRF3 examples have comments within then with regards to wrapping the gcodes and macros within M401 and M402 sets.

                                  as dc42 explained, RRF's deploy token is checked internally, you want to be consistent with M401/M402. this advice is based on experience, not opinion.

                                  M401 and M402 are the NIST standard gcodes for probe deploy and retract. At least thay have been the gcodes in reprap for 15 years +/- now. They call the deplyprobe.g and retractprobe.g macros. As dc42 pointed out, the associations are built in, don't rename them.

                                  Looking at your files, you have mixed BLTouch commands and Euclid commands. I recommend that you get rid of all the old BLT stuff. I don't know how BLT works with RRF, but the M280 may be triggering the probe token as well.

                                  you can check with something like this-
                                  echo "Probe Value =" ^sensors.probes[0].value[0]

                                  If you are clever, you can write a conditional gcode that could check for probe delployed or not and have that in your files.

                                  Lastly, you might notice why the Euclid examples do not check the check the OM probe variable for deploy: we check the actual probe value to ensure pickup in case of a mis-deploy.

                                  sinneD

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

                                    @sinned6915 said in Euclid probe unnecessary docking:

                                    Lastly, you might notice why the Euclid examples do not check the check the OM probe variable for deploy: we check the actual probe value to ensure pickup in case of a mis-deploy.

                                    sinneD

                                    So you have a new version of the probe where the presence/absence of the switch can be detected?

                                    Thanks.

                                    Frederick

                                    Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                    1 Reply Last reply Reply Quote 0
                                    • Surgikillundefined Surgikill referenced this topic
                                    • DIY-O-Sphereundefined DIY-O-Sphere referenced this topic
                                    • izemanundefined izeman referenced this topic
                                    • First post
                                      Last post
                                    Unless otherwise noted, all forum content is licensed under CC-BY-SA