Z Probe not working with G30

Hi, Sorry for starting a new discussion, but I have not seen a solution to my issue.  I have been struggling with this for over a week and would really appreciate some help.

I have a home built CNC machine with a print head attached.  Electronic for 3d printing is:

arduino-mega2560 with Ramps 1.4.  XYZ steppers powered by Gecko drivers hooked up to step and dir on Ramps board, printhead by Polu driver on Ramps board.

I have successfully printed items.  I want to enable auto levelling as I want to quickly change from CNC to 3d Printer mode.

 

Z axis protection on Z Max pin. Z probe switch connected to Z Min pin, switch normally open.

Testing using G31 works.  Using G30 to test fails, I have to do an emergency stop as Z axis continues to drive down even when switch is activated.

Log below:

Homed all axis:

N19 G28 X0 *67
X:0.00 Y:0.00 Z:0.000 E:0.0000
N22 G28 Y0 *74
X:0.00 Y:0.00 Z:0.000 E:0.0000
N24 G28 Z0 *79
X:0.00 Y:0.00 Z:59.600 E:0.0000

Tested G31
N34 G31 *12
Z-probe state:L

Activated switch:
N37 G31 *15
Z-probe state:H

config.h Z auto portion:

// #################### Z-Probing #####################

#define FEATURE_Z_PROBE 1
#define Z_PROBE_BED_DISTANCE 20
#define Z_PROBE_PIN ORIG_Z_MIN_PIN
#define Z_PROBE_PULLUP 1
#define Z_PROBE_ON_HIGH 0
#define Z_PROBE_X_OFFSET 0
#define Z_PROBE_Y_OFFSET 0
#define Z_PROBE_WAIT_BEFORE_TEST 0
#define Z_PROBE_SPEED 2
#define Z_PROBE_XY_SPEED 15
#define Z_PROBE_SWITCHING_DISTANCE 10
#define Z_PROBE_REPETITIONS 1
#define Z_PROBE_HEIGHT 6.25
#define Z_PROBE_START_SCRIPT ""
#define Z_PROBE_FINISHED_SCRIPT ""
#define FEATURE_AUTOLEVEL 1
#define Z_PROBE_X1 0
#define Z_PROBE_Y1 45
#define Z_PROBE_X2 0
#define Z_PROBE_Y2 235
#define Z_PROBE_X3 279
#define Z_PROBE_Y3 100
#define FEATURE_AXISCOMP 0
#define AXISCOMP_TANXY 0
#define AXISCOMP_TANYZ 0
#define AXISCOMP_TANXZ 0

 

 

 

Comments

  • Update:

    Using Repetier host v1.06 on Windows 7, firmware 0.92

  • Hello

    Did you ever fix this?

    Try the following - Set the printer z-height to something like 10 mm less then actual bed height (rough measured with meas tape). If the home position to z table is measured to maybe 80mm you need to put z height to 70 in firmware. 

    Then do:
    G28  (to home)
    G1 z5 f3000 (to go down)
    G30

    See if that works. 
  • Hi Lars

    Thank you very much for responding and your advice.  Problem was that I was too nervous and expecting the G30 to be triggered by me manually when it was much higher up.

    I now have the machine auto levelling.  Still need to dial it in to set Z0, but that should not be too hard.

     

    New config.h

    // #################### Z-Probing #####################

    #define FEATURE_Z_PROBE 1
    #define Z_PROBE_BED_DISTANCE 20
    #define Z_PROBE_PIN ORIG_Z_MIN_PIN
    #define Z_PROBE_PULLUP 1
    #define Z_PROBE_ON_HIGH 0
    #define Z_PROBE_X_OFFSET 0
    #define Z_PROBE_Y_OFFSET 0
    #define Z_PROBE_WAIT_BEFORE_TEST 0
    #define Z_PROBE_SPEED 2
    #define Z_PROBE_XY_SPEED 100
    #define Z_PROBE_SWITCHING_DISTANCE 10
    #define Z_PROBE_REPETITIONS 1
    #define Z_PROBE_HEIGHT 7.65
    #define Z_PROBE_START_SCRIPT "G28 Z G28 X G28 Y"
    #define Z_PROBE_FINISHED_SCRIPT ""
    #define FEATURE_AUTOLEVEL 1
    #define Z_PROBE_X1 0
    #define Z_PROBE_Y1 45
    #define Z_PROBE_X2 0
    #define Z_PROBE_Y2 235
    #define Z_PROBE_X3 279
    #define Z_PROBE_Y3 100
    #define FEATURE_AXISCOMP 0
    #define AXISCOMP_TANXY 0
    #define AXISCOMP_TANYZ 0
    #define AXISCOMP_TANXZ 0

Sign In or Register to comment.