# Problem with Z axis

2»

• so change
from
#define INVERT_Z_DIR 0
to
#define INVERT_Z_DIR 1

• RAyWB said:
so change
from
#define INVERT_Z_DIR 0
to
#define INVERT_Z_DIR 1

I've tried, it don't work

• so moving direction should change  when you change this parameter .
• RAyWB said:
so change
from
#define INVERT_Z_DIR 0
to
#define INVERT_Z_DIR 1

Because wit invert all the z axis and It's worst
• I've tried to changed too this

#define Z_HOME_DIR -1

but don't do anithing
• Dave_Da48 said:
I've tried to changed too this

#define Z_HOME_DIR -1

but don't do anithing
this just says the homing direction.
-1 is zmin,
1 is zmax
• RAyWB said:
so moving direction should change  when you change this parameter .
Escuse me but im not that stupid, my problem is strange
• edited January 6
Dave_Da48 said:
Escuse me but im not that stupid, my problem is strange
so good luck , just tried to help
• RAyWB said:
Dave_Da48 said:
I've tried to changed too this

#define Z_HOME_DIR -1

but don't do anithing
this just says the homing direction.
-1 is zmin,
1 is zmax
And how i can change the homing direction? because the gereral direction o the Z axis still good, i ask go up, it go up, the problem is juste the homing dir ant the endstop
• RAyWB said:
Dave_Da48 said:
Escuse me but im not that stupid, my problem is strange
so good luck , just tried to help
Yes and thanks you
• edited January 6
do you have a space between

#define Z_HOME_DIR    and -1 ?

you previously posted

#define Z_HOME_DIR -1  (no space)

but it has to be

#define Z_HOME_DIR  -1

• RAyWB said:
do you have a space between

#define Z_HOME_DIR    and -1 ?

you previously posted

#define Z_HOME_DIR -1  (no space)

but it has to be

#define Z_HOME_DIR  -1

// ################# XYZ movements ###################

#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define DISABLE_X 0
#define DISABLE_Y 0
#define DISABLE_Z 0
#define DISABLE_E 0
#define INVERT_X_DIR 0
#define INVERT_X2_DIR 0
#define INVERT_Y_DIR 0
#define INVERT_Y2_DIR 0
#define INVERT_Z_DIR 0
#define INVERT_Z2_DIR 0
#define INVERT_Z3_DIR 0
#define INVERT_Z4_DIR 0
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
#define X_MAX_LENGTH 210
#define Y_MAX_LENGTH 210
#define Z_MAX_LENGTH 220
#define X_MIN_POS 10
#define Y_MIN_POS 10
#define Z_MIN_POS 0
#define PARK_POSITION_X 10
#define PARK_POSITION_Y 10
#define PARK_POSITION_Z_RAISE 10

#define DISTORTION_CORRECTION 0
#define DISTORTION_CORRECTION_POINTS 5
#define DISTORTION_LIMIT_TO 2
#define DISTORTION_CORRECTION_R 100
#define DISTORTION_PERMANENT 1
#define DISTORTION_UPDATE_FREQUENCY 15
#define DISTORTION_END_HEIGHT 1
#define DISTORTION_EXTRAPOLATE_CORNERS 0
#define DISTORTION_XMIN 5
#define DISTORTION_YMIN 5
#define DISTORTION_XMAX 210
#define DISTORTION_YMAX 210