KREMEN Реклама
KREMEN Реклама

Kossel linear plus SKR 1.4 turbo не могу заставить работать комплектный датчик автоуровня стола.

Blg7791
Идет загрузка
Загрузка
20.04.2021
1545
7
Вопросы и ответы
Статья относится к принтерам:
Anycubic Kossel linear plus

Здравствуйте. Установлен стандартый датчик автоуровня стола, подключён к гнезду probe. В прошивке прописывал строку    #define Z_MIN_PROBE_PIN P0_10  в Z Probe Options. В Endstop Settings тоже пробовал менять Z_MIN_PROBE_ENDSTOP_INVERTING Z_MIN_ENDSTOP_INVERTING по разному не помогает. При включении автоколибровки, хомится начинает опускаться и на высоте 261 мм пишет Deploy Z-probe. Ниже часть прошивки взято отсюда https://www.thingiverse.com/thing:4543582 правленно под TMC 2208. Помогите пожалуйста, задолбался уже.

//===========================================================================

//============================== Delta Settings =============================

//===========================================================================

// Enable DELTA kinematics and most of the default configuration for Deltas

#define DELTA

#if ENABLED(DELTA)

  // Make delta curves from many straight lines (linear interpolation).

  // This is a trade-off between visible corners (not enough segments)

  // and processor overload (too many expensive sqrt calls).

  #define DELTA_SEGMENTS_PER_SECOND 80

  // After homing move down to a height where XY movement is unconstrained

  //#define DELTA_HOME_TO_SAFE_ZONE

  // Delta calibration menu

  // uncomment to add three points calibration menu option.

  // See http://minow.blogspot.com/index.html#4918805519571907051

  #define DELTA_CALIBRATION_MENU

  // uncomment to add G33 Delta Auto-Calibration (Enable EEPROM_SETTINGS to store results)

  #if ANYCUBIC_PROBE_VERSION > 0

    #define DELTA_AUTO_CALIBRATION

  #endif

  // NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them

  #if ENABLED(DELTA_AUTO_CALIBRATION)

    // set the default number of probe points : n*n (1 -> 7)

    #define DELTA_CALIBRATION_DEFAULT_POINTS 7

  #endif

  #if EITHER(DELTA_AUTO_CALIBRATION, DELTA_CALIBRATION_MENU)

    // Set the steprate for papertest probing

    #define PROBE_MANUALLY_STEP 0.05 // (mm)

  #endif

  #if ENABLED(ANYCUBIC_KOSSEL_PLUS)

    // Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).

    #define DELTA_PRINTABLE_RADIUS 118.0 // (mm)

    // Center-to-center distance of the holes in the diagonal push rods.

    #define DELTA_DIAGONAL_ROD 267 // (mm)

      // Horizontal offset from middle of printer to smooth rod center.

    #define DELTA_SMOOTH_ROD_OFFSET 186 // (mm)

    // Horizontal offset of the universal joints on the end effector.

    #define DELTA_EFFECTOR_OFFSET 31 // (mm)

    // Horizontal offset of the universal joints on the carriages.

    #define DELTA_CARRIAGE_OFFSET 20.6 // (mm)

    // Horizontal distance bridged by diagonal push rods when effector is centered.

    #define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-(DELTA_EFFECTOR_OFFSET)-(DELTA_CARRIAGE_OFFSET)) // (mm) Get this value from G33 auto calibrate

  #else

    // Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).

    #define DELTA_PRINTABLE_RADIUS 90.0 // (mm)

    // Center-to-center distance of the holes in the diagonal push rods.

    #define DELTA_DIAGONAL_ROD 218.0 // (mm)

    // Horizontal distance bridged by diagonal push rods when effector is centered.

    #define DELTA_RADIUS 97.0 // (mm) Get this value from G33 auto calibrate

  #endif

  // Distance between bed and nozzle Z home position

  #define DELTA_HEIGHT 320.00 // (mm) Get this value from G33 auto calibrate

  #define DELTA_ENDSTOP_ADJ { 0.0, 0.0, 0.0 } // Get these values from G33 auto calibrate

  // Trim adjustments for individual towers

  // tower angle corrections for X and Y tower / rotate XYZ so Z tower angle = 0

  // measured in degrees anticlockwise looking from above the printer

  #define DELTA_TOWER_ANGLE_TRIM { 0.0, 0.0, 0.0 } // Get these values from G33 auto calibrate

  // Delta radius and diagonal rod adjustments (mm)

  //#define DELTA_RADIUS_TRIM_TOWER { 0.0, 0.0, 0.0 }

  //#define DELTA_DIAGONAL_ROD_TRIM_TOWER { 0.0, 0.0, 0.0 }

#endif

//===========================================================================

//============================== 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

#if ANYCUBIC_PROBE_VERSION > 0

  #define USE_ZMIN_PLUG // a Z probe

#endif

#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 (ANYCUBIC_PROBE_VERSION + 0 == 1) // V1 is NO, V2 is NC

#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 Z_MIN_ENDSTOP_INVERTING

/**

 * Stepper Drivers

 *

 * These settings allow Marlin to tune stepper driver timing and enable advanced options for

 * stepper drivers that support them. You may also override timing options in Configuration_adv.h.

 *

 * A4988 is assumed for unspecified drivers.

 *

 * Options: A4988, A5984, DRV8825, LV8729, L6470, L6474, POWERSTEP01,

 * TB6560, TB6600, TMC2100,

 * TMC2130, TMC2130_STANDALONE, TMC2160, TMC2160_STANDALONE,

 * TMC2208, TMC2208_STANDALONE, TMC2209, TMC2209_STANDALONE,

 * TMC26X, TMC26X_STANDALONE, TMC2660, TMC2660_STANDALONE,

 * TMC5130, TMC5130_STANDALONE, TMC5160, TMC5160_STANDALONE

 * :['A4988', 'A5984', 'DRV8825', 'LV8729', 'L6470', 'L6474', 'POWERSTEP01', 'TB6560', 'TB6600', 'TMC2100', 'TMC2130', 'TMC2130_STANDALONE', 'TMC2160', 'TMC2160_STANDALONE', 'TMC2208', 'TMC2208_STANDALONE', 'TMC2209', 'TMC2209_STANDALONE', 'TMC26X', 'TMC26X_STANDALONE', 'TMC2660', 'TMC2660_STANDALONE', 'TMC5130', 'TMC5130_STANDALONE', 'TMC5160', 'TMC5160_STANDALONE']

 */

#define X_DRIVER_TYPE TMC2208

#define Y_DRIVER_TYPE TMC2208

#define Z_DRIVER_TYPE TMC2208

//#define X2_DRIVER_TYPE A4988

//#define Y2_DRIVER_TYPE A4988

//#define Z2_DRIVER_TYPE A4988

//#define Z3_DRIVER_TYPE A4988

//#define Z4_DRIVER_TYPE A4988

#define E0_DRIVER_TYPE A4988

//#define E1_DRIVER_TYPE A4988

//#define E2_DRIVER_TYPE A4988

//#define E3_DRIVER_TYPE A4988

//#define E4_DRIVER_TYPE A4988

//#define E5_DRIVER_TYPE A4988

//#define E6_DRIVER_TYPE A4988

//#define E7_DRIVER_TYPE A4988

// 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

/**

 * Endstop Noise Threshold

 *

 * Enable if your probe or endstops falsely trigger due to noise.

 *

 * - Higher values may affect repeatability or accuracy of some bed probes.

 * - To fix noise install a 100nF ceramic capacitor in parallel with the switch.

 * - This feature is not required for common micro-switches mounted on PCBs

 * based on the Makerbot design, which already have the 100nF capacitor.

 *

 * :[2,3,4,5,6,7]

 */

//#define ENDSTOP_NOISE_THRESHOLD 2

// Check for stuck or disconnected endstops during homing moves.

//#define DETECT_BROKEN_ENDSTOP

//=============================================================================

//============================== Movement Settings ============================

//=============================================================================

// @section motion

// delta speeds must be the same on xyz

/**

 * Default Settings

 *

 * These settings can be reset by M502

 *

 * Note that if EEPROM is enabled, saved values will override these.

 */

/**

 * With this option each E stepper can have its own factors for the

 * following movement settings. If fewer factors are given than the

 * total number of extruders, the last value applies to the rest.

 */

//#define DISTINCT_E_FACTORS

/**

 * Default Axis Steps Per Unit (steps/mm)

 * Override with M92

 * X, Y, Z, E0 [, E1[, E2...]]

 */

//#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 4000, 500 }

// variables to calculate steps

#define XYZ_FULL_STEPS_PER_ROTATION 200

#define XYZ_MICROSTEPS 16

#define XYZ_BELT_PITCH 2

#define XYZ_PULLEY_TEETH 20

// delta speeds must be the same on xyz

#define DEFAULT_XYZ_STEPS_PER_UNIT ((XYZ_FULL_STEPS_PER_ROTATION) * (XYZ_MICROSTEPS) / double(XYZ_BELT_PITCH) / double(XYZ_PULLEY_TEETH)) // 80

#define DEFAULT_AXIS_STEPS_PER_UNIT { DEFAULT_XYZ_STEPS_PER_UNIT, DEFAULT_XYZ_STEPS_PER_UNIT, DEFAULT_XYZ_STEPS_PER_UNIT, 96 } // default steps per unit for Kossel (GT2, 20 tooth)

/**

 * Default Max Feed Rate (mm/s)

 * Override with M203

 * X, Y, Z, E0 [, E1[, E2...]]

 */

#define DEFAULT_MAX_FEEDRATE { 200, 200, 200, 50}

//#define LIMITED_MAX_FR_EDITING // Limit edit via M203 or LCD to DEFAULT_MAX_FEEDRATE * 2

#if ENABLED(LIMITED_MAX_FR_EDITING)

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

#endif

/**

 * Default Max Acceleration (change/s) change = mm/s

 * (Maximum start speed for accelerated moves)

 * Override with M201

 * X, Y, Z, E0 [, E1[, E2...]]

 */

#define DEFAULT_MAX_ACCELERATION { 2000, 2000, 2000, 2000 }

//#define LIMITED_MAX_ACCEL_EDITING // Limit edit via M201 or LCD to DEFAULT_MAX_ACCELERATION * 2

#if ENABLED(LIMITED_MAX_ACCEL_EDITING)

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

#endif

/**

 * Default Acceleration (change/s) change = mm/s

 * Override with M204

 *

 * M204 P Acceleration

 * M204 R Retract Acceleration

 * M204 T Travel Acceleration

 */

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

#define DEFAULT_RETRACT_ACCELERATION 2500 // E acceleration for retracts

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

/**

 * Default Jerk limits (mm/s)

 * Override with M205 X Y Z E

 *

 * "Jerk" specifies the minimum speed change that requires acceleration.

 * When changing speed and direction, if the difference is less than the

 * value set here, it may happen instantaneously.

 */

#define CLASSIC_JERK

#if ENABLED(CLASSIC_JERK)

  #define DEFAULT_XJERK 10.0

  #define DEFAULT_YJERK DEFAULT_XJERK

  #define DEFAULT_ZJERK DEFAULT_XJERK // Must be same as XY for delta

  //#define TRAVEL_EXTRA_XYJERK 0.0 // Additional jerk allowance for all travel moves

  //#define LIMITED_JERK_EDITING // Limit edit via M205 or LCD to DEFAULT_aJERK * 2

  #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 10.0 // May be used by Linear Advance

/**

 * Junction Deviation Factor

 *

 * See:

 * https://reprap.org/forum/read.php?1,739819

 * https://blog.kyneticcnc.com/2018/10/computing-junction-deviation-for-marlin.html

 */

#if DISABLED(CLASSIC_JERK)

  #define JUNCTION_DEVIATION_MM 0.003 // (mm) Distance from real junction edge

  #define JD_HANDLE_SMALL_SEGMENTS // Use curvature estimation instead of just the junction angle

                                      // for small segments ( 135°).

#endif

/**

 * S-Curve Acceleration

 *

 * This option eliminates vibration during printing by fitting a Bézier

 * curve to move acceleration, producing much smoother direction changes.

 *

 * See https://github.com/synthetos/TinyG/wiki/Jerk-Controlled-Motion-Explained

 */

#define S_CURVE_ACCELERATION

//===========================================================================

//============================= Z Probe Options =============================

//===========================================================================

// @section probes

//

// See https://marlinfw.org/docs/configuration/probes.html

//

/**

 * Enable this option for a probe connected to the Z-MIN pin.

 * The probe replaces the Z-MIN endstop and is used for Z homing.

 * (Automatically enables USE_PROBE_FOR_Z_HOMING.)

 */

#if ANYCUBIC_PROBE_VERSION > 0

  //#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN

#endif

// Force the use of the probe for Z-axis homing

//#define USE_PROBE_FOR_Z_HOMING

#define Z_MIN_PROBE_PIN P0_10

/**

 * Z_MIN_PROBE_PIN

 *

 * Define this pin if the probe is not connected to Z_MIN_PIN.

 * If not defined the default pin for the selected MOTHERBOARD

 * will be used. Most of the time the default is what you want.

 *

 * - The simplest option is to use a free endstop connector.

 * - Use 5V for powered (usually inductive) sensors.

 *

 * - RAMPS 1.3/1.4 boards may use the 5V, GND, and Aux4->D32 pin:

 * - For simple switches connect...

 * - normally-closed switches to GND and D32.

 * - normally-open switches to 5V and D32.

 */

//#define Z_MIN_PROBE_PIN P0_10 // Pin 32 is the RAMPS default

/**

 * Probe Type

 *

 * Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc.

 * Activate one of these to use Auto Bed Leveling below.

 */

/**

 * The "Manual Probe" provides a means to do "Auto" Bed Leveling without a probe.

 * Use G29 repeatedly, adjusting the Z height at each point with movement commands

 * or (with LCD_BED_LEVELING) the LCD controller.

 */

#if ANYCUBIC_PROBE_VERSION == 0

  #define PROBE_MANUALLY

  #define MANUAL_PROBE_START_Z 1.5

#endif

/**

 * A Fix-Mounted Probe either doesn't deploy or needs manual deployment.

 * (e.g., an inductive probe or a nozzle-based probe-switch.)

 */

#if ANYCUBIC_PROBE_VERSION > 0

  #define FIX_MOUNTED_PROBE

#endif

/**

 * Z Servo Probe, such as an endstop switch on a rotating arm.

 */

//#define Z_PROBE_SERVO_NR 0 // Defaults to SERVO 0 connector.

//#define Z_SERVO_ANGLES { 70, 0 } // Z Servo Deploy and Stow angles

/**

 * The BLTouch probe uses a Hall effect sensor and emulates a servo.

 */

//#define BLTOUCH

/**

 * Pressure sensor with a BLTouch-like interface

 */

//#define CREALITY_TOUCH

/**

 * Touch-MI Probe by hotends.fr

 *

 * This probe is deployed and activated by moving the X-axis to a magnet at the edge of the bed.

 * By default, the magnet is assumed to be on the left and activated by a home. If the magnet is

 * on the right, enable and set TOUCH_MI_DEPLOY_XPOS to the deploy position.

 *

 * Also requires: BABYSTEPPING, BABYSTEP_ZPROBE_OFFSET, Z_SAFE_HOMING,

 * and a minimum Z_HOMING_HEIGHT of 10.

 */

//#define TOUCH_MI_PROBE

#if ENABLED(TOUCH_MI_PROBE)

  #define TOUCH_MI_RETRACT_Z 0.5 // Height at which the probe retracts

  //#define TOUCH_MI_DEPLOY_XPOS (X_MAX_BED + 2) // For a magnet on the right side of the bed

  //#define TOUCH_MI_MANUAL_DEPLOY // For manual deploy (LCD menu)

#endif

// A probe that is deployed and stowed with a solenoid pin (SOL1_PIN)

//#define SOLENOID_PROBE

// A sled-mounted probe like those designed by Charles Bell.

//#define Z_PROBE_SLED

//#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.

// A probe deployed by moving the x-axis, such as the Wilson II's rack-and-pinion probe designed by Marty Rice.

//#define RACK_AND_PINION_PROBE

#if ENABLED(RACK_AND_PINION_PROBE)

  #define Z_PROBE_DEPLOY_X X_MIN_POS

  #define Z_PROBE_RETRACT_X X_MAX_POS

#endif

// Duet Smart Effector (for delta printers) - https://bit.ly/2ul5U7J

// When the pin is defined you can use M672 to set/reset the probe sensivity.

//#define DUET_SMART_EFFECTOR

#if ENABLED(DUET_SMART_EFFECTOR)

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

#endif

/**

 * Use StallGuard2 to probe the bed with the nozzle.

 * Requires stallGuard-capable Trinamic stepper drivers.

 * CAUTION: This can damage machines with Z lead screws.

 * Take extreme care when setting up this feature.

 */

//#define SENSORLESS_PROBING

/**

 * Allen key retractable z-probe as seen on many Kossel delta printers - https://reprap.org/wiki/Kossel#Automatic_bed_leveling_probe

 * Deploys by touching z-axis belt. Retracts by pushing the probe down. Uses Z_MIN_PIN.

 */

//#define Z_PROBE_ALLEN_KEY

#if ENABLED(Z_PROBE_ALLEN_KEY)

  // 2 or 3 sets of coordinates for deploying and retracting the spring loaded touch probe on G29,

  // if servo actuated touch probe is not defined. Uncomment as appropriate for your printer/probe.

  #define Z_PROBE_ALLEN_KEY_DEPLOY_1 { 30.0, DELTA_PRINTABLE_RADIUS, 100.0 }

  #define Z_PROBE_ALLEN_KEY_DEPLOY_1_FEEDRATE XY_PROBE_SPEED

  #define Z_PROBE_ALLEN_KEY_DEPLOY_2 { 0.0, DELTA_PRINTABLE_RADIUS, 100.0 }

  #define Z_PROBE_ALLEN_KEY_DEPLOY_2_FEEDRATE (XY_PROBE_SPEED)/10

  #define Z_PROBE_ALLEN_KEY_DEPLOY_3 { 0.0, (DELTA_PRINTABLE_RADIUS) * 0.75, 100.0 }

  #define Z_PROBE_ALLEN_KEY_DEPLOY_3_FEEDRATE XY_PROBE_SPEED

  #define Z_PROBE_ALLEN_KEY_STOW_1 { -64.0, 56.0, 23.0 } // Move the probe into position

  #define Z_PROBE_ALLEN_KEY_STOW_1_FEEDRATE XY_PROBE_SPEED

  #define Z_PROBE_ALLEN_KEY_STOW_2 { -64.0, 56.0, 3.0 } // Push it down

  #define Z_PROBE_ALLEN_KEY_STOW_2_FEEDRATE (XY_PROBE_SPEED)/10

  #define Z_PROBE_ALLEN_KEY_STOW_3 { -64.0, 56.0, 50.0 } // Move it up to clear

  #define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE XY_PROBE_SPEED

  #define Z_PROBE_ALLEN_KEY_STOW_4 { 0.0, 0.0, 50.0 }

  #define Z_PROBE_ALLEN_KEY_STOW_4_FEEDRATE XY_PROBE_SPEED

#endif // Z_PROBE_ALLEN_KEY

/**

 * Nozzle-to-Probe offsets { X, Y, Z }

 *

 * - Use a caliper or ruler to measure the distance from the tip of

 * the Nozzle to the center-point of the Probe in the X and Y axes.

 * - For the Z offset use your best known value and adjust at runtime.

 * - Probe Offsets can be tuned at runtime with 'M851', LCD menus, babystepping, etc.

 *

 * Assuming the typical work area orientation:

 * - Probe to RIGHT of the Nozzle has a Positive X offset

 * - Probe to LEFT of the Nozzle has a Negative X offset

 * - Probe in BACK of the Nozzle has a Positive Y offset

 * - Probe in FRONT of the Nozzle has a Negative Y offset

 *

 * Some examples:

 * #define NOZZLE_TO_PROBE_OFFSET { 10, 10, -1 } // Example "1"

 * #define NOZZLE_TO_PROBE_OFFSET {-10, 5, -1 } // Example "2"

 * #define NOZZLE_TO_PROBE_OFFSET { 5, -5, -1 } // Example "3"

 * #define NOZZLE_TO_PROBE_OFFSET {-15,-10, -1 } // Example "4"

 *

 * +-- BACK ---+

 * | [+] |

 * L | 1 | R = 1 are valid here.

 *

 * Example: `M851 Z-5` with a CLEARANCE of 4 => 9mm from bed to nozzle.

 * But: `M851 Z+1` with a CLEARANCE of 2 => 2mm from bed to nozzle.

 */

#define Z_CLEARANCE_DEPLOY_PROBE 50 // 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_AFTER_PROBING 5 // Z position after probing is done

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

// For M851 give a range for adjusting the Z probe offset

#define Z_PROBE_OFFSET_RANGE_MIN -40

#define Z_PROBE_OFFSET_RANGE_MAX 20

// Enable the M48 repeatability test to test probe accuracy

#if ANYCUBIC_PROBE_VERSION > 0

  #define Z_MIN_PROBE_REPEATABILITY_TEST

#endif

// Before deploy/stow pause for user confirmation

#define PAUSE_BEFORE_DEPLOY_STOW

#if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)

  //#define PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED // For Manual Deploy Allenkey Probe

#endif

/**

 * Enable one or more of the following if probing seems unreliable.

 * Heaters and/or fans can be disabled during probing to minimize electrical

 * noise. A delay can also be added to allow noise and vibration to settle.

 * These options are most useful for the BLTouch probe, but may also improve

 * readings with inductive probes and piezo sensors.

 */

//#define PROBING_HEATERS_OFF // Turn heaters off when probing

#if ENABLED(PROBING_HEATERS_OFF)

  //#define WAIT_FOR_BED_HEATER // Wait for bed to heat back up between probes (to improve accuracy)

#endif

//#define PROBING_FANS_OFF // Turn fans off when probing

//#define PROBING_STEPPERS_OFF // Turn steppers off (unless needed to hold position) when probing

//#define DELAY_BEFORE_PROBING 200 // (ms) To prevent vibrations from triggering piezo sensors

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1

// :{ 0:'Low', 1:'High' }

#define X_ENABLE_ON 0

#define Y_ENABLE_ON 0

#define Z_ENABLE_ON 0

#define E_ENABLE_ON 0 // For all extruders

// Disable axis steppers immediately when they're not being stepped.

// WARNING: When motors turn off there is a chance of losing position accuracy!

#define DISABLE_X false

#define DISABLE_Y false

#define DISABLE_Z false

// Turn off the display blinking that warns about possible accuracy reduction

//#define DISABLE_REDUCED_ACCURACY_WARNING

// @section extruder

#define DISABLE_E false // Disable the extruder when not stepping

#define DISABLE_INACTIVE_EXTRUDER // Keep only the active extruder enabled

// @section machine

// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.

#define INVERT_X_DIR false //инвертировал на false (true), нужно чтобы движки поехали вверх.

#define INVERT_Y_DIR false

#define INVERT_Z_DIR false

// @section extruder

// For direct drive extruder v9 set to true, for geared extruder set to false.

#define INVERT_E0_DIR false //treu

#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

// @section homing

//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed

//#define UNKNOWN_Z_NO_RAISE // Don't raise Z (lower the bed) if Z is "unknown." For beds that fall when Z is powered off.

//#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

// :[-1,1]

#define X_HOME_DIR 1 // deltas always home to max

#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

#if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)

  #define SOFT_ENDSTOPS_MENU_ITEM // Enable/Disable software endstops from the LCD

#endif

/**

 * Filament Runout Sensors

 * Mechanical or opto endstops are used to check for the presence of filament.

 *

 * RAMPS-based boards use SERVO3_PIN for the first runout sensor.

 * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.

 */

//#define FILAMENT_RUNOUT_SENSOR

#if ENABLED(FILAMENT_RUNOUT_SENSOR)

  #define FIL_RUNOUT_ENABLED_DEFAULT true // Enable the sensor on startup. Override with M412 followed by M500.

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

  #define FIL_RUNOUT_STATE LOW // Pin state indicating that filament is NOT present.

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

  //#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.

  // Set one or more commands to execute on filament runout.

  // (After 'M412 H' Marlin will ask the host to handle the process.)

  #define FILAMENT_RUNOUT_SCRIPT "M600"

  // After a runout is detected, continue printing this length of filament

  // before executing the runout script. Useful for a sensor at the end of

  // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

  //#define FILAMENT_RUNOUT_DISTANCE_MM 25

  #ifdef FILAMENT_RUNOUT_DISTANCE_MM

    // Enable this option to use an encoder disc that toggles the runout pin

    // as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM

    // large enough to avoid false positives.)

    //#define FILAMENT_MOTION_SENSOR

  #endif

#endif

Ответы на вопросы
Lider 3D Реклама
Lider 3D Реклама