Willkommen! Anmelden Ein neues Profil erzeugen

Erweiterte Suche

Endstopps in FW

geschrieben von Wollez 
Endstopps in FW
03. January 2014 13:28
Hallo zusammen,

ich versuche schon die ganze Zeit meinm Prusa i3 beizubringen, dass wenn der Endstopp aktiviert wird, zu stoppen. Leider klappt dies nicht.
Meine Endstopps sind so konfiguriert, dass wenn sie betätigt werden, die Masse auf die Signalleitung geschaltet wird. Also ein low.

Ich geh mal davon aus, dass in der "Configuration.h" (Repetier) die folgenden Zeilen dafür zuständig sind:

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

/* By default all endstops are pulled up to high. You need a pullup if you
use a mechanical endstop connected with gnd. Set value to false for no pullup
on this endstop.
*/
#define ENDSTOP_PULLUP_X_MIN false
#define ENDSTOP_PULLUP_Y_MIN false
#define ENDSTOP_PULLUP_Z_MIN false
#define ENDSTOP_PULLUP_X_MAX true
#define ENDSTOP_PULLUP_Y_MAX true
#define ENDSTOP_PULLUP_Z_MAX false

//set to true to invert the logic of the endstops
#define ENDSTOP_X_MIN_INVERTING true
#define ENDSTOP_Y_MIN_INVERTING true
#define ENDSTOP_Z_MIN_INVERTING true
#define ENDSTOP_X_MAX_INVERTING false
#define ENDSTOP_Y_MAX_INVERTING false
#define ENDSTOP_Z_MAX_INVERTING true

// Set the values true where you have a hardware endstop. The Pin numbe ris taken from pins.h.

#define MIN_HARDWARE_ENDSTOP_X true
#define MIN_HARDWARE_ENDSTOP_Y true
#define MIN_HARDWARE_ENDSTOP_Z false //true
#define MAX_HARDWARE_ENDSTOP_X false
#define MAX_HARDWARE_ENDSTOP_Y false
#define MAX_HARDWARE_ENDSTOP_Z false //true

//If your axes are only moving in one direction, make sure the endstops are connected properly.
//If your axes move in one direction ONLY when the endstops are triggered, set ENDSTOPS_INVERTING to true here

So wie in dem oberen Code habe ich es im Moment eingestellt, da sich die Z-Achse nur bei dieser Konfiguration in beide Richtungen fahren lassen.
Normalerweise müßte doch alles auf false stehen, auser :
#define MIN_HARDWARE_ENDSTOP_X true
#define MIN_HARDWARE_ENDSTOP_Y true
#define MIN_HARDWARE_ENDSTOP_Z false //true
#define MAX_HARDWARE_ENDSTOP_X false
#define MAX_HARDWARE_ENDSTOP_Y false
#define MAX_HARDWARE_ENDSTOP_Z false //true
oder?

Gruß Wolfgang

P.s. Im Moment habe ich immer nur an den "Min" Positionen einen Endschalter.
Re: Endstopps in FW
03. January 2014 14:08
Gib mal den Befehl "M119" ein und poste das Ergebnis


Achim
Re: Endstopps in FW
03. January 2014 14:24
Hallo Achim,

es wird folgendes ausgegeben:

x_min: H y_min: H

Ist das der Zustand der Endstops oder die Einstellungen?

Gruß Wolfgang
Re: Endstopps in FW
03. January 2014 14:53
Hallo Achim,

das war für mich jetzt das Entscheidende winking smiley mir ist ein Licht aufgegangen.

Jetzt habe ich es hinbekommen! Danke.

Zum einen war der Endschalter der Z-Achse überhaupt nicht aktiv, zum anderen habe ich ihn an den falschen Pins des RAMPS angeschlossen und dann habe ich den Endstop immer nur mit Masse verbunden gehabt. Ich bin immer davon ausgegangen, dass der Controller nur darauf reagiert wenn er an diesen Pin auf Masse gelegt wird. Jetzt habe ich das verstanden, dass er ein High und Low will und jenachdem dann stopt oder fährt.

Wieder was gelernt smiling smiley

Gruß Wolfgang
Re: Endstopps in FW
03. January 2014 18:54
thumbs up


Gruß
Boris
--
DIY Mendel90
Gen7 1.4.1 mit Repetier Firmware 0.91 + Repetier Host
Gen7 Extension Board mit LCD, SD-Card, Bluetooth und FAN-Control
Re: Endstopps in FW
04. January 2014 10:21
Hallo zusammen,

jetzt habe ich mich wohl zu früh gefreut. Ich werde noch wahnsinnig...

Der Z-Endstop funktioniert wie er soll, doch Y- und X geht nicht. er reagiert überhaupt nicht. Föllig egal was ich einstelle.
Der Schalter geht und ist verkabelt wie bei der Z-Achse. Wenn er nicht geschaltet ist ist er auf "high". Sobald man ihn drückt ist er auf "Low". Darauf reagiert der Prozessor aber nicht.

Eingestellt ist er auf:
x_min: H y_min: L z_min: L

Der Code ist:
// ##########################################################################################
// ##                            Endstop configuration                                     ##
// ##########################################################################################

/* By default all endstops are pulled up to high. You need a pullup if you
use a mechanical endstop connected with gnd. Set value to false for no pullup
on this endstop.
*/
#define ENDSTOP_PULLUP_X_MIN false
#define ENDSTOP_PULLUP_Y_MIN false
#define ENDSTOP_PULLUP_Z_MIN false
#define ENDSTOP_PULLUP_X_MAX false //true
#define ENDSTOP_PULLUP_Y_MAX false //true
#define ENDSTOP_PULLUP_Z_MAX false

//set to true to invert the logic of the endstops
#define ENDSTOP_X_MIN_INVERTING true
#define ENDSTOP_Y_MIN_INVERTING true
#define ENDSTOP_Z_MIN_INVERTING true
#define ENDSTOP_X_MAX_INVERTING false
#define ENDSTOP_Y_MAX_INVERTING false
#define ENDSTOP_Z_MAX_INVERTING true

// Set the values true where you have a hardware endstop. The Pin numbe ris taken from pins.h.

#define MIN_HARDWARE_ENDSTOP_X true
#define MIN_HARDWARE_ENDSTOP_Y true
#define MIN_HARDWARE_ENDSTOP_Z true
#define MAX_HARDWARE_ENDSTOP_X false
#define MAX_HARDWARE_ENDSTOP_Y false
#define MAX_HARDWARE_ENDSTOP_Z false //true

//If your axes are only moving in one direction, make sure the endstops are connected properly.
//If your axes move in one direction ONLY when the endstops are triggered, set ENDSTOPS_INVERTING to true here

Warum reagiert er auf "nichts"?

Gruß Wolfgang
Re: Endstopps in FW
04. January 2014 10:27
Neheme erstmal überall das INVERTING auf false.
Dann schliesse sie so an, dass wenn sie gedrückt sind High anliegt und wenn sie nicht gedrückt sind auf Low liegen.

Du hast sie bei dir wohl gemixt angeschlossen und ggf. einen dreher in der Verkabelung.


Gruß
Boris
--
DIY Mendel90
Gen7 1.4.1 mit Repetier Firmware 0.91 + Repetier Host
Gen7 Extension Board mit LCD, SD-Card, Bluetooth und FAN-Control
Re: Endstopps in FW
04. January 2014 11:12
Hallole,

Ok, das habe ich jetzt gemacht, doch leider ohne Erfolg.

Ich habe sicherheitshalber auch das Arduino Board getauscht. Hätte ja sein können, dass der Prozessor was abbekommen hat. Dies hat jedoch nichts geändert.

Jetzt habe ich:
x_min: L y_min: L z_min: L

und der Code ist:

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

/* By default all endstops are pulled up to high. You need a pullup if you
use a mechanical endstop connected with gnd. Set value to false for no pullup
on this endstop.
*/
#define ENDSTOP_PULLUP_X_MIN false
#define ENDSTOP_PULLUP_Y_MIN false
#define ENDSTOP_PULLUP_Z_MIN false
#define ENDSTOP_PULLUP_X_MAX false
#define ENDSTOP_PULLUP_Y_MAX false
#define ENDSTOP_PULLUP_Z_MAX false

//set to true to invert the logic of the endstops
#define ENDSTOP_X_MIN_INVERTING false
#define ENDSTOP_Y_MIN_INVERTING false
#define ENDSTOP_Z_MIN_INVERTING false
#define ENDSTOP_X_MAX_INVERTING false
#define ENDSTOP_Y_MAX_INVERTING false
#define ENDSTOP_Z_MAX_INVERTING false

// Set the values true where you have a hardware endstop. The Pin numbe ris taken from pins.h.

#define MIN_HARDWARE_ENDSTOP_X true
#define MIN_HARDWARE_ENDSTOP_Y true
#define MIN_HARDWARE_ENDSTOP_Z true
#define MAX_HARDWARE_ENDSTOP_X false
#define MAX_HARDWARE_ENDSTOP_Y false
#define MAX_HARDWARE_ENDSTOP_Z false

//If your axes are only moving in one direction, make sure the endstops are connected properly.
//If your axes move in one direction ONLY when the endstops are triggered, set ENDSTOPS_INVERTING to true here

Bei nicht betätigtem Endschalter ist "low" und wenn ich den Endschalter betätige ist "high".

Gruß Wolfgang
Re: Endstopps in FW
04. January 2014 11:22
Quote
x_min: L y_min: L z_min: L
Das klingt schon mal gut.

Fahren die Motoren auch in die richtige Richtung?
Was passiert bei "G28" [home]?


Achim
Re: Endstopps in FW
04. January 2014 11:46
Hallole,

Home fährt er einwandfrei an. Auf allen Achsen.
In die richtige Richtung fahren sie auch.

Wenn er z.B. in Richtung y_min fährt und ich drücke den Endschalter reagiert er nicht. Sollte er das nicht aus Sicherheitsgründen machen? Bei der X Achse ist das auch so nur bei der Z-Achse macht er das sofort.

Gruß Wolfgang

1-mal bearbeitet. Zuletzt am 04.01.14 11:50.
Re: Endstopps in FW
04. January 2014 12:00
Frage, wo ist "min"? Wo ist "home"? Vorne links?


Achim
Re: Endstopps in FW
04. January 2014 12:11
Hallo Achim,

Home ist vorne links. Da sollte auch min sein.

Ich habe ihn auch mal in die abdere Richtung gefahren und dabei die Endstops gedrückt, doch da ist auch nichts passiert.

Gruß Wolfgang
Re: Endstopps in FW
04. January 2014 16:57
Halte mal einen der Endstops gedrückt und mach erneut M119.
Der Gedrückte müsste dann auf H stehen.

Das mit allen Endstops machen um zu schauen ob sie überhaupt funktionieren.


Gruß
Boris
--
DIY Mendel90
Gen7 1.4.1 mit Repetier Firmware 0.91 + Repetier Host
Gen7 Extension Board mit LCD, SD-Card, Bluetooth und FAN-Control
Re: Endstopps in FW
04. January 2014 18:07
EDIT: gelöscht, z funktioniert ja! hm

2-mal bearbeitet. Zuletzt am 04.01.14 18:12.
Re: Endstopps in FW
05. January 2014 08:09
Quote
sivar2311
Halte mal einen der Endstops gedrückt und mach erneut M119.
Der Gedrückte müsste dann auf H stehen.

Das mit allen Endstops machen um zu schauen ob sie überhaupt funktionieren.

Diese reagieren. Wenn sie gedrückt sind stehn sie auf "High".

Das muss irgendwie an der Config liegen.

Gruß Wolfgang
Re: Endstopps in FW
05. January 2014 08:49
Hier mal meine aktuelle Cofig Datei. Vielleicht findet jemand einen Fehler. confused smiley

Gruß Wolfgang
Anhänge:
Öffnen | Download - Configuration.h (47.4 KB)
Re: Endstopps in FW
05. January 2014 09:11
Versuch mal das folgende auf "true" zu ändern...

// You can disable endstop checking for print moves. This is needed, if you get sometimes
// false signals from your endstops. If your endstops don't give false signals, you
// can set it on for safety.
#define ALWAYS_CHECK_ENDSTOPS false

Re: Endstopps in FW
05. January 2014 09:52
Quote
Vollnormal
Versuch mal das folgende auf "true" zu ändern...

// You can disable endstop checking for print moves. This is needed, if you get sometimes
// false signals from your endstops. If your endstops don't give false signals, you
// can set it on for safety.
#define ALWAYS_CHECK_ENDSTOPS false


@Vollnormal
Das war der Fehler!!! Jetzt geht es thumbs up smileys with beer

Gruß Wolfgang
In diesem Forum dürfen leider nur registrierte Teilnehmer schreiben.

Klicke hier, um Dich einzuloggen