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

Help with M577 not acting on Z endstop using BLTouch

Scheduled Pinned Locked Moved
General Discussion
2
5
505
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.
  • undefined
    Profec
    last edited by Profec 13 Oct 2018, 12:27

    Hi,

    I cant get M577 to pick up my BLTouch output.

    I'm running 2.02RC2(RTOS) (2018-09-07b2) on a duet wifi and I have a BLTouch probe being used as Z endstop which all works fine.

    On power up I want to check the BLTouch wiring so I've created a macro to tell the BLTouch to change its output state while I test it with M577.

    Looking in machine properties my Z endstop says not triggered normally and after sending the BLTouch command to set the output triggered it says the Z endstop is triggered and the Z probe changes to 1000.

    M577 does not pick up the endstop changing so the macro hangs, this also happens just entering M577 into the GCode console.

    Changing my macro to work using the X endstop works correctly, I've tested that it works with the endstop when its already in the triggered state in case M577 was edge triggered.

    Can M577 be used with the Z probe? (S3 mentions a Zprobe)

    Is there a better way to test the BLTouch on power up?

    My macro (although I've narrowed it down to M577 Z S1/2/3 hanging)

    M280 P3 S90 I1 ; retract probe
    G4 P100 ;
    M280 P3 S60 I1 ; set bltouch output 1000
    G4 P100 ;
    M117 wait for triggered
    M577 Z S2 ; tried S1/2/3
    M280 P3 S90 I1 ; retract bltouch (output 0)
    G4 P100 ;
    M117 wait for not triggered
    M577 Z S0 ;
    M117 done

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 13 Oct 2018, 13:27

      A BLTouch is not the same as a Z endstop, so M577 Z will not wait for it. M577 can't currently be used with a Z probe. You may be able to use M583.

      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
      • undefined
        Profec
        last edited by 13 Oct 2018, 14:06

        Thanks, unfortunately I get command not supported.

        3:03:37 PM M583
        Warning: M583 command is not supported

        Otherwise it looks like what I'd like
        M583 P33 R1000 S200, wait for a value of 800-1200 on pin 33.

        I've had a look for pin numbering and couldn't find the pin for Z_PROBE in the wiring diagrams or using IO pins section.
        I've looked at the source code for DuetNG and found
        // Analogue pin numbers
        constexpr Pin Z_PROBE_PIN = 33;
        Is this where I should be looking for pin numbers?

        1 Reply Last reply Reply Quote 0
        • undefined
          Profec
          last edited by 13 Oct 2018, 14:09

          Preferably I'd use M583 but perhaps I could jumper the BLTouch pin to one of the extra end stop pins on the expansion connector, I think I saw a post from you saying that the extra endstops are disabled and used for chip selects now though?

          1 Reply Last reply Reply Quote 0
          • undefined
            dc42 administrators
            last edited by 13 Oct 2018, 18:32

            It looks like someone (not me) added M583 to the wiki, intending to implement it, but never did it. I'll remove the wiki entry.

            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
            5 out of 5
            • First post
              5/5
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA