M401 and M402 not working

  • 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.

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

    M280 P7 S5

    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.

  • administrators

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

  • 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.

Log in to reply