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

    M401 and M402 not working

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    3
    758
    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.
    • mildw4veundefined
      mildw4ve
      last edited by

      What could be the cause of M401 and M402 not activating deployprobe.g and retractprobe.g in sys directory? I'm using a 9g servo with a microswitch mounted to it, servo is connected to a DUEX5 board, PWM5, here are my setup gcodes.

      config.g
      ;Servo
      M307 H7 A-1 C-1 D-1 ; Disable heater 7/PWM5 for SERVO
      M402 ; Make sure the servo is retracted

      deployprobe.g
      M280 P7 S5

      retractprobe.g
      M280 P7 S100

      Here is the funny part, it was working up until today when for some reason the bed leveling procedure resulted in the zprobe not activating and pushing into the bed, the servo broke down. I connected a new servo and when I type "M280 P7 S100" or "M98 Pretractprobe.g" (same for deploy) in the gcode console it works perfectly fine.
      However trying to execute "M401" or "M402" results in no change whatsoever.

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

        M401 and M402 will do nothing if the Z probe type is set to "none", i.e. P0 in the M558 command.

        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
        • mildw4veundefined
          mildw4ve
          last edited by

          That was it, I forgot I changed my z probe setting file name, one that is referenced in config.g using M98 command and after the change it didn't load. Thank You.

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