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

    BLtoch trigger event for sanity check

    Scheduled Pinned Locked Moved
    General Discussion
    4
    12
    543
    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.
    • engikeneerundefined
      engikeneer @semi55
      last edited by

      @semi55 you could configure it as a zprobe. Then you can query the zprobe reading from the object model. Not sure what the actual code would be off the top of my head though
      You would have to deploy the bltouch pin though with M401, then retract it after

      E3D TC with D3Mini and Toolboards.
      Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
      i3 clone with a bunch of mods

      semi55undefined 1 Reply Last reply Reply Quote 0
      • semi55undefined
        semi55 @engikeneer
        last edited by semi55

        @engikeneer Thanks for your comment, sry I did not mention that I’ve already setup the BLtouch as Z-probe.

        I've tested your recommendation.
        First, I’ve tested the code for the "zProbeAsEndstop" object model:

        4db97fb6-3e04-4aa6-9c3b-a23c2d183a51-image.png

        This is my test macro:

        G91               		;relative positioning
        
        M564 H0						;allow movement without homing
        G1 H2 Y-15 X15 F10000   ;lift y relative to current position
        
        
        M401 					;deploy probe
        G1 H1 Y-285 F2400 		;move Y down until BLTouch is triggered
        
        ;check status of Bltouch
        if sensors.endstops[1].triggered == true								
        
        	M291 P{" Probe triggered"} S1
        	G1 Y4 F30000 			;Backoff 3mm
        else
        	M291 P{" Not recognized"} S1
        	G1 Y4 F30000 			;Backoff 3mm
        

        Second test was the probe value itself:
        7e9900d0-4eb4-4951-8126-7b3d7c17febe-image.png

        This is the second test macro:

        G91               		;relative positioning
        
        M564 H0						;allow movement without homing
        G1 H2 Y-15 X15 F10000   ;lift y relative to current position
        
        
        M401 					;deploy probe
        G1 H1 Y-285 F2400 		;move Y down until BLTouch is triggered
        
        ;check status of Bltouch
        if sensors.probes[0].value[0] > 0								
        
        	M291 P{" Probe triggered"} S1
        	G1 Y4 F30000 			;Backoff 3mm
        else
        	M291 P{" Not recognized"} S1
        	G1 Y4 F30000 			;Backoff 3mm
        

        Unfortunately, I always get "Not recognized" as message

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

          @semi55

          Hi,

          Why a BLTouch instead of, say, a microswitch?

          Frederick

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

          semi55undefined 1 Reply Last reply Reply Quote 0
          • semi55undefined
            semi55 @fcwilt
            last edited by

            @fcwilt because I use the BLtouch also for leveling purposes and I want to make use of this sensor as it is already mounted on the tool.

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

              @semi55 said in BLtoch trigger event for sanity check:

              @fcwilt because I use the BLtouch also for leveling purposes and I want to make use of this sensor as it is already mounted on the tool.

              If you are using it for leveling purposes how will it trigger when moving the Y axis?

              Frederick

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

              semi55undefined 1 Reply Last reply Reply Quote 0
              • semi55undefined
                semi55 @fcwilt
                last edited by semi55

                @fcwilt I am using it on a belt printer with a tilted 45 degree axis, so the leveling happens on the Y-Axis

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

                  @semi55 said in BLtoch trigger event for sanity check:

                  @fcwilt I am using it on a belt printer with a tilted 45 degree axis

                  Interesting.

                  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
                  • brainiac27undefined
                    brainiac27
                    last edited by

                    @semi55 I'm having the same problem with the probe value. After a major crash, putting together a BlTouch self-check macro. No matter what, I can't get the value to change unless the BlTouch is in the alarm mode.

                    fcwiltundefined semi55undefined 2 Replies Last reply Reply Quote 0
                    • fcwiltundefined
                      fcwilt @brainiac27
                      last edited by

                      @brainiac27 said in BLtoch trigger event for sanity check:

                      @semi55 I'm having the same problem with the probe value. After a major crash, putting together a BlTouch self-check macro. No matter what, I can't get the value to change unless the BlTouch is in the alarm mode.

                      The value is changing but you are likely not going to be able to catch that change as it is quickly cleared.

                      Frederick

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

                      brainiac27undefined 1 Reply Last reply Reply Quote 0
                      • semi55undefined
                        semi55 @brainiac27
                        last edited by

                        @brainiac27 That is exactly what I've done right now as a work around. I let the BLtouch enter the alarm mode and use that as a trigger event for further commands.

                        1 Reply Last reply Reply Quote 0
                        • brainiac27undefined
                          brainiac27 @fcwilt
                          last edited by

                          @fcwilt Thanks for pointing that out, I now see how the probe value blips during a mesh level. Now I just check that the value is 0 before and after running a BlTouch self test for a couple seconds. Already saved my hide once while I figure out my intermittent issue.

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