MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.18k stars 19.21k forks source link

[BUG] Anycubic i3 Mega BLTouch 3.1 original not deploying on home #18162

Closed alphastrem closed 4 years ago

alphastrem commented 4 years ago

Bug Description

The pin on my original bltouch 3.1 isnt deploying when trying to abl from the print menu. But the pin does deploy and retract in an auto test when powering on as well as sending gcode commands does deploy and retract also. The printer does home X and Y and then starts to drive down on the Z but with no pin deploy and the Z pcb endstops unplugged just goes down and down until i GUESS would crash into the bed.

Hardware

My Configurations

Additional Information

>>>M43
SENDING:M43
PIN:   0   Port: E0        RXD                         protected
PIN:   1   Port: E1        TXD                         protected
PIN:   2   Port: E4        Z_MIN_PROBE_PIN             protected
PIN:   3   Port: E5        X_MIN_PIN                   protected
PIN:   4   Port: G5        <unused/unknown>            Input  = 0    TIMER0B   PWM:   128    WGM: 3    COM0B: 0    CS: 3    TCCR0A: 3    TCCR0B: 3    TIMSK0: 5   compare interrupt enabled   overflow interrupt enabled
PIN:   5   Port: E3        <unused/unknown>            Input  = 0    TIMER3A   PWM:  -25536    WGM: 0    COM3A: 0    CS: 2    TCCR3A: 0    TCCR3B: 2    TIMSK3: 2   non-standard PWM mode   compare interrupt enabled
PIN:   6   Port: H3        <unused/unknown>            Input  = 0    TIMER4A   PWM:     0    WGM: 1    COM4A: 0    CS: 3    TCCR4A: 1    TCCR4B: 3    TIMSK4: 0
PIN:   7   Port: H4        CONTROLLER_FAN_PIN          protected
PIN:   8   Port: H5        HEATER_BED_PIN              protected
PIN:   9   Port: H6        FAN_PIN                     protected
PIN:  10   Port: B4        HEATER_0_PIN                protected
PIN:  11   Port: B5        SERVO0_PIN                  Output = 0    TIMER1A   PWM:  2000    WGM: 4    COM1A: 0    CS: 2    TCCR1A: 0    TCCR1B: 10    TIMSK1: 2   non-standard PWM mode   compare interrupt enabled
PIN:  12   Port: B6        <unused/unknown>            Input  = 0    TIMER1B   PWM:     0    WGM: 4    COM1B: 0    CS: 2    TCCR1A: 0    TCCR1B: 10    TIMSK1: 2   non-standard PWM mode
PIN:  13   Port: B7        LED_PIN                     Input  = 0    TIMER0A   PWM:     0    WGM: 3    COM0A: 0    CS: 3    TCCR0A: 3    TCCR0B: 3    TIMSK0: 5   overflow interrupt enabled
 .                  TIMER1C is also tied to this pin                  TIMER1C   PWM:     0    WGM: 4    COM1C: 0    CS: 2    TCCR1A: 0    TCCR1B: 10    TIMSK1: 2   non-standard PWM mode
PIN:  14   Port: J1        <unused/unknown>            Input  = 1
PIN:  15   Port: J0        <unused/unknown>            Input  = 1
PIN:  16   Port: H1        <unused/unknown>            Input  = 0
PIN:  17   Port: H0        <unused/unknown>            Input  = 0
PIN:  18   Port: D3        Z_MIN_PIN                   protected
PIN:  19   Port: D2        FIL_RUNOUT_PIN              Input  = 1
PIN:  20   Port: D1        <unused/unknown>            Input  = 1
PIN:  21   Port: D0        <unused/unknown>            Input  = 1
PIN:  22   Port: A0        <unused/unknown>            Input  = 0
PIN:  23   Port: A1        <unused/unknown>            Input  = 0
PIN:  24   Port: A2        E0_ENABLE_PIN               protected
PIN:  25   Port: A3        <unused/unknown>            Input  = 0
PIN:  26   Port: A4        E0_STEP_PIN                 protected
PIN:  27   Port: A5        <unused/unknown>            Input  = 0
PIN:  28   Port: A6        E0_DIR_PIN                  protected
PIN:  29   Port: A7        <unused/unknown>            Input  = 0
PIN:  30   Port: C7        Y2_ENABLE_PIN               protected
.                          Z2_ENABLE_PIN               protected
PIN:  31   Port: C6        BEEPER_PIN                  Output = 0
PIN:  32   Port: C5        <unused/unknown>            Input  = 0
PIN:  33   Port: C4        <unused/unknown>            Input  = 0
PIN:  34   Port: C3        Y2_DIR_PIN                  protected
.                          Z2_DIR_PIN                  protected
PIN:  35   Port: C2        <unused/unknown>            Input  = 0
PIN:  36   Port: C1        Y2_STEP_PIN                 protected
.                          Z2_STEP_PIN                 protected
PIN:  37   Port: C0        <unused/unknown>            Input  = 0
PIN:  38   Port: D7        X_ENABLE_PIN                protected
PIN:  39   Port: G2        <unused/unknown>            Input  = 0
PIN:  40   Port: G1        <unused/unknown>            Input  = 0
PIN:  41   Port: G0        KILL_PIN                    Input  = 1
PIN:  42   Port: L7        Y_MIN_PIN                   protected
PIN:  43   Port: L6        X_MAX_PIN                   protected
PIN:  44   Port: L5        E0_AUTO_FAN_PIN             protected
.                          FAN2_PIN                    protected
.                          ORIG_E0_AUTO_FAN_PIN        protected
PIN:  45   Port: L4        HEATER_1_PIN                Output = 0    TIMER5B   PWM:     0    WGM: 1    COM5B: 0    CS: 3    TCCR5A: 1    TCCR5B: 3    TIMSK5: 0
PIN:  46   Port: L3        Z_STEP_PIN                  protected
PIN:  47   Port: L2        <unused/unknown>            Input  = 0
PIN:  48   Port: L1        Z_DIR_PIN                   protected
PIN:  49   Port: L0        SD_DETECT_PIN               Input  = 0
PIN:  50   Port: B3        AVR_MISO_PIN                Input  = 0
.                          MISO_PIN                    Input  = 0
PIN:  51   Port: B2        AVR_MOSI_PIN                Output = 1
.                          MOSI_PIN                    Output = 1
PIN:  52   Port: B1        AVR_SCK_PIN                 Output = 0
.                          SCK_PIN                     Output = 0
PIN:  53   Port: B0        AVR_SS_PIN                  Output = 1
.                          SDSS                        Output = 1
.                          SS_PIN                      Output = 1
PIN:  54   Port: F0 (A 0)  X_STEP_PIN                  protected
PIN:  55   Port: F1 (A 1)  X_DIR_PIN                   protected
PIN:  56   Port: F2 (A 2)  Y_ENABLE_PIN                protected
PIN:  57   Port: F3 (A 3)  <unused/unknown>   Analog in =   466   Input  = 0
PIN:  58   Port: F4 (A 4)  <unused/unknown>   Analog in =     0   Input  = 0
PIN:  59   Port: F5 (A 5)  <unused/unknown>   Analog in =   795   Input  = 1
PIN:  60   Port: F6 (A 6)  Y_STEP_PIN                  protected
PIN:  61   Port: F7 (A 7)  Y_DIR_PIN                   protected
PIN:  62   Port: K0 (A 8)  Z_ENABLE_PIN                protected
PIN:  63   Port: K1 (A 9)  <unused/unknown>   Analog in =   781   Input  = 1
PIN:  64   Port: K2 (A10)  <unused/unknown>   Analog in =   804   Input  = 1
PIN:  65   Port: K3 (A11)  <unused/unknown>   Analog in =   678   Input  = 1
PIN:  66   Port: K4 (A12)  TEMP_2_PIN                  Analog in =    40
PIN:  67   Port: K5 (A13)  TEMP_0_PIN                  protected
PIN:  68   Port: K6 (A14)  TEMP_BED_PIN                protected
PIN:  69   Port: K7 (A15)  TEMP_1_PIN                  Analog in =   976
alphastrem commented 4 years ago

Bump - Please can someone help me - im wracking my brains over this one and now my brains are mash potato

boelle commented 4 years ago

@alphastrem still an issue?

alphastrem commented 4 years ago

Yes unfortunately still no further forward

thinkyhead commented 4 years ago

Please test the bugfix-2.0.x branch to see where it stands. If the problem has been resolved then we can close this issue. If the issue isn't resolved yet, then we should investigate further.

alphastrem commented 4 years ago

Ok no problem: I think I did try that in my many many tests but I’ll happily try again and test any suggestions. I’ve even bought a new main board to see if that’s the issue which I know it’s not but we will see when that gets delivered too

alphastrem commented 4 years ago

This is my code... ive removed 99% of the commented lines

`

pragma once

define CONFIGURATION_H_VERSION 020005

define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.

define SHOW_BOOTSCREEN

define SERIAL_PORT 0

define BAUDRATE 250000

ifndef MOTHERBOARD

define MOTHERBOARD BOARD_TRIGORILLA_14

endif

define CUSTOM_MACHINE_NAME "Anycubic i3"

define EXTRUDERS 1

define DEFAULT_NOMINAL_FILAMENT_DIA 1.75

if ENABLED(SINGLENOZZLE)

endif

if ENABLED(MK2_MULTIPLEXER)

endif

if ENABLED(SWITCHING_EXTRUDER)

define SWITCHING_EXTRUDER_SERVO_NR 0

define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1[, E2, E3]

if EXTRUDERS > 3

#define SWITCHING_EXTRUDER_E23_SERVO_NR 1

endif

endif

if ENABLED(SWITCHING_NOZZLE)

define SWITCHING_NOZZLE_SERVO_NR 0

define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 } // Angles for E0, E1 (single servo) or lowered/raised (dual servo)

endif

if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)

define PARKING_EXTRUDER_PARKING_X { -78, 184 } // X positions for parking the extruders

define PARKING_EXTRUDER_GRAB_DISTANCE 1 // (mm) Distance to move beyond the parking point to grab the extruder

if ENABLED(PARKING_EXTRUDER)

#define PARKING_EXTRUDER_SOLENOIDS_INVERT           // If enabled, the solenoid is NOT magnetized with applied voltage
#define PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE LOW  // LOW or HIGH pin signal energizes the coil
#define PARKING_EXTRUDER_SOLENOIDS_DELAY 250        // (ms) Delay for magnetic field. No delay if 0 or not defined.

elif ENABLED(MAGNETIC_PARKING_EXTRUDER)

#define MPE_FAST_SPEED      9000      // (mm/m) Speed for travel before last distance point
#define MPE_SLOW_SPEED      4500      // (mm/m) Speed for last distance travel to park and couple
#define MPE_TRAVEL_DISTANCE   10      // (mm) Last distance point
#define MPE_COMPENSATION       0      // Offset Compensation -1 , 0 , 1 (multiplier) only for coupling

endif

endif

if ANY(SWITCHING_TOOLHEAD, MAGNETIC_SWITCHING_TOOLHEAD, ELECTROMAGNETIC_SWITCHING_TOOLHEAD)

define SWITCHING_TOOLHEAD_Y_POS 235 // (mm) Y position of the toolhead dock

define SWITCHING_TOOLHEAD_Y_SECURITY 10 // (mm) Security distance Y axis

define SWITCHING_TOOLHEAD_Y_CLEAR 60 // (mm) Minimum distance from dock for unobstructed X axis

define SWITCHING_TOOLHEAD_X_POS { 215, 0 } // (mm) X positions for parking the extruders

if ENABLED(SWITCHING_TOOLHEAD)

#define SWITCHING_TOOLHEAD_SERVO_NR       2         // Index of the servo connector
#define SWITCHING_TOOLHEAD_SERVO_ANGLES { 0, 180 }  // (degrees) Angles for Lock, Unlock

elif ENABLED(MAGNETIC_SWITCHING_TOOLHEAD)

#define SWITCHING_TOOLHEAD_Y_RELEASE      5         // (mm) Security distance Y axis
#define SWITCHING_TOOLHEAD_X_SECURITY   { 90, 150 } // (mm) Security distance X axis (T0,T1)
#if ENABLED(PRIME_BEFORE_REMOVE)
  #define SWITCHING_TOOLHEAD_PRIME_MM           20  // (mm)   Extruder prime length
  #define SWITCHING_TOOLHEAD_RETRACT_MM         10  // (mm)   Retract after priming length
  #define SWITCHING_TOOLHEAD_PRIME_FEEDRATE    300  // (mm/m) Extruder prime feedrate
  #define SWITCHING_TOOLHEAD_RETRACT_FEEDRATE 2400  // (mm/m) Extruder retract feedrate
#endif

elif ENABLED(ELECTROMAGNETIC_SWITCHING_TOOLHEAD)

#define SWITCHING_TOOLHEAD_Z_HOP          2         // (mm) Z raise for switching

endif

endif

if ENABLED(MIXING_EXTRUDER)

define MIXING_STEPPERS 2 // Number of steppers in your mixing extruder

define MIXING_VIRTUAL_TOOLS 16 // Use the Virtual Tool method with M163 and M164

if ENABLED(GRADIENT_MIX)

endif

endif

if ENABLED(PSU_CONTROL)

define PSU_ACTIVE_HIGH false // Set 'false' for ATX, 'true' for X-Box

if ENABLED(AUTO_POWER_CONTROL)

#define AUTO_POWER_FANS         // Turn on PSU if fans need power
#define AUTO_POWER_E_FANS
#define AUTO_POWER_CONTROLLERFAN
#define AUTO_POWER_CHAMBER_FAN
#define POWER_TIMEOUT 30

endif

endif

define TEMP_SENSOR_0 1

define TEMP_SENSOR_1 0

define TEMP_SENSOR_2 0

define TEMP_SENSOR_3 0

define TEMP_SENSOR_4 0

define TEMP_SENSOR_5 0

define TEMP_SENSOR_6 0

define TEMP_SENSOR_7 0

define TEMP_SENSOR_BED 1

define TEMP_SENSOR_PROBE 0

define TEMP_SENSOR_CHAMBER 0

define DUMMY_THERMISTOR_998_VALUE 25

define DUMMY_THERMISTOR_999_VALUE 100

define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10

define TEMP_RESIDENCY_TIME 10 // (seconds) Time to wait for hotend to "settle" in M109

define TEMP_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer

define TEMP_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target

define TEMP_BED_RESIDENCY_TIME 10 // (seconds) Time to wait for bed to "settle" in M190

define TEMP_BED_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer

define TEMP_BED_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target

define HEATER_0_MINTEMP 5

define HEATER_1_MINTEMP 5

define HEATER_2_MINTEMP 5

define HEATER_3_MINTEMP 5

define HEATER_4_MINTEMP 5

define HEATER_5_MINTEMP 5

define HEATER_6_MINTEMP 5

define HEATER_7_MINTEMP 5

define BED_MINTEMP 5

define HEATER_0_MAXTEMP 275

define HEATER_1_MAXTEMP 275

define HEATER_2_MAXTEMP 275

define HEATER_3_MAXTEMP 275

define HEATER_4_MAXTEMP 275

define HEATER_5_MAXTEMP 275

define HEATER_6_MAXTEMP 275

define HEATER_7_MAXTEMP 275

define BED_MAXTEMP 150

define PIDTEMP

define BANG_MAX 255 // Limits current to nozzle while in bang-bang mode; 255=full current

define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current

define PID_K1 0.95 // Smoothing factor within any PID loop

if ENABLED(PIDTEMP)

define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature

define DEFAULT_Kp 17.80

define DEFAULT_Ki 0.84

define DEFAULT_Kd 64.84

endif // PIDTEMP

define PIDTEMPBED

define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current

if ENABLED(PIDTEMPBED)

// Anycubic I3 with Ultrabase. 100C and 8 cycles

define DEFAULT_bedKp 218.59

define DEFAULT_bedKi 43.04

define DEFAULT_bedKd 277.56

endif // PIDTEMPBED

define PREVENT_COLD_EXTRUSION

define EXTRUDE_MINTEMP 170

define PREVENT_LENGTHY_EXTRUDE

define EXTRUDE_MAXLENGTH 420

define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders

define THERMAL_PROTECTION_BED // Enable thermal protection for the heated bed

define THERMAL_PROTECTION_CHAMBER // Enable thermal protection for the heated chamber

//NITTY GRITTY STUFF

define USE_XMIN_PLUG

define USE_YMIN_PLUG

define USE_ZMIN_PLUG

define ENDSTOPPULLUPS

if DISABLED(ENDSTOPPULLUPS)

//#define ENDSTOPPULLUP_ZMIN_PROBE // not sure if i should enable this

endif

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

define X_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.

define Y_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.

define Z_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.

define X_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.

define Y_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.

define Z_MAX_ENDSTOP_INVERTING true // 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.

define X_DRIVER_TYPE TMC2208_STANDALONE

define Y_DRIVER_TYPE TMC2208_STANDALONE

define Z_DRIVER_TYPE TMC2208_STANDALONE

define X2_DRIVER_TYPE TMC2208_STANDALONE

define Y2_DRIVER_TYPE TMC2208_STANDALONE

define Z2_DRIVER_TYPE TMC2208_STANDALONE

define Z3_DRIVER_TYPE TMC2208_STANDALONE

define Z4_DRIVER_TYPE TMC2208_STANDALONE

define E0_DRIVER_TYPE TMC2208_STANDALONE

define E1_DRIVER_TYPE TMC2208_STANDALONE

define E2_DRIVER_TYPE TMC2208_STANDALONE

define E3_DRIVER_TYPE TMC2208_STANDALONE

define E4_DRIVER_TYPE TMC2208_STANDALONE

define E5_DRIVER_TYPE TMC2208_STANDALONE

define E6_DRIVER_TYPE TMC2208_STANDALONE

define E7_DRIVER_TYPE TMC2208_STANDALONE

// Enable this feature if all enabled endstop pins are interrupt-capable. // This will remove the need to poll the interrupt pins, saving many CPU cycles. //#define ENDSTOP_INTERRUPTS_FEATURE // dont understand what this is

//#define ENDSTOP_NOISE_THRESHOLD 2

define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 400, 96.2 }

define DEFAULT_MAX_FEEDRATE { 500, 500, 6, 25 }

if ENABLED(LIMITED_MAX_FR_EDITING)

define MAX_FEEDRATE_EDIT_VALUES { 600, 600, 10, 50 } // ...or, set your own edit limits

endif

define DEFAULT_MAX_ACCELERATION { 1500, 1500, 50, 8000 }

if ENABLED(LIMITED_MAX_ACCEL_EDITING)

define MAX_ACCEL_EDIT_VALUES { 6000, 6000, 200, 20000 } // ...or, set your own edit limits

endif

define DEFAULT_ACCELERATION 1000 // X, Y, Z and E acceleration for printing moves

define DEFAULT_RETRACT_ACCELERATION 2000 // E acceleration for retracts

define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves

if ENABLED(CLASSIC_JERK)

define DEFAULT_XJERK 5.0

define DEFAULT_YJERK 2.0

define DEFAULT_ZJERK 0.4

if ENABLED(LIMITED_JERK_EDITING)

#define MAX_JERK_EDIT_VALUES { 20, 20, 0.6, 10 } // ...or, set your own edit limits

endif

endif

define DEFAULT_EJERK 2.0 // May be used by Linear Advance

if DISABLED(CLASSIC_JERK)

define JUNCTION_DEVIATION_MM 0.002 // (mm) Distance from real junction edge

endif

define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN

define BLTOUCH

if ENABLED(TOUCH_MI_PROBE)

define TOUCH_MI_RETRACT_Z 0.5 // Height at which the probe retracts

endif

if ENABLED(RACK_AND_PINION_PROBE)

define Z_PROBE_DEPLOY_X X_MIN_POS

define Z_PROBE_RETRACT_X X_MAX_POS

endif

if ENABLED(DUET_SMART_EFFECTOR)

define SMART_EFFECTOR_MOD_PIN -1 // Connect a GPIO pin to the Smart Effector MOD pin

endif

define NOZZLE_TO_PROBE_OFFSET { 0, -30, -2 } // this isnt explainitory enough for the Z. Is this when the pin is deployed or stowed? I presume stowed

define MIN_PROBE_EDGE 10

define XY_PROBE_SPEED 8000

define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z

define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)

define Z_CLEARANCE_DEPLOY_PROBE 10 // Z Clearance for Deploy/Stow

define Z_CLEARANCE_BETWEEN_PROBES 5 // Z Clearance between probe points

define Z_CLEARANCE_MULTI_PROBE 5 // Z Clearance between multiple probes

define Z_PROBE_LOW_POINT -2 // Farthest distance below the trigger-point to go before stopping

                // i believe this is how far the lowest point of the deployed pin goes further in mm past the end of the bottom of the nozzle?

define Z_PROBE_OFFSET_RANGE_MIN -20

define Z_PROBE_OFFSET_RANGE_MAX 20

// Enable the M48 repeatability test to test probe accuracy //#define Z_MIN_PROBE_REPEATABILITY_TEST

if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)

endif

if ENABLED(PROBING_HEATERS_OFF)

endif

define X_ENABLE_ON 0

define Y_ENABLE_ON 0

define Z_ENABLE_ON 0

define E_ENABLE_ON 0 // For all extruders

define DISABLE_X false

define DISABLE_Y false

define DISABLE_Z false

define DISABLE_E false // For all extruders

define DISABLE_INACTIVE_EXTRUDER true // Keep only the active extruder enabled

define INVERT_X_DIR false

define INVERT_Y_DIR false

define INVERT_Z_DIR true

define INVERT_E0_DIR false

define INVERT_E1_DIR false

define INVERT_E2_DIR false

define INVERT_E3_DIR false

define INVERT_E4_DIR false

define INVERT_E5_DIR false

define INVERT_E6_DIR false

define INVERT_E7_DIR false

define Z_AFTER_HOMING 10 // (mm) Height to move to after homing Z

define X_HOME_DIR -1

define Y_HOME_DIR -1

define Z_HOME_DIR -1

define X_BED_SIZE 210

define Y_BED_SIZE 210

define X_MIN_POS -10

define Y_MIN_POS -11

define Z_MIN_POS 0

define X_MAX_POS X_BED_SIZE

define Y_MAX_POS Y_BED_SIZE

define Z_MAX_POS 250

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

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

if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)

endif

if ENABLED(FILAMENT_RUNOUT_SENSOR)

define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.

define FIL_RUNOUT_INVERTING false // Set to true to invert the logic of the sensor.

define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.

define FILAMENT_RUNOUT_SCRIPT "M600"

ifdef FILAMENT_RUNOUT_DISTANCE_MM

endif

endif

define AUTO_BED_LEVELING_BILINEAR

define AUTO_BED_LEVELING_UBL

//#define MESH_BED_LEVELING // i would like this enabled as well to give me the choice but it wont compile

if ANY(MESH_BED_LEVELING, AUTO_BED_LEVELING_BILINEAR, AUTO_BED_LEVELING_UBL)

define ENABLE_LEVELING_FADE_HEIGHT

define SEGMENT_LEVELED_MOVES

define LEVELED_SEGMENT_LENGTH 5.0 // (mm) Length of all segments (except the last one)

//#define G26_MESH_VALIDATION

if ENABLED(G26_MESH_VALIDATION)

#define MESH_TEST_NOZZLE_SIZE    0.4  // (mm) Diameter of primary nozzle.
#define MESH_TEST_LAYER_HEIGHT   0.2  // (mm) Default layer height for the G26 Mesh Validation Tool.
#define MESH_TEST_HOTEND_TEMP  205    // (°C) Default nozzle temperature for the G26 Mesh Validation Tool.
#define MESH_TEST_BED_TEMP      60    // (°C) Default bed temperature for the G26 Mesh Validation Tool.
#define G26_XY_FEEDRATE         20    // (mm/s) Feedrate for XY Moves for the G26 Mesh Validation Tool.
#define G26_RETRACT_MULTIPLIER   1.0  // G26 Q (retraction) used by default between mesh test elements.

endif

endif

if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)

define GRID_MAX_POINTS_X 3

define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X

if ENABLED(AUTO_BED_LEVELING_BILINEAR)

#if ENABLED(ABL_BILINEAR_SUBDIVISION)
  #define BILINEAR_SUBDIVISIONS 3
#endif

endif

elif ENABLED(AUTO_BED_LEVELING_UBL)

//#define MESH_EDIT_GFX_OVERLAY // Display a graphics overlay while editing the mesh

define MESH_INSET 1 // Set Mesh bounds as an inset region of the bed

define GRID_MAX_POINTS_X 10 // Don't use more than 15 points per axis, implementation limited.

define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X

define UBL_MESH_EDIT_MOVES_Z // Sophisticated users prefer no movement of nozzle

define UBL_SAVE_ACTIVE_ON_M500 // Save the currently active mesh in the current slot on M500

//#define UBL_Z_RAISE_WHEN_OFF_MESH 2.5 // When the nozzle is off the mesh, this value is used // as the Z-Height correction value.

elif ENABLED(MESH_BED_LEVELING)

define MESH_INSET 10 // Set Mesh bounds as an inset region of the bed

define GRID_MAX_POINTS_X 3 // Don't use more than 7 points per axis, implementation limited.

define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X

endif // BED_LEVELING

if ENABLED(LCD_BED_LEVELING)

define MESH_EDIT_Z_STEP 0.025 // (mm) Step size while manually probing Z axis.

define LCD_PROBE_Z_RANGE 4 // (mm) Z Range centered on Z_MIN_POS for LCD Z adjustment

//#define MESH_EDIT_MENU // Add a menu to edit mesh points

endif

// Add a menu item to move between bed corners for manual bed adjustment //#define LEVEL_BED_CORNERS

if ENABLED(LEVEL_BED_CORNERS)

define LEVEL_CORNERS_INSET_LFRB { 30, 30, 30, 30 } // (mm) Left, Front, Right, Back insets

define LEVEL_CORNERS_HEIGHT 0.0 // (mm) Z height of nozzle at leveling points

define LEVEL_CORNERS_Z_HOP 4.0 // (mm) Z height of nozzle between leveling points

//#define LEVEL_CENTER_TOO // Move to the center after the last corner

endif

//#define BED_CENTER_AT_110_110

define Z_SAFE_HOMING

if ENABLED(Z_SAFE_HOMING)

define Z_SAFE_HOMING_X_POINT X_CENTER // X point for Z homing when homing all axes (G28).

define Z_SAFE_HOMING_Y_POINT Y_CENTER // Y point for Z homing when homing all axes (G28).

endif

define HOMING_FEEDRATE_XY (50*60)

define HOMING_FEEDRATE_Z (4*60)

define VALIDATE_HOMING_ENDSTOPS

if ENABLED(SKEW_CORRECTION)

// Input all length measurements here:

define XY_DIAG_AC 282.8427124746

define XY_DIAG_BD 282.8427124746

define XY_SIDE_AD 200

// Or, set the default skew factors directly here // to override the above measurements:

define XY_SKEW_FACTOR 0.0

//#define SKEW_CORRECTION_FOR_Z

if ENABLED(SKEW_CORRECTION_FOR_Z)

#define XZ_DIAG_AC 282.8427124746
#define XZ_DIAG_BD 282.8427124746
#define YZ_DIAG_AC 282.8427124746
#define YZ_DIAG_BD 282.8427124746
#define YZ_SIDE_AD 200
#define XZ_SKEW_FACTOR 0.0
#define YZ_SKEW_FACTOR 0.0

endif

// Enable this option for M852 to set skew at runtime //#define SKEW_CORRECTION_GCODE

endif

define EEPROM_SETTINGS // Persistent storage with M500 and M501

define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM.

define EEPROM_BOOT_SILENT // Keep M503 quiet and only give errors during first load

if ENABLED(EEPROM_SETTINGS)

endif

define HOST_KEEPALIVE_FEATURE // Disable this if your host doesn't like keepalive messages

define DEFAULT_KEEPALIVE_INTERVAL 2 // Number of seconds between "busy" messages. Set with M113.

define BUSY_WHILE_HEATING // Some hosts require "busy" messages even during heating

define PREHEAT_1_LABEL "Only Heat For PLA"

define PREHEAT_1_TEMP_HOTEND 200

define PREHEAT_1_TEMP_BED 65

define PREHEAT_1_FAN_SPEED 255 // Value from 0 to 255

if ENABLED(NOZZLE_PARK_FEATURE)

define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }

define NOZZLE_PARK_Z_RAISE_MIN 2 // (mm) Always raise Z by at least this distance

define NOZZLE_PARK_XY_FEEDRATE 100 // (mm/s) X and Y axes feedrate (also used for delta Z axis)

define NOZZLE_PARK_Z_FEEDRATE 5 // (mm/s) Z axis feedrate (not used for delta printers)

endif

if ENABLED(NOZZLE_CLEAN_FEATURE)

define NOZZLE_CLEAN_STROKES 12

define NOZZLE_CLEAN_TRIANGLES 3

define NOZZLE_CLEAN_START_POINT { { 30, 30, (Z_MIN_POS + 1) } }

define NOZZLE_CLEAN_END_POINT { { 100, 60, (Z_MIN_POS + 1) } }

define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5

define NOZZLE_CLEAN_CIRCLE_FN 10

define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT

define NOZZLE_CLEAN_GOBACK

endif

define PRINTJOB_TIMER_AUTOSTART

define LCD_LANGUAGE en

define DISPLAY_CHARSET_HD44780 WESTERN

define LCD_INFO_SCREEN_STYLE 0

define SDSUPPORT

define REVERSE_ENCODER_DIRECTION

define REPRAP_DISCOUNT_SMART_CONTROLLER

if ENABLED(SAV_3DGLCD)

define U8GLIB_SSD1306

endif

if ENABLED(TOUCH_BUTTONS)

define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens

define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus

define XPT2046_X_CALIBRATION 12316

define XPT2046_Y_CALIBRATION -8981

define XPT2046_X_OFFSET -43

define XPT2046_Y_OFFSET 257

endif

define SOFT_PWM_SCALE 0

if EITHER(RGB_LED, RGBW_LED)

endif

if ENABLED(NEOPIXEL_LED)

define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)

define NEOPIXEL_PIN 4 // LED driving pin

define NEOPIXEL_PIXELS 30 // Number of LEDs in the strip, larger of 2 strips if 2 neopixel strips are used

define NEOPIXEL_IS_SEQUENTIAL // Sequential display for temperature change - LED by LED. Disable to change all LEDs at once.

define NEOPIXEL_BRIGHTNESS 127 // Initial brightness (0-255)

endif

if ANY(BLINKM, RGB_LED, RGBW_LED, PCA9632, PCA9533, NEOPIXEL_LED)

define PRINTER_EVENT_LEDS

endif

define NUM_SERVOS 1 // Servo index starts with 0 for M280 command

define SERVO_DELAY { 300 }

`

boelle commented 4 years ago

@alphastrem code is to long to read, so was the problem fixed after retesting?

alphastrem commented 4 years ago

No still doesn’t work it homes with the physical endstops and the Z-up a few mil ... bltouch pin extends ... moves to the first mesh point ... z-down ... the pin hits the bed but doesn’t ‘flick’ back up inside itself. And then starts flashing red.

Sent from my iPhone 10

On 30 Jun 2020, at 11:58, Bo Herrmannsen notifications@github.com wrote:



@alphastremhttps://github.com/alphastrem code is to long to read, so was the problem fixed after retesting?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/MarlinFirmware/Marlin/issues/18162#issuecomment-651720635, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIQ5KMFKEVM2SKJLOM4DFILRZHAMHANCNFSM4NPDKFJQ.

boelle commented 4 years ago

and the distance from the nozzle tip to bl touch is correct?

image

alphastrem commented 4 years ago

Actually that is pretty spot on you can see my YouTube video here https://youtu.be/S2S_CDAGo7o

At about 35 seconds in you can see how level itnis

Sent from my iPhone 10

On 30 Jun 2020, at 16:45, Bo Herrmannsen notifications@github.com wrote:



and the distance from the nozzle tip to bl touch is correct?

[image]https://user-images.githubusercontent.com/3832239/86147219-69085c00-baf9-11ea-83b3-a85b94d636e3.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/MarlinFirmware/Marlin/issues/18162#issuecomment-651878736, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIQ5KMHXVTQWK4WBC6FRZNTRZICAZANCNFSM4NPDKFJQ.

github-actions[bot] commented 4 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label / comment or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.