Welcome! Log In Create A New Profile

Advanced

Struggle with endstops

Posted by wretan 
Struggle with endstops
June 15, 2014 07:08PM
Hi,

Something is really wrong here, my endstops (NO) are all working great showing L when untriggered and H when triggered when i send m119 from repetier.

But when homing the carriages tries to go "through the roof" for several seconds, making me cut the power (or use emergency kill switch).

Have I totally missed anything in the configuration?

I am using ramp 1.4 and connected X endstop to the second, Y to the fourth and Z endstop to the sixth if i count from left on the endstop pins on my ramps.

Best regards from Wretan
Re: Struggle with endstops
June 15, 2014 08:30PM
Did you wire and configure the X/Y/Z-MAX endstops, or the X/Y/Z-Min ones? Deltas need to use the X/Y/Z-Max. (The M119 output will say either X-Max or X-min, etc.)

You may also want to check that the endstop wire and stepper motor wire go to the same axis (tower) on your RAMPS board. At least one person has wondered why an endstop didn't work only to find out that it was wired to another tower that didn't hit the end yet.....
Re: Struggle with endstops
June 16, 2014 02:54AM
Hi Vreihen, thanx for your answer.

The M119 replies Max on all axis so I assume that it´s correct.

I suppose that I have the right stepper connected to corresponding end switch.

Isn´t the input pins, Xmin, Xmax, Ymin, Ymax, Zmin, Zmax from left to right on ramps? I only use the top row and middle row connected directly to the microswitches (Normally Open). Am I right?

Best regards
Wretan
Re: Struggle with endstops
June 16, 2014 06:31AM
Check to make sure your motors and end stops are properly plugged into the correct axis. I had the exact same problem after rewiring one of my machines over the weekend. I had my motors plugged in to the next axis I.e. X into y, y into , z into x. My end stops triggered perfectly too. Also, normally the firmware is set to use NO switches, I believe. Did you invert the end stop logic in marlin?

Edited 1 time(s). Last edit at 06/16/2014 06:32AM by umdpru.
Re: Struggle with endstops
June 16, 2014 06:31AM
The input pins are correct, but for deltas we usually wire them to be NC (or you inverse the logic in firmware).
Re: Struggle with endstops
June 16, 2014 08:57AM
Hi,

A bit confusing, if I use NO endstops, do I need to change anyting or not in marlin? confused smiley

I use the repetier configurator online. I think that I have set it to NO..

Edited 1 time(s). Last edit at 06/16/2014 08:57AM by wretan.
Re: Struggle with endstops
June 16, 2014 05:14PM
Hello,

here is how the endstops are configured from repetiers´s firmware configuration tool:

// ################ Endstop configuration #####################

#define ENDSTOP_PULLUP_X_MIN true
#define ENDSTOP_X_MIN_INVERTING false
#define MIN_HARDWARE_ENDSTOP_X false
#define ENDSTOP_PULLUP_Y_MIN true
#define ENDSTOP_Y_MIN_INVERTING false
#define MIN_HARDWARE_ENDSTOP_Y false
#define ENDSTOP_PULLUP_Z_MIN true
#define ENDSTOP_Z_MIN_INVERTING false
#define MIN_HARDWARE_ENDSTOP_Z false
#define ENDSTOP_PULLUP_X_MAX true
#define ENDSTOP_X_MAX_INVERTING true
#define MAX_HARDWARE_ENDSTOP_X true
#define ENDSTOP_PULLUP_Y_MAX true
#define ENDSTOP_Y_MAX_INVERTING true
#define MAX_HARDWARE_ENDSTOP_Y true
#define ENDSTOP_PULLUP_Z_MAX true
#define ENDSTOP_Z_MAX_INVERTING true
#define MAX_HARDWARE_ENDSTOP_Z true
#define max_software_endstop_r true

#define min_software_endstop_x true
#define min_software_endstop_y true
#define min_software_endstop_z true
#define max_software_endstop_x false
#define max_software_endstop_y false
#define max_software_endstop_z false

#define ENDSTOP_X_BACK_MOVE 5
#define ENDSTOP_Y_BACK_MOVE 5
#define ENDSTOP_Z_BACK_MOVE 5
#define ENDSTOP_X_RETEST_REDUCTION_FACTOR 3
#define ENDSTOP_Y_RETEST_REDUCTION_FACTOR 3
#define ENDSTOP_Z_RETEST_REDUCTION_FACTOR 3
#define ENDSTOP_X_BACK_ON_HOME 1
#define ENDSTOP_Y_BACK_ON_HOME 1
#define ENDSTOP_Z_BACK_ON_HOME 1
#define ALWAYS_CHECK_ENDSTOPS 0

// ################# 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_Y_DIR 0
#define INVERT_Z_DIR 0
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR 1
#define X_MAX_LENGTH 200
#define Y_MAX_LENGTH 200
#define Z_MAX_LENGTH 200
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0


Tried to change many of the true/false-parameters above but either the system stays as in the beginning (system works as I didn´t have any endstops at all, carriages goes through the roof) or sometimes the M119 does not find anything like for instance when I tested with "false" on the pullup X and Y and Z.

I think it´s strange with the :
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR 1 (why not negative Z also?)
but positive Z makes no change anyways

Anything that I have missed?

One thing just to clarify things for me, when firmware says for example:
#define X_MAX_LENGTH 200
#define Y_MAX_LENGTH 200
#define Z_MAX_LENGTH 200
is that the length of the three towers or actual directions (like dimensions of a cube?)

When I run M119 it says:
x_max:L y_max:L z_max:L
besides when I press a microswitch (for example Z) it then says:
x_max:L y:max:L z_max:H

also attached the firmware if anyone like to see it.

Best regards
Wretan
Attachments:
open | download - Repetier.zip (295.1 KB)
Re: Struggle with endstops
June 18, 2014 08:51AM
noone?

should I perhaps use Marlin instead?
Re: Struggle with endstops
June 18, 2014 01:22PM
hhmm, I assumed you were using Marlin. I don't know what setting to change in Repetier to invert the end-stop logic from NC to NO.

Have you checked that your X-tower motor is plugged into the X-stepper and the same for y and Z?

EDIT:

Change these settings:

#define ENDSTOP_X_MAX_INVERTING true
#define ENDSTOP_Y_MAX_INVERTING true
#define ENDSTOP_Z_MAX_INVERTING true

to

#define ENDSTOP_X_MAX_INVERTING false
#define ENDSTOP_Y_MAX_INVERTING false
#define ENDSTOP_Z_MAX_INVERTING false

those setting appear to the the logic invert defines.

I really think your motor wiring is messed up. I had this EXACT same issue - bot ignoring the end-stops when homing. I found I had plugged the motors in wrong, x into y, y into z and z into x. fixing it fixed the homing issues.

Edited 2 time(s). Last edit at 06/18/2014 01:27PM by umdpru.
Re: Struggle with endstops
June 21, 2014 04:13PM
Hi Umdpru,

GREAT! Thanx! That worked! thumbs up

Now it homes perfectly, the only issue now is that it can't move after it's been homed. The z-value gets red on repetier (after a g28) and show Z top value but I suppose that it's a matter of z max length or something. Will probably figure it out playing atound with the values.

Thank you once again! smiling smiley
Sorry, only registered users may post in this forum.

Click here to login