Welcome! Log In Create A New Profile

Advanced

aiuto autoleveling endstop

Posted by forumcnc.com 
aiuto autoleveling endstop
April 04, 2016 03:09PM
Spiego

ho il marlin della Kossel con autoleveling che funzionava in modo che quando batteva sul piano mi chiudeva il contatto .
Adesso invece mi serve che quando batte sul piano mi apre endstop

mi potete aiutare a capire cosa devo modificare nel marlin vi allego il mio marlin sezione autoleveling :

grazie


//================= Kossel Self-leveling configuration ====================

#define ENABLE_AUTO_BED_LEVELING // Auto-leveling feature is turned on or not. 

#ifdef ENABLE_AUTO_BED_LEVELING


  #define DELTA_PROBABLE_RADIUS (DELTA_PRINTABLE_RADIUS-50)//Here the probe is set to leveling the range of movement,Increasing the leveling range, reduce the "-50" This value,Reducing leveling range, increase the "-50" value
  //如:#define DELTA_PROBABLE_RADIUS (DELTA_PRINTABLE_RADIUS-60)
  
  #define LEFT_PROBE_BED_POSITION -DELTA_PROBABLE_RADIUS
  #define RIGHT_PROBE_BED_POSITION DELTA_PROBABLE_RADIUS
  #define BACK_PROBE_BED_POSITION DELTA_PROBABLE_RADIUS
  #define FRONT_PROBE_BED_POSITION -DELTA_PROBABLE_RADIUS

  #define X_PROBE_OFFSET_FROM_EXTRUDER 0.0
  #define Y_PROBE_OFFSET_FROM_EXTRUDER 0.0
  #define Z_PROBE_OFFSET_FROM_EXTRUDER 0.5//Automatic leveling settings,too high reduce,low increases

  #define Z_RAISE_BEFORE_HOMING 4       // Configuration of before homing, Z-axis height raised,the height must be ensured in the range of the maximum height in the Z-axis.
  
  #define XY_TRAVEL_SPEED 2000         //Automatic leveling speed of movement,increasing the speed increase, decrease speed reduction

  #define Z_RAISE_BEFORE_PROBING 80  ////Before the first pre-test point, Z-axis height raised, the height should ensure that the leveling sensors can normally be put down.
  #define Z_RAISE_BETWEEN_PROBINGS 5  //The next pre-test point,Z-axis height raised

  #define Z_SAFE_HOMING   
  #ifdef Z_SAFE_HOMING

    #define Z_SAFE_HOMING_X_POINT (X_MAX_LENGTH/2)   
    #define Z_SAFE_HOMING_Y_POINT (Y_MAX_LENGTH/2)   

  #endif


  #define ACCURATE_BED_LEVELING
  #ifdef ACCURATE_BED_LEVELING
    #define ACCURATE_BED_LEVELING_POINTS 3 //Automatic leveling probes,point 3 points, vertical and horizontal axes each point three points,the total is 9 points;If changed to 6, the vertical and horizontal axes points 6 points each, a total of 36 points.
    #define ACCURATE_BED_LEVELING_GRID_X ((RIGHT_PROBE_BED_POSITION - LEFT_PROBE_BED_POSITION) / (ACCURATE_BED_LEVELING_POINTS - 1))
    #define ACCURATE_BED_LEVELING_GRID_Y ((BACK_PROBE_BED_POSITION - FRONT_PROBE_BED_POSITION) / (ACCURATE_BED_LEVELING_POINTS - 1))
    #define NONLINEAR_BED_LEVELING
  #endif

#endif

// The position of the homing switches
#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)

//Manual homing switch locations:
// For deltabots this means top and center of the cartesian print volume.
#define MANUAL_X_HOME_POS 0
#define MANUAL_Y_HOME_POS 0
#define MANUAL_Z_HOME_POS 320//306.6 // For delta: Distance between nozzle and print surface after homing.
//Because there will be differences for each machine installation, need your own measurement,after setting finished remember to keep Modify.

//// MOVEMENT SETTINGS
#define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
#define HOMING_FEEDRATE {60*60, 60*60, 60*60, 0}  // set the homing speeds (mm/min)

#define XYZ_FULL_STEPS_PER_ROTATION 200 //Stepper motor weekly number of steps, namely 360 / stepper motor angle
//For example, 1.8 degrees, the number of steps should be 360 / 1.8 = 200; if it is 0.9 degree motor 360 / 0.9 = 400.
#define XYZ_MICROSTEPS 16 //Breakdown of the number of stepper drive
#define XYZ_BELT_PITCH 2 //Belt tooth pitch
#define XYZ_PULLEY_TEETH 16 //Synchronization number of teeth
#define XYZ_STEPS (XYZ_FULL_STEPS_PER_ROTATION * XYZ_MICROSTEPS / double(XYZ_BELT_PITCH) / double(XYZ_PULLEY_TEETH))
//This is the formula: number of subdivisions number * stepping stepper motor driver / belt tooth spacing / synchronous tooth number

#define DEFAULT_AXIS_STEPS_PER_UNIT   {XYZ_STEPS, XYZ_STEPS, XYZ_STEPS, 150}   //Extruder amount
#define DEFAULT_MAX_FEEDRATE          {200, 200, 200, 200}   
#define DEFAULT_MAX_ACCELERATION      {3000,3000,3000,3000}    

//Acceleration configuration, when out of step if the print is too large, this value can be piecemeal
#define DEFAULT_ACCELERATION          3000    
#define DEFAULT_RETRACT_ACCELERATION  3000   

//Do not need to speed up the distance between the axes, ie without acceleration, immediate completion of the distance (ie, software thinks he can complete in an instant)
#define DEFAULT_XYJERK                20.0   
#define DEFAULT_ZJERK                 20.0    
#define DEFAULT_EJERK                 20.0  
Re: aiuto autoleveling endstop
April 04, 2016 03:14PM
Non sta qui ma nella sezione degli endstop devi invertire la logica dell'endstop che hai usato...


COMPRA ITALIANO - sostieni le nostre aziende - sostieni la nostra gente - sostieni il tuo popolo - sosterrai te stesso.
Alberto C. felice possessore di una Kossel K2
My Blog - My Thingiverse
Re: aiuto autoleveling endstop
April 04, 2016 03:19PM
in questi dici lo devo configurare per una micromake delta

//===========================================================================
//============================= Mechanical Settings ================================
//===========================================================================

// Uncomment the following line to enable CoreXY kinematics
// #define COREXY

// coarse Endstop Settings
#define ENDSTOPPULLUPS  // Comment this out (using // at the start of the line) to disable the endstop pullup resistors

#ifndef ENDSTOPPULLUPS
 // fine Enstop settings: Individual Pullups. will be ignored if ENDSTOPPULLUPS is defined
  // #define ENDSTOPPULLUP_XMAX
  // #define ENDSTOPPULLUP_YMAX
  // #define ENDSTOPPULLUP_ZMAX
  // #define ENDSTOPPULLUP_XMIN
  // #define ENDSTOPPULLUP_YMIN
  // #define ENDSTOPPULLUP_ZMIN
#endif

#ifdef ENDSTOPPULLUPS
  #define ENDSTOPPULLUP_XMAX
  #define ENDSTOPPULLUP_YMAX
  #define ENDSTOPPULLUP_ZMAX
  #define ENDSTOPPULLUP_XMIN
  #define ENDSTOPPULLUP_YMIN
  #define ENDSTOPPULLUP_ZMIN
#endif

// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
const bool X_MIN_ENDSTOP_INVERTING = false; 
const bool Y_MIN_ENDSTOP_INVERTING = false; 
const bool Z_MIN_ENDSTOP_INVERTING = false;
const bool X_MAX_ENDSTOP_INVERTING = false; 
const bool Y_MAX_ENDSTOP_INVERTING = false;
const bool Z_MAX_ENDSTOP_INVERTING = false; 
//#define DISABLE_MAX_ENDSTOPS
//#define DISABLE_MIN_ENDSTOPS

// Disable max endstops for compatibility with endstop checking routine
#if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)
  #define DISABLE_MAX_ENDSTOPS
#endif

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0 // For all extruders

// Disables axis when it's not being used.
#define DISABLE_X false
#define DISABLE_Y false
#define DISABLE_Z false
#define DISABLE_E false // For all extruders

#define INVERT_X_DIR true    // for Mendel set to false, for Orca set to true
#define INVERT_Y_DIR true    // for Mendel set to true, for Orca set to false
#define INVERT_Z_DIR true    // for Mendel set to false, for Orca set to true
#define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E1_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false

// ENDSTOP SETTINGS:
// Sets direction of endstops when homing; 1=MAX, -1=MIN
#define X_HOME_DIR 1
#define Y_HOME_DIR 1
#define Z_HOME_DIR 1

#define min_software_endstops false // If true, axis won't move to coordinates less than HOME_POS.
#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.

// Travel limits after homing
#define X_MAX_POS DELTA_PRINTABLE_RADIUS
#define X_MIN_POS -DELTA_PRINTABLE_RADIUS
#define Y_MAX_POS DELTA_PRINTABLE_RADIUS
#define Y_MIN_POS -DELTA_PRINTABLE_RADIUS
#define Z_MAX_POS MANUAL_Z_HOME_POS
#define Z_MIN_POS 0

#define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
#define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)
#define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
Re: aiuto autoleveling endstop
April 04, 2016 03:47PM
grazie penso di aver risolto dovevo modificare const bool Z_MIN_ENDSTOP_INVERTING = false; in true
Sorry, only registered users may post in this forum.

Click here to login