Good day,
for my printer i changed the following line in Printer.cpp from the repetier-firmware:
if (destinationSteps[Z_AXIS] < zMinSteps && !isZProbingActive()) Printer::destinationSteps[Z_AXIS] = Printer::zMinSteps;
to
if (destinationSteps[Z_AXIS] < 0 &&
!isZProbingActive()) Printer::destinationSteps[Z_AXIS] = 0;
Software Z min endstop is turned on.
I got a Z Min Pos of 20.04mm in the eeprom.
Then I move Z in negative direction with the manual control buttons.
Here comes the problem:
When going below 0 (like clicking 3 times on the -10 button when at position 20.04), the printer stops at 0, but the Z Min Value in the host software turns red.
So I did some testing (with M111 S24) and found some values where it does and where it doesn't turn red.
With these Z Min Values it does not turn red: 0.04, 10.04, 19.04, 0, 10, 20, 25, 30.5 mm
But with these it does: 20.04, 21.04, 30.04 mm
And with Z min pos = 30.55mm it turns red after several button presses while already being at position 0.
Now I did some testing with destinationSteps[Z_AXIS] while being at Z = 0 and pressing the -10 Z button.
It always returns 0 on the working Z Min Values.
with the non-working values it returns 0, the text goes red, and when i click it again it returns high negative values (ex. -64500)
and with z min pos = 30.55mm it returns -1 for the first 3 presses and then -64501.
Can you help me with this problem?
Best regards,
Florian