|
Marlin Konfiguration für Deltas 12. April 2021 08:36 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
//===========================================================================
//============================== Endstop Settings ===========================
//===========================================================================
// @section homing
// Specify here all the endstop connectors that are connected to any endstop or probe.
// Almost all printers will be using one per axis. Probes will use one or more of the
// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
// #define USE_XMIN_PLUG
// #define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
#define USE_XMAX_PLUG
#define USE_YMAX_PLUG
#define USE_ZMAX_PLUG
// Enable pullup for all endstops to prevent a floating state
#define ENDSTOPPULLUPS
#if DISABLED(ENDSTOPPULLUPS)
// Disable ENDSTOPPULLUPS to set pullups individually
//#define ENDSTOPPULLUP_XMAX
//#define ENDSTOPPULLUP_YMAX
//#define ENDSTOPPULLUP_ZMAX
//#define ENDSTOPPULLUP_XMIN
//#define ENDSTOPPULLUP_YMIN
//#define ENDSTOPPULLUP_ZMIN
//#define ENDSTOPPULLUP_ZMIN_PROBE
#endif
// Enable pulldown for all endstops to prevent a floating state
//#define ENDSTOPPULLDOWNS
#if DISABLED(ENDSTOPPULLDOWNS)
// Disable ENDSTOPPULLDOWNS to set pulldowns individually
//#define ENDSTOPPULLDOWN_XMAX
//#define ENDSTOPPULLDOWN_YMAX
//#define ENDSTOPPULLDOWN_ZMAX
//#define ENDSTOPPULLDOWN_XMIN
//#define ENDSTOPPULLDOWN_YMIN
//#define ENDSTOPPULLDOWN_ZMIN
//#define ENDSTOPPULLDOWN_ZMIN_PROBE
#endif
// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
#define X_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Z_MIN_PROBE_ENDSTOP_INVERTING false // Set to true to invert the logic of the probe.
======================================================================
// @section homing
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed. Also enable HOME_AFTER_DEACTIVATE for extra safety.
//#define HOME_AFTER_DEACTIVATE // Require rehoming after steppers are deactivated. Also enable NO_MOTION_BEFORE_HOMING for extra safety.
/**
* Set Z_IDLE_HEIGHT if the Z-Axis moves on its own when steppers are disabled.
* - Use a low value (i.e., Z_MIN_POS) if the nozzle falls down to the bed.
* - Use a large value (i.e., Z_MAX_POS) if the bed falls down, away from the nozzle.
*/
//#define Z_IDLE_HEIGHT Z_HOME_POS
//#define Z_HOMING_HEIGHT 4 // (mm) Minimal Z height before homing (G28) for Z clearance above the bed, clamps, ...
// Be sure to have this much clearance over your Z_MAX_POS to prevent grinding.
//#define Z_AFTER_HOMING 10 // (mm) Height to move to after homing Z
// Direction of endstops when homing; 1=MAX, -1=MIN
// Deltas have three max endstops. For other configurations set these values appropriately.
// :[-1,1]
#define X_HOME_DIR 1
#define Y_HOME_DIR 1
#define Z_HOME_DIR 1
// @section machine
// The size of the print bed
#define X_BED_SIZE ((DELTA_PRINTABLE_RADIUS) * 2)
#define Y_BED_SIZE ((DELTA_PRINTABLE_RADIUS) * 2)
// Travel limits (mm) after homing, corresponding to endstop positions.
#define X_MIN_POS -(DELTA_PRINTABLE_RADIUS)
#define Y_MIN_POS -(DELTA_PRINTABLE_RADIUS)
#define Z_MIN_POS 0
#define X_MAX_POS (DELTA_PRINTABLE_RADIUS)
#define Y_MAX_POS (DELTA_PRINTABLE_RADIUS)
#define Z_MAX_POS MANUAL_Z_HOME_POS
/**
* Software Endstops
*
* - Prevent moves outside the set machine bounds.
* - Individual axes can be disabled, if desired.
* - X and Y only apply to Cartesian robots.
* - Use 'M211' to set software endstops on/off or report current state
*/
// Min software endstops constrain movement within minimum coordinate bounds
#define MIN_SOFTWARE_ENDSTOPS
#if ENABLED(MIN_SOFTWARE_ENDSTOPS)
#define MIN_SOFTWARE_ENDSTOP_X
#define MIN_SOFTWARE_ENDSTOP_Y
#define MIN_SOFTWARE_ENDSTOP_Z
#endif
// Max software endstops constrain movement within maximum coordinate bounds
#define MAX_SOFTWARE_ENDSTOPS
#if ENABLED(MAX_SOFTWARE_ENDSTOPS)
#define MAX_SOFTWARE_ENDSTOP_X
#define MAX_SOFTWARE_ENDSTOP_Y
#define MAX_SOFTWARE_ENDSTOP_Z
#endif
|
Re: Marlin Konfiguration für Deltas 12. April 2021 14:49 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
Quote
1. Wenn beim Einschalten die Achsen irgendwo in der Mitte stehen, kann ich sie nur in eine Richtung (+) bewegen. Warum nicht auch in die andere (-) ?
Antwort:
1. Das ist Absicht, vor dem Homen kannst Du nur in Richtung Endstop fahren, das soll Beschädigungen des Druckers verhindern.
#define X_HOME_DIR 1 #define Y_HOME_DIR 1 #define Z_HOME_DIR 1zu
#define X_HOME_DIR -1 #define Y_HOME_DIR -1 #define Z_HOME_DIR -1Ändern.
|
Re: Marlin Konfiguration für Deltas 13. April 2021 05:36 |
Registrierungsdatum: 7 Jahre zuvor Beiträge: 143 |
|
Re: Marlin Konfiguration für Deltas 15. April 2021 15:58 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
#define IGNORE_ENDSTOPS_AND_DESTROY_BELTSoder so?
#define USE_ZMIN_PLUG #define USE_XMAX_PLUG #define USE_YMAX_PLUG #define USE_ZMAX_PLUG
// Direction of endstops when homing; 1=MAX, -1=MIN #define X_HOME_DIR 1 #define Y_HOME_DIR 1 #define Z_HOME_DIR 1
|
Re: Marlin Konfiguration für Deltas 16. April 2021 03:09 |
Moderator Registrierungsdatum: 8 Jahre zuvor Beiträge: 820 |
|
Re: Marlin Konfiguration für Deltas 16. April 2021 05:49 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
#define USE_ZMIN_PLUG #define USE_XMAX_PLUG #define USE_YMAX_PLUG #define USE_ZMAX_PLUG
|
Re: Marlin Konfiguration für Deltas 16. April 2021 07:21 |
Moderator Registrierungsdatum: 8 Jahre zuvor Beiträge: 820 |
Quote
Junkie
Und dass der Kompiler durch Zugriff auf die pins.h weißt welchen Pin er wie definieren muss
#define_board
|
Re: Marlin Konfiguration für Deltas 16. April 2021 13:06 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
//
// TMC StallGuard DIAG pins
//
#define X_DIAG_PIN P1_29 // X-STOP
#define Y_DIAG_PIN P1_28 // Y-STOP
#define Z_DIAG_PIN P1_27 // Z-STOP
#define E0_DIAG_PIN P1_26 // E0DET
#define E1_DIAG_PIN P1_25 // E1DET
//
// Limit Switches
//
#ifdef X_STALL_SENSITIVITY
#define X_STOP_PIN X_DIAG_PIN
#if X_HOME_DIR < 0
#define X_MAX_PIN P1_26 // E0DET
#else
#define X_MIN_PIN P1_26 // E0DET
#endif
#elif ENABLED(X_DUAL_ENDSTOPS)
#ifndef X_MIN_PIN
#define X_MIN_PIN P1_29 // X-STOP
#endif
#ifndef X_MAX_PIN
#define X_MAX_PIN P1_26 // E0DET
#endif
#else
#define X_STOP_PIN P1_29 // X-STOP
#endif
#ifdef Y_STALL_SENSITIVITY
#define Y_STOP_PIN Y_DIAG_PIN
#if Y_HOME_DIR < 0
#define Y_MAX_PIN P1_25 // E1DET
#else
#define Y_MIN_PIN P1_25 // E1DET
#endif
#elif ENABLED(Y_DUAL_ENDSTOPS)
#ifndef Y_MIN_PIN
#define Y_MIN_PIN P1_28 // Y-STOP
#endif
#ifndef Y_MAX_PIN
#define Y_MAX_PIN P1_25 // E1DET
#endif
#else
#define Y_STOP_PIN P1_28 // Y-STOP
#endif
#ifdef Z_STALL_SENSITIVITY
#define Z_STOP_PIN Z_DIAG_PIN
#if Z_HOME_DIR < 0
#define Z_MAX_PIN P1_00 // PWRDET
#else
#define Z_MIN_PIN P1_00 // PWRDET
#endif
#elif ENABLED(Z_MULTI_ENDSTOPS)
#ifndef Z_MIN_PIN
#define Z_MIN_PIN P1_27 // Z-STOP
#endif
#ifndef Z_MAX_PIN
#define Z_MAX_PIN P1_00 // PWRDET
#endif
#else
#ifndef Z_STOP_PIN
#define Z_STOP_PIN P1_27 // Z-STOP
#endif
#endif
//
// Z Probe (when not Z_MIN_PIN)
//
#define Z_MIN_PIN P0_10
// #ifndef Z_MIN_PROBE_PIN
// #define Z_MIN_PROBE_PIN P0_10
// #endif
//#define SENSORLESS_HOMING // StallGuard capable drivers only
//#define SENSORLESS_PROBING
#if EITHER(SENSORLESS_HOMING, SENSORLESS_PROBING)
// TMC2209: 0...255. TMC2130: -64...63
#define X_STALL_SENSITIVITY 8
#define X2_STALL_SENSITIVITY X_STALL_SENSITIVITY
#define Y_STALL_SENSITIVITY 8
#define Y2_STALL_SENSITIVITY Y_STALL_SENSITIVITY
//#define Z_STALL_SENSITIVITY 8
//#define Z2_STALL_SENSITIVITY Z_STALL_SENSITIVITY
//#define Z3_STALL_SENSITIVITY Z_STALL_SENSITIVITY
//#define Z4_STALL_SENSITIVITY Z_STALL_SENSITIVITY
//#define SPI_ENDSTOPS // TMC2130 only
//#define IMPROVE_HOMING_RELIABILITY
#endif
// TMC StallGuard DIAG pins // #define X_DIAG_PIN P1_29 // X-STOP #define Y_DIAG_PIN P1_28 // Y-STOP #define Z_DIAG_PIN P1_27 // Z-STOP #define E0_DIAG_PIN P1_26 // E0DET #define E1_DIAG_PIN P1_25 // E1DET #define X_STOP_PIN P1_29 // X-STOP #define Y_STOP_PIN P1_28 // Y-STOP #define Z_STOP_PIN P1_27 // Z-STOP #define Z_MIN_PIN P0_10
|
Re: Marlin Konfiguration für Deltas 16. April 2021 13:09 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
|
Re: Marlin Konfiguration für Deltas 16. April 2021 14:27 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
Quote
After homing in z, the hardware z endstop is deactivated (unless you have set ENDSTOPS_ALWAYS_ON_DEFAULT in configuration_adv.h, which can be overridden by M120, M121), but to protect the hardware a software endstop is activated
|
Re: Marlin Konfiguration für Deltas 16. April 2021 16:30 |
Registrierungsdatum: 6 Jahre zuvor Beiträge: 199 |
|
Re: Marlin Konfiguration für Deltas 17. April 2021 08:46 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
/** * M355 Case Light on-off / brightness */ #define CASE_LIGHT_ENABLE #if ENABLED(CASE_LIGHT_ENABLE) //#define CASE_LIGHT_PIN 4 // Override the default pin if needed #define INVERT_CASE_LIGHT false // Set true if Case Light is ON when pin is LOW
|
Re: Marlin Konfiguration für Deltas 17. April 2021 12:01 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
|
Re: Marlin Konfiguration für Deltas 17. April 2021 13:15 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
In file included from Marlin\src\HAL\LPC1768\../../inc/MarlinConfig.h:49,
from Marlin\src\HAL\LPC1768\HAL.cpp:24:
Marlin\src\HAL\LPC1768\../../inc/SanityCheck.h:1727:1: error: user-defined literal in preprocessor expression
| ^ ~~~~~~~~~~~~
Marlin\src\HAL\LPC1768\../../inc/SanityCheck.h:1729:9: error: user-defined literal in preprocessor expression
1729 | #elif CASE_LIGHT_PIN == FAN_PIN
| ^~~~~~~~~~~~~~
In file included from Marlin\src\HAL\LPC1768\../../inc/MarlinConfig.h:49,
from Marlin\src\HAL\LPC1768\HAL_SPI.cpp:51:
Marlin\src\HAL\LPC1768\../../inc/SanityCheck.h:1727:1: error: user-defined literal in preprocessor expression
1727 | #if !PIN_EXISTS(CASE_LIGHT)
| ^ ~~~~~~~~~~~~
Marlin\src\HAL\LPC1768\../../inc/SanityCheck.h:1729:9: error: user-defined literal in preprocessor expression
1729 | #elif CASE_LIGHT_PIN == FAN_PIN
| ^~~~~~~~~~~~~~
In file included from Marlin\src\HAL\LPC1768\../../inc/MarlinConfig.h:49,
from Marlin\src\HAL\LPC1768\MarlinSerial.cpp:26:
Marlin\src\HAL\LPC1768\../../inc/SanityCheck.h:1727:1: error: user-defined literal in preprocessor expression
1727 | #if !PIN_EXISTS(CASE_LIGHT)
| ^ ~~~~~~~~~~~~
Marlin\src\HAL\LPC1768\../../inc/SanityCheck.h:1729:9: error: user-defined literal in preprocessor expression
1729 | #elif CASE_LIGHT_PIN == FAN_PIN
| ^~~~~~~~~~~~~~
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL.cpp.o] Error 1
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL_SPI.cpp.o] Error 1
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\MarlinSerial.cpp.o] Error 1
================================================= [ FAILED ] Took 3.68 seconds
|
Re: Marlin Konfiguration für Deltas 18. April 2021 04:57 |
Registrierungsdatum: 10 Jahre zuvor Beiträge: 136 |
|
Re: Marlin Konfiguration für Deltas 18. April 2021 13:38 |
Moderator Registrierungsdatum: 8 Jahre zuvor Beiträge: 820 |
Quote
Junkie
@Admin: ist das doch eher was fürs Elektronik-Forum?
.