Open paenian opened 11 years ago
This can happen if the endstops are triggered early by cross talk. Have you drilled your endstop cables? Are there any other cables near by like motor cable (should also be drilled).
You can add outputs in motion.cpp line 800
void DeltaSegment::checkEndstops(PrintLine *cur,bool checkall)
there you can add a short print copied from somewhere else to see if it early triggered endstop.
All I can say is that my delta homes all the way.
Sounds like the moves run on steps instead of distance? Den 15. aug. 2013 13:19 skrev "Paul Chase" notifications@github.com følgende:
When my delta homes it will stop one or more axes short of the endstop, then does its back off, and on the retest it starts for the endstops again but often (not always) stops short. In the end, some axes will be fully homed and some will not.
Has anyone else experienced this? I've used Repetier successfully for some time now, no idea what went wrong - it's the same issue in both the Master and Development branch.
I have microswitch endstops connected signal to ground across the NC terminals, using the internal pullups.
M119 gives correct status no matter what endstop(s) are triggered.
Should I try connecting the +5 to the endstop's NO terminal? Would I need a resistor?
Is there any way to get the endstops to echo when triggered?
— Reply to this email directly or view it on GitHubhttps://github.com/repetier/Repetier-Firmware/issues/143 .
The commanded z move is PrintLine::moveRelativeDistanceInSteps(0,0,Printer::zMaxSteps*1.5,0,feedrate, true, true);
which is 150% of total height, so it should always be possible to reach the top.
Unless it overflows on high resolution machines? There might be noise triggering endstops? I had that and made the pullup to 5v stronger. Den 15. aug. 2013 16:06 skrev "repetier" notifications@github.com følgende:
The commanded z move is PrintLine::moveRelativeDistanceInSteps(0,0,Printer::zMaxSteps*1.5,0,feedrate, true, true);
which is 150% of total height, so it should always be possible to reach the top.
— Reply to this email directly or view it on GitHubhttps://github.com/repetier/Repetier-Firmware/issues/143#issuecomment-22704824 .
Hmm... I'll add an echo in, and start twisting wires... Crosstalk seems likely, I have everything (motors, electronics, endstops) mounted on top to keep 'em clear of the heated bed, since it's running off of mains. I think the switch to 24v for the steppers precipitated the issue.
Thanks!
On Thu, Aug 15, 2013 at 8:59 AM, kyrreaa notifications@github.com wrote:
Sounds like the moves run on steps instead of distance? Den 15. aug. 2013 13:19 skrev "Paul Chase" notifications@github.com følgende:
When my delta homes it will stop one or more axes short of the endstop, then does its back off, and on the retest it starts for the endstops again but often (not always) stops short. In the end, some axes will be fully homed and some will not.
Has anyone else experienced this? I've used Repetier successfully for some time now, no idea what went wrong - it's the same issue in both the Master and Development branch.
I have microswitch endstops connected signal to ground across the NC terminals, using the internal pullups.
M119 gives correct status no matter what endstop(s) are triggered.
Should I try connecting the +5 to the endstop's NO terminal? Would I need a resistor?
Is there any way to get the endstops to echo when triggered?
— Reply to this email directly or view it on GitHub< https://github.com/repetier/Repetier-Firmware/issues/143> .
— Reply to this email directly or view it on GitHubhttps://github.com/repetier/Repetier-Firmware/issues/143#issuecomment-22701127 .
I see erratic endstop behavior on the Z axis only with repetier firmware 0.82 on a CNC router, not with marlin though, so software issue is likely.
Hi, I'm running a Rostock on Marlin with great success. Just for curiosity I downloaded the latest development-branch of repetier today. I adjusted all settings carefully and ran into the very same problem: Y+Z are stopping short of the endstop, after the homing retract was done. X is always hit and stays there. Not sure, was causes this issue. I'm running 160 steps/mm (200 steps / rev @32 microstepping).
Homing procedure for delta is quite complex lately. First it is not a good idea to stop at the endstops. You need to go down a bit with
Only this allows to move a bit at the top, e.g. for extruder selection.
Before it goes down that amount it does this correction: /* To allow software correction of misaligned endstops, you can set the correction in steps here. If you have EEPROM enabled you can also change the values online and autoleveling will store the results here. /
It is to center the carriage, after the endstops are hit. It is important to have it at the center or the equations give wrong results.
As the last step the current extruder is selected. If it has an offset it will move the carriage. Without ENDSTOP_Z_BACK_ON_HOME this move will git one endstop and make coordinates invalid.
All these are changeable in eeprom settings. As you see it is hard to say which one causes the move away from endstop, but there is a reason for it.
Hi repetier,
thanks for your quick response. I just checked for ENDSTOP_Z_BACK_ON_HOME and it's set to 0, as I don't have dual extruder. DELTA_XYZ_ENDSTOP_OFFSET_STEPS are set to 0 as well, as the height of my endstop-screws already take care of the centering. So after all, the carriage should hit the endstops, do a slower retry (set to 5mm) and then stop, as soon, as all endstops are hit. All other options are either set to 0 or adjusted accordingly to my marlin configuration. It would make sense, if all axis moved a bit down after homing, but it's just Y and Z. I've attached my configuration.h, maybe that helps.
/* This file is part of Repetier-Firmware.
Repetier-Firmware is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Repetier-Firmware is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Repetier-Firmware. If not, see <http://www.gnu.org/licenses/>.
*/
/* Some words on units:
From 0.80 onwards the units used are unified for easier configuration, watch out when transfering from older configs!
Speed is in mm/s Acceleration in mm/s^2 Temperature is in degrees celsius
##########################################################################################
##########################################################################################
For easy configuration, the default settings enable parameter storage in EEPROM. This means, after the first upload many variables can only be changed using the special M commands as described in the documentation. Changing these values in the configuration.h file has no effect. Parameters overriden by EEPROM settings are calibartion values, extruder values except thermistor tables and some other parameter likely to change during usage like advance steps or ops mode. To override EEPROM settings with config settings, set EEPROM_MODE 0
*/
// BASIC SETTINGS: select your board type, thermistor type, axis scaling, and endstop configuration
/* Number of extruders. Maximum 6 extruders. /
//// The following define selects which electronics board you have. Please choose the one that matches your setup // Gen3 PLUS for RepRap Motherboard V1.2 = 21 // MEGA/RAMPS up to 1.2 = 3 // RAMPS 1.3/RAMPS 1.4 = 33 // Azteeg X3 = 34 // Gen6 = 5 // Gen6 deluxe = 51 // Sanguinololu up to 1.1 = 6 // Sanguinololu 1.2 and above = 62 // Melzi board = 63 // Define REPRAPPRO_HUXLEY if you have one for correct HEATER_1_PIN assignment! // Gen7 1.1 till 1.3.x = 7 // Gen7 1.4.1 and later = 71 // Sethi 3D_1 = 72 // Teensylu (at90usb) = 8 // requires Teensyduino // Printrboard (at90usb) = 9 // requires Teensyduino // Foltyn 3D Master = 12 // MegaTronics 1.0 = 70 // Megatronics 2.0 = 701 // RUMBA = 80 // Get it from reprapdiscount // Rambo = 301 // PiBot for Repetier V1.0-1.3= 314 // PiBot for Repetier V1.4 = 315 // Sanguish Beta = 501
// Override pin definions from pins.h //#define FAN_PIN 4 // Extruder 2 uses the default fan output, so move to an other pin //#define EXTERNALSERIAL use Arduino serial library instead of build in. Requires more ram, has only 63 byte input buffer.
// Uncomment the following line if you are using arduino compatible firmware made for Arduino version earlier then 1.0 // If it is incompatible you will get compiler errors about write functions not beeing compatible! //#define COMPAT_PRE1
/* Define the type of axis movements needed for your printer. The typical case is a full cartesian system where x, y and z moves are handled by separate motors.
0 = full cartesian system, xyz have seperate motors. 1 = z axis + xy H-gantry (x_motor = x+y, y_motor = x-y) 2 = z axis + xy H-gantry (x_motor = x+y, y_motor = y-x) 3 = Delta printers (Rostock, Kossel, RostockMax, Cerberus, etc) 4 = Tuga printer (Scott-Russell mechanism) 5 = Bipod system (not implemented) Cases 1 and 2 cover all needed xy H gantry systems. If you get results mirrored etc. you can swap motor connections for x and y. If a motor turns in the wrong direction change INVERT_X_DIR or INVERT_Y_DIR. */
// ########################################################################################## // ## Calibration ## // ##########################################################################################
/\ Drive settings for the Delta printers _/
// *_*************************************************
// **\* These parameter are only for Delta printers ***
// ***************************************************
/** \brief Delta drive type: 0 - belts and pulleys, 1 - filament drive */
#define DELTA_DRIVE_TYPE 0
#if DELTA_DRIVE_TYPE == 0
/** \brief Pitch in mm of drive belt. GT2 = 2mm */
#define BELT_PITCH 2.5
/** \brief Number of teeth on X, Y and Z tower pulleys */
#define PULLEY_TEETH 16
#define PULLEY_CIRCUMFERENCE (BELT_PITCH * PULLEY_TEETH)
#elif DELTA_DRIVE_TYPE == 1
/** \brief Filament pulley diameter in milimeters */
#define PULLEY_DIAMETER 10
#define PULLEY_CIRCUMFERENCE (PULLEY_DIAMETER * 3.1415927)
#endif
/** \brief Steps per rotation of stepper motor */
#define STEPS_PER_ROTATION 200
/** \brief Micro stepping rate of X, Y and Y tower stepper drivers */
#define MICRO_STEPS 32
// Calculations
#define AXIS_STEPS_PER_MM ((float)(MICRO_STEPS * STEPS_PER_ROTATION) / PULLEY_CIRCUMFERENCE)
#define XAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
#define YAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
#define ZAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
// *******************************************************
// **\* These parameter are for all other printer types ***
// *******************************************************
/** Drive settings for printers with cartesian drive systems */
/** \brief Number of steps for a 1mm move in x direction.
For xy gantry use 2*belt moved!
Overridden if EEPROM activated. */
#define XAXIS_STEPS_PER_MM 98.425196
/** \brief Number of steps for a 1mm move in y direction.
For xy gantry use 2*belt moved!
Overridden if EEPROM activated.*/
#define YAXIS_STEPS_PER_MM 98.425196
/** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
#define ZAXIS_STEPS_PER_MM 2560
// ########################################################################################## // ## Extruder configuration ## // ##########################################################################################
// for each extruder, fan will stay on until extruder temperature is below this value
// for skeinforge 40 and later, steps to pull the plasic 1 mm inside the extruder, not out. Overridden if EEPROM activated.
// What type of sensor is used? // 1 is 100k thermistor (Epcos B57560G0107F000 - RepRap-Fab.org and many other) // 2 is 200k thermistor // 3 is mendel-parts thermistor (EPCOS G550) // 4 is 10k thermistor // 8 is ATC Semitec 104GT-2 // 5 is userdefined thermistor table 0 // 6 is userdefined thermistor table 1 // 7 is userdefined thermistor table 2 // 50 is userdefined thermistor table 0 for PTC thermistors // 51 is userdefined thermistor table 0 for PTC thermistors // 52 is userdefined thermistor table 0 for PTC thermistors // 60 is AD8494, AD8495, AD8496 or AD8497 (5mV/degC and 1/4 the price of AD595 but only MSOT_08 package) // 97 Generic thermistor table 1 // 98 Generic thermistor table 2 // 99 Generic thermistor table 3 // 100 is AD595 // 101 is MAX6675 // 102 is MAX31855
// Analog input pin for reading temperatures or pin enabling SS for MAX6675
// Which pin enables the heater
// set to false/true for normal / inverse direction
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
// The following speed settings are for skeinforge 40+ where e is the // length of filament pulled inside the heater. For repsnap or older // skeinforge use higher values. // Overridden if EEPROM activated.
// Feedrate from halted extruder in mm/s // Overridden if EEPROM activated.
// Acceleration in mm/s^2 // Overridden if EEPROM activated.
/\ Type of heat manager for this extruder.
/_* Wait x seconds, after reaching target temperature. Only used for M109. Overridden if EEPROM activated. */
/\ \brief The maximum value, I-gain can contribute to the output.
A good value is slightly higher then the output needed for your temperature. Values for starts: 130 => PLA for temperatures from 170-180 deg C 180 => ABS for temperatures around 240 deg C
The precise values may differ for different nozzle/resistor combination. Overridden if EEPROM activated. _/
/_* \brief lower value for integral part
The I state should converge to the exact heater output needed for the target temperature. To prevent a long deviation from the target zone, this value limits the lower value. A good start is 30 lower then the optimal value. You need to leave room for cooling. Overridden if EEPROM activated. _/
/* P-gain. Dead-time if dead-time heat manager selected. Overridden if EEPROM activated. /
/* I-gain. Overridden if EEPROM activated. /
/* D-gain. Overridden if EEPROM activated./
// maximum time the heater can be switched on. Max = 255. Overridden if EEPROM activated.
/_* \brief Faktor for the advance algorithm. 0 disables the algorithm. Overridden if EEPROM activated. K is the factor for the quadratic term, which is normally disabled in newer versions. If you want to use the quadratic factor make sure ENABLE_QUADRATICADVANCE is defined. L is the linear factor and seems to be working better then the quadratic dependency. /
/ Motor steps to remove backlash for advance alorithm. These are the steps needed to move the motor cog in reverse direction until it hits the driving cog. Direct drive extruder need 0. /
/* \brief Temperature to retract filament when extruder is heating up. Overridden if EEPROM activated. /
/_* \brief Units (mm/inches) to retract filament when extruder is heating up. Overridden if EEPROM activated. Set to 0 to disable. */
/\ You can run any gcode command on extruder deselect/select. Seperate multiple commands with a new line \n. That way you can execute some mechanical components needed for extruder selection or retract filament or whatever you need. The codes are only executed for multiple extruder when changing the extruder. _/
/* The extruder cooler is a fan to cool the extruder when it is heating. If you turn the etxruder on, the fan goes on. /
/_* PWM speed for the cooler fan. 0=off 255=full speed */
// =========================== Configuration for second extruder ========================
// for skeinforge 40 and later, steps to pull the plasic 1 mm inside the extruder, not out. Overridden if EEPROM activated.
// What type of sensor is used? // 1 is 100k thermistor (Epcos B57560G0107F000 - RepRap-Fab.org and many other) // 2 is 200k thermistor // 3 is mendel-parts thermistor (EPCOS G550) // 4 is 10k thermistor // 5 is userdefined thermistor table 0 // 6 is userdefined thermistor table 1 // 7 is userdefined thermistor table 2 // 8 is ATC Semitec 104GT-2 // 50 is userdefined thermistor table 0 for PTC thermistors // 51 is userdefined thermistor table 0 for PTC thermistors // 52 is userdefined thermistor table 0 for PTC thermistors // 60 is AD8494, AD8495, AD8496 or AD8497 (5mV/degC and 1/4 the price of AD595 but only MSOT_08 package) // 97 Generic thermistor table 1 // 98 Generic thermistor table 2 // 99 Generic thermistor table 3 // 100 is AD595 // 101 is MAX6675
// Analog input pin for reading temperatures or pin enabling SS for MAX6675
// Which pin enables the heater
// set to false/true for normal/inverse direction
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
// The following speed settings are for skeinforge 40+ where e is the // length of filament pulled inside the heater. For repsnap or older // skeinforge use heigher values. // Overridden if EEPROM activated.
// Feedrate from halted extruder in mm/s // Overridden if EEPROM activated.
// Acceleration in mm/s^2 // Overridden if EEPROM activated.
/\ Type of heat manager for this extruder.
/_* Wait x seconds, after reaching target temperature. Only used for M109. Overridden if EEPROM activated. */
/\ \brief The maximum value, I-gain can contribute to the output.
A good value is slightly higher then the output needed for your temperature. Values for starts: 130 => PLA for temperatures from 170-180 deg C 180 => ABS for temperatures around 240 deg C
The precise values may differ for different nozzle/resistor combination. Overridden if EEPROM activated. _/
/_* \brief lower value for integral part
The I state should converge to the exact heater output needed for the target temperature. To prevent a long deviation from the target zone, this value limits the lower value. A good start is 30 lower then the optimal value. You need to leave room for cooling. Overridden if EEPROM activated. _/
/* P-gain or dead time for heat manager 3. Overridden if EEPROM activated. /
/* I-gain. Overridden if EEPROM activated. /
/* D-gain. Overridden if EEPROM activated./
// maximum time the heater is can be switched on. Max = 255. Overridden if EEPROM activated.
/_* \brief Faktor for the advance algorithm. 0 disables the algorithm. Overridden if EEPROM activated. K is the factor for the quadratic term, which is normally disabled in newer versions. If you want to use the quadratic factor make sure ENABLE_QUADRATICADVANCE is defined. L is the linear factor and seems to be working better then the quadratic dependency. /
/_ Motor steps to remove backlash for advance alorithm. These are the steps needed to move the motor cog in reverse direction until it hits the driving cog. Direct drive extruder need 0. */
/\ The extruder cooler is a fan to cool the extruder when it is heating. If you turn the extruder on, the fan goes on. _/
/_* PWM speed for the cooler fan. 0=off 255=full speed */
/* If enabled you can select the distance your filament gets retracted during a M140 command, after a given temperature is reached. /
/* PID control only works target temperature +/- PID_CONTROL_RANGE. If you get much overshoot at the first temperature set, because the heater is going full power too long, you need to increase this value. For one 6.8 Ohm heater 10 is ok. With two 6.8 Ohm heater use 15. /
/* Skip wait, if the extruder temperature is already within x degrees. Only fixed numbers, 0 = off /
/\ \brief Set PID scaling
PID values assume a usable range from 0-255. This can be further limited to EXT0_PID_MAX by to methods. Set the value to 0: Normal computation, just clip output to EXT0_PID_MAX if computed value is too high. Set value to 1: Scale PID by EXT0_PID_MAX/256 and then clip to EXT0_PID_MAX. If your EXT0_PID_MAX is low, you should prefer the second method. */
/\ Temperature range for target temperature to hold in M109 command. 5 means +/-5 degC
Uncomment define to force the temperature into the range for given watchperiod. */ //#define TEMP_HYSTERESIS 5
/\ Userdefined thermistor table
There are many different thermistors, which can be combined with different resistors. This result in unpredictable number of tables. As a resolution, the user can define one table here, that can be used as type 5 for thermister type in extruder/heated bed definition. Make sure, the number of entries matches the value in NUM_TEMPS_USERTHERMISTOR0. If you span definition over multiple lines, make sure to end each line, except the last, with a backslash. The table format is {{adc1,temp1},{adc2,temp2}...} with increasing adc values. For more informations, read http://hydraraptor.blogspot.com/2007/10/measuring-temperature-easy-way.html
If you have a sprinter temperature table, you have to multiply the first value with 4 and the second with 8. This firmware works with increased precision, so the value reads go from 0 to 4095 and the temperature is temperature*8.
If you have a PTC thermistor instead of a NTC thermistor, keep the adc values increasing and use themistor types 50-52 instead of 5-7! / /* Number of entries in the user thermistor table 0. Set to 0 to disable it. _/
{1_4,864_8},{21_4,300_8},{25_4,290_8},{29_4,280_8},{33_4,270_8},{39_4,260_8},{46_4,250_8},{54_4,240_8},{64_4,230_8},{75_4,220_8},\ {90_4,210_8},{107_4,200_8},{128_4,190_8},{154_4,180_8},{184_4,170_8},{221_4,160_8},{265_4,150_8},{316_4,140_8},{375_4,130_8},\ {441_4,120_8},{513_4,110_8},{588_4,100_8},{734_4,80_8},{856_4,60_8},{938_4,40_8},{986_4,20_8},{1008_4,0_8},{1018_4,-20*8} }
/\ Number of entries in the user thermistor table 1. Set to 0 to disable it. _/
/_* Number of entries in the user thermistor table 2. Set to 0 to disable it. */
/\ If defined, creates a thermistor table at startup.
If you don't feel like computing the table on your own, you can use this generic method. It is a simple approximation which may be not as accurate as a good table computed from the reference values in the datasheet. You can increase precision if you use a temperature/resistance for R0/T0, which is near your operating temperature. This will reduce precision for lower temperatures, which are not realy important. The resistors must fit the following schematic: @code VREF ---- R2 ---+--- Termistor ---+-- GND | +------ R1 -------+ |
---|
+---- Capacitor --+
|
V measured
@endcode
If you don't have R1, set it to 0. The capacitor is for reducing noise from long thermistor cable. If you don't have one, it's OK.
If you need the generic table, uncomment the following define. */ //#define USE_GENERIC_THERMISTORTABLE_1
/* Some examples for different thermistors:
EPCOS B57560G104+ : R0 = 100000 T0 = 25 Beta = 4036 EPCOS 100K Thermistor (B57560G1104F) : R0 = 100000 T0 = 25 Beta = 4092 ATC Semitec 104GT-2 : R0 = 100000 T0 = 25 Beta = 4267 Honeywell 100K Thermistor (135-104LAG-J01) : R0 = 100000 T0 = 25 Beta = 3974
*/
/\ Reference Temperature _/
/* Resistance at reference temperature /
/_* Beta value of thermistor
You can use the beta from the datasheet or compute it yourself. See http://reprap.org/wiki/MeasuringThermistorBeta for more details. _/
/* Start temperature for generated thermistor table /
/_* End Temperature for generated thermistor table */
// The same for table 2 and 3 if needed
// #define USE_GENERIC_THERMISTORTABLE_2
//#define USE_GENERIC_THERMISTORTABLE_3
/\ Supply voltage to ADC, can be changed by setting ANALOGREF below to different value. /
/_* Number of entries in generated table. One entry takes 4 bytes. Higher number of entries increase computation time too. Value is used for all generic tables created. */
// uncomment the following line for MAX6675 support. //#define SUPPORT_MAX6675 // uncomment the following line for MAX31855 support. //#define SUPPORT_MAX31855
// ############# Heated bed configuration ########################
/* \brief Set true if you have a heated bed conected to your board, false if not /
/* Skip M190 wait, if heated bed is already within x degrees. Fixed numbers only, 0 = off. /
// Select type of your heated bed. It's the same as for EXT0_TEMPSENSOR_TYPE // set to 0 if you don't have a heated bed
/\ Analog pin of analog sensor to read temperature of heated bed. _/
/_* \brief Pin to enable heater for bed. */
// How often the temperature of the heated bed is set (msec)
/** Heat manager for heated bed: 0 = Bang Bang, fast update 1 = PID controlled 2 = Bang Bang, limited check every HEATED_BED_SETINTERVAL. Use this with relay-driven beds to save life time 3 = dead time control /
/* \brief The maximum value, I-gain can contribute to the output. The precise values may differ for different nozzle/resistor combination. Overridden if EEPROM activated. /
/_* \brief lower value for integral part
The I state should converge to the exact heater output needed for the target temperature. To prevent a long deviation from the target zone, this value limits the lower value. A good start is 30 lower then the optimal value. You need to leave room for cooling. Overridden if EEPROM activated. _/
/* P-gain. Overridden if EEPROM activated. /
/* I-gain Overridden if EEPROM activated./
/_* Dgain. Overridden if EEPROM activated.*/
// maximum time the heater can be switched on. Max = 255. Overridden if EEPROM activated.
/* Include PID control for all heaters. /
//// Experimental watchdog and minimal temp // The watchdog waits for the watchperiod in milliseconds whenever an M104 or M109 increases the target temperature // If the temperature has not increased at the end of that period, the target temperature is set to zero. It can be reset with another M104/M109 //#define WATCHPERIOD 5000 //5 seconds
//// The minimal temperature defines the temperature below which the heater will not be enabled
//// Experimental max temp // When temperature exceeds max temp, your heater will be switched off. // This feature exists to protect your hotend from overheating accidentally, but NOT from thermistor short/failure! // You should use MINTEMP for thermistor short/failure protection.
/* Extreme values to detect defect thermistors. /
/* \brief Used reference, normally ANALOG_REF_AVCC or ANALOG_REF_AREF for experts ANALOG_REF_INT_2_56 = 2.56V and ANALOG_REF_INT_1_1=1.1V internaly generated /
// ########################################################################################## // ## 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. */
// Set to true to invert the logic of the endstops
// Set the values true where you have a hardware endstop. The Pin number is taken from pins.h.
//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
//// ADVANCED SETTINGS - to tweak parameters
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
// Disables axis when it's not being used.
// Inverting axis direction
//// ENDSTOP SETTINGS: // Sets direction of endstops when homing; 1=MAX, -1=MIN
// Delta robot radius endstop
//If true, axis won't move to coordinates less than zero.
//If true, axis won't move to coordinates greater than the defined lengths below.
// If during homing the endstop is reached, ho many mm should the printer move back for the second try
// For higher precision you can reduce the speed for the second test on the endstop // during homing operation. The homing speed is divided by the value. 1 = same speed, 2 = half speed
// When you have several endstops in one circuit you need to disable it after homing by moving a // small amount back. This is also the case with H-belt systems.
// 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.
// maximum positions in mm - only fixed numbers! // For delta robot Z_MAX_LENGTH is the maximum travel of the towers and should be set to the distance between the hotend // and the platform when the printer is at its home position. // If EEPROM is enabled these values will be overidden with the values in the EEPROM
// Coordinates for the minimum axis. Can also be negative if you want to have the bed start at 0 and the printer can go to the left side // of the bed. Maximum coordinate is given by adding the above X_MAX_LENGTH values.
// ########################################################################################## // ## Movement settings ## // ##########################################################################################
// Microstep setting (Only functional when stepper driver microstep pins are connected to MCU. Currently only works for RAMBO boards
// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
/* \brief Number of segments to generate for delta conversions per second of move /
// Delta settings
/* \brief Delta rod length /
/* =========== Parameter essential for delta calibration ===================
C, Y-Axis
| |___| CARRIAGE_HORIZONTAL_OFFSET
| | \
|_________ X-axis | \
/ \ | \ DELTA_DIAGONAL_ROD
/ \ \
/ \ \ Carriage is at printer center!
A B \_____/
|--| END_EFFECTOR_HORIZONTAL_OFFSET
|----| DELTA_RADIUS
|-----------| PRINTER_RADIUS
Column angles are measured from X-axis counterclockwise
"Standard" positions: alpha_A = 210, alpha_B = 330, alpha_C = 90
*/
/* \brief column positions - change only to correct build imperfections! /
/* Correct radius by this value for each column. Perfect builds have 0 everywhere. /
/* \brief Horizontal offset of the universal joints on the end effector (moving platform). /
/* \brief Horizontal offset of the universal joints on the vertical carriages. /
/* \brief Printer radius in mm, measured from the center of the print area to the vertical smooth rod. /
/\ \brief Horizontal distance bridged by the diagonal push rod when the end effector is in the center. It is pretty close to 50% of the push rod length (250 mm). _/
/_ ========== END Delta calibation data ==============*/
/* When true the delta will home to z max when reset/powered over cord. That way you start with well defined coordinates. If you don't do it, make sure to home first before your first move. /
/* \brief Enable counter to count steps for Z max calculations /
/* To allow software correction of misaligned endstops, you can set the correction in steps here. If you have EEPROM enabled you can also change the values online and auleveling will store the results here. /
/* \brief Experimental calibration utility for delta printers / //#define SOFTWARE_LEVELING
/* Radius of the long arm in mm. */
/* \brief Number of delta moves in each line. Moves that exceed this figure will be split into multiple lines. Increasing this figure can use a lot of memory since 7 bytes * size of line buffer * MAX_SELTA_SEGMENTS_PER_LINE will be allocated for the delta buffer. With defaults 7 * 16 * 22 = 2464 bytes. This leaves ~1K free RAM on an Arduino Mega. Used only for nonlinear systems like delta or tuga. /
/\ After x seconds of inactivity, the stepper motors are disabled. Set to 0 to leave them enabled. This helps cooling the Stepper motors between two print jobs. Overridden if EEPROM activated. _/
/* After x seconds of inactivity, the system will go down as far it can. It will at least disable all stepper motors and heaters. If the board has a power pin, it will be disabled, too. Set value to 0 for disabled. Overridden if EEPROM activated. /
/_* Maximum feedrate, the system allows. Higher feedrates are reduced to these values. The axis order in all axis related arrays is X, Y, Z Overridden if EEPROM activated. */
/* Home position speed in mm/s. Overridden if EEPROM activated. /
/\ Set order of axis homing. Use HOME_ORDERXYZ and replace XYZ with your order. /
/_ If you have a backlash in both z-directions, you can use this. For most printer, the bed will be pushed down by it's own weight, so this is nearly never needed. */
/* Comment this to disable ramp acceleration /
/* If your stepper needs a longer high signal then given, you can add a delay here. The delay is realized as a simple loop wasting time, which is not available for other computations. So make it as low as possible. For the most common drivers no delay is needed, as the included delay is already enough. /
/\ The firmware can only handle 16000Hz interrupt frequency cleanly. If you need higher speeds a faster solution is needed, and this is to double/quadruple the steps in one interrupt call. This is like reducing your 1/16th microstepping to 1/8 or 1/4. It is much cheaper then 1 or 3 additional stepper interrupts with all it's overhead. As a result you can go as high as 40000Hz. _/
/* If you need frequencies off more then 30000 you definitely need to enable this. If you have only 1/8 stepping enabling this may cause to stall your moves when 20000Hz is reached. /
/_* If you reach STEP_DOUBLER_FREQUENCY the firmware will do 2 or 4 steps with nearly no delay. That can be too fast for some printers causing an early stall.
*/
/* The firmware supports trajectory smoothing. To achieve this, it divides the stepsize by 2, resulting in the double computation cost. For slow movements this is not an issue, but for really fast moves this is too much. The value specified here is the number of clock cycles between a step on the driving axis. If the interval at full speed is below this value, smoothing is disabled for that line./
//// Acceleration settings
/* \brief X, Y, Z max acceleration in mm/s^2 for printing moves or retracts. Make sure your printer can go that high! Overridden if EEPROM activated. /
/* \brief X, Y, Z max acceleration in mm/s^2 for travel moves. Overridden if EEPROM activated./
/\ \brief Maximum allowable jerk.
Caution: This is no real jerk in a physical meaning.
The jerk determines your start speed and the maximum speed at the join of two segments. Its unit is mm/s. If the printer is standing still, the start speed is jerk/2. At the join of two segments, the speed difference is limited to the jerk value.
Examples: For all examples jerk is assumed as 40.
Segment 1: vx = 50, vy = 0 Segment 2: vx = 0, vy = 50 v_diff = sqrt((50-0)^2+(0-50)^2) = 70.71 v_diff > jerk => vx_1 = vy_2 = jerk/v_diff_vx_1 = 40/70.71_50 = 28.3 mm/s at the join
Segment 1: vx = 50, vy = 0 Segment 2: vx = 35.36, vy = 35.36 v_diff = sqrt((50-35.36)^2+(0-35.36)^2) = 38.27 < jerk Corner can be printed with full speed of 50 mm/s
Overridden if EEPROM activated. */
/\ \brief Number of moves we can cache in advance.
This number of moves can be cached in advance. If you wan't to cache more, increase this. Especially on many very short moves the cache may go empty. The minimum value is 5. */
/\ \brief Low filled cache size.
If the cache contains less then MOVE_CACHE_LOW segments, the time per segment is limited to LOW_TICKS_PERMOVE clock cycles. If a move would be shorter, the feedrate will be reduced. This should prevent buffer underflows. Set this to 0 if you don't care about empty buffers during print. /
/_* \brief Cycles per move, if move cache is low.
This value must be high enough, that the buffer has time to fill up. The problem only occurs at the beginning of a print or if you are printing many very short segments at high speed. Higher delays here allow higher values in PATH_PLANNER_CHECK_SEGMENTS. */
// ########################################################################################## // ## Extruder control ## // ##########################################################################################
/\ \brief Prescale factor, timer0 runs at.
All known arduino boards use 64. This value is needed for the extruder timing. */
/* \brief Minimum temperature for extruder operation
This is a saftey value. If your extruder temperature is below this temperature, no extruder steps are executed. This is to prevent your extruder to move unless the fiament is at least molten. After havong some complains that the extruder does not work, I leave it 0 as default. */
/\ \brief Enable advance algorithm.
Without a correct adjusted advance algorithm, you get blobs at points, where acceleration changes. The effect increases with speed and acceleration difference. Using the advance method decreases this effect. For more informations, read the wiki. */ //#define USE_ADVANCE
/\ \brief enables quadratic component.
Uncomment to allow a quadratic advance dependency. Linear is the dominant value, so no real need to activate the quadratic term. Only adds lots of computations and storage usage. */ //#define ENABLE_QUADRATIC_ADVANCE
// ########################################################################################## // ## Communication configuration ## // ##########################################################################################
//// AD595 THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!!
/\ \brief Communication speed.
38600
Overridden if EEPROM activated. */ //#define BAUDRATE 76800 //#define BAUDRATE 115200
/* Some boards like Gen7 have a power on pin, to enable the atx power supply. If this is defined, the power will be turned on without the need to call M80 if initially started. /
/** If you use an ATX power supply you need the power pin to work non inverting. For some special boards you might need to make it inverting. _/
/_* What shall the printer do, when it receives an M112 emergency stop signal? 0 = Disable heaters/motors, wait forever until someone presses reset. 1 = restart by resetting the AVR controller. The USB connection will not reset if managed by a different chip! */
/\ \brief Cache size for incoming commands.
There should be no reason to increase this cache. Commands are nearly immediately sent to execution. _/
/* Appends the linenumber after every ok send, to acknowledge the received command. Uncomment for plain ok ACK if your host has problems with this /
/_* Communication errors can swollow part of the ok, which tells the host software to send the next command. Not receiving it will cause your printer to stop. Sending this string every second, if our queue is empty should prevent this. Comment it, if you don't wan't this feature. */
/\ \brief Sets time for echo debug
You can set M111 1 which enables ECHO of commands sent. This define specifies the position, when it will be executed. In the original FiveD software, echo is done after receiving the command. With checksum you know, how it looks from the sending string. With this define uncommented, you will see the last command executed. To be more specific: It is written after execution. This helps tracking errors, because there may be 8 or more commands in the queue and it is elsewise difficult to know, what your reprap is currently doing. */
/\ \brief EEPROM storage mode
Set the EEPROM_MODE to 0 if you always want to use the settings in this configuration file. If not, set it to a value not stored in the first EEPROM-byte used. If you later want to overwrite your current EEPROM settings with configuration defaults, just select an other value. On the first call to epr_init() it will detect a mismatch of the first byte and copy default values into EEPROM. If the first byte matches, the stored values are used to overwrite the settings.
IMPORTANT: With mode <>0 some changes in Configuration.h are not set any more, as they are taken from the EEPROM. */
/**** duplicate motor driver ***
If you have an unused extruder stepper free, you could use it to drive the second z motor instead of driving both with a single stepper. The same works for the other axis if needed. */
/* Ditto printing allows 2 extruders to do the same action. This effectively allows to print an object two times at the speed of one. Works only with dual extruder setup. */
/* Servos
If you need to control servos, enable this feature. You can control up to 4 servos.
Control the servos with
M340 P
WARNING: Servos can draw a considerable amount of current. Make sure your system can handle this or you may risk your hardware! */
// Servo pins on a RAMPS board are 11,6,5,4
/* A watchdog resets the printer, if a signal is not send within predifined time limits. That way we can be sure that the board is always running and is not hung up for some unknown reason. */
/* Z-Probing */
// Waits for a signal to start. Valid signals are probe hit and ok button. // This is needful if you have the probe trigger by hand.
/\ Speed of z-axis in mm/s when probing _/
/* The height is the difference between activated probe position and nozzle height. /
/_* These scripts are run before resp. after the z-probe is done. Add here code to activate/deactivate probe if needed. */
/* Autoleveling allows it to z-probe 3 points to compute the inclination and compensates the error for the print. This feature requires a working z-probe and you should have z-endstop at the top not at the bottom. The same 3 points are used for the G29 command. */
/\ Set to false to disable SD support: _/
/* If set to false all files with longer names then 8.3 or having a tilde in the name will be hidden /
// Uncomment to enable or change card detection pin. With card detection the card is mounted on insertion.
// Change to true if you get a inserted message on removal.
/_* Show extended directory including file length. Don't use this with Pronterface! */
// If you want support for G2/G3 arc commands set to true, otherwise false.
/* You can store the current position with M401 and go back to it with M402. This works only if feature is set to true. /
/* If a checksum is sent, all future comamnds must also contain a checksum. Increases reliability especially for binary protocol. /
/* Should support for fan control be compiled in. If you enable this make sure the FAN pin is not the same as for your second extruder. RAMPS e.g. has FAN_PIN in 9 which is also used for the heater if you have 2 extruders connected. /
/\ For displays and keys there are too many permutations to handle them all in once. For the most common available combinations you can set the controller type here, so you don't need to configure uicong.h at all. Controller settings > 1 disable usage of uiconfig.h
0 = no display 1 = Manual definition of display and keys parameter in uiconfig.h
The following settings override uiconfig.h! 2 = Smartcontroller from reprapdiscount on a RAMPS or RUMBA board 3 = Adafruit RGB controller 4 = Foltyn 3DMaster with display attached 5 = ViKi LCD - Check pin configuration in ui.h for feature controller 5!!! sd card disabled by default! 6 = ReprapWorld Keypad / LCD, predefined pins for Megatronics v2.0 and RAMPS 1.4. Please check if you have used the defined pin layout in ui.h. 7 = RADDS Extension Port 8 = PiBot Display/Controller extension with 20x4 character display 9 = PiBot Display/Controller extension with 16x2 character display 10 = Gadgets3D shield on RAMPS 1.4, see http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel */
/* Select the language to use. 0 = English 1 = German 2 = Dutch 3 = Brazilian portuguese 4 = Italian 5 = Spanish 6 = Swedish /
// This is line 2 of the status display at startup. Change to your like.
/* How many ms should a single page be shown, until it is switched to the next one./
/* Uncomment if you don't want automatic page switching. You can still switch the info pages with next/previous button/click-encoder /
/* Time to return to info menu if x millisconds no key was pressed. Set to 0 to disable it. /
/* Normally cou want a next/previous actions with every click of your encoder. Unfotunately, the encoder have a different count of phase changes between clicks. Select an encoder speed from 0 = fastest to 2 = slowest that results in one menu move per click. _/
/_* \brief bounce time of keys in milliseconds */
/\ \brief First time in ms until repeat of action. _/
/* \brief Reduction of repeat time until next execution. /
/_* \brief Lowest repeat time. */
/* Beeper sound definitions for short beeps during key actions and longer beeps for important actions. Parameter is delay in microseconds and the secons is the number of repetitions. Values must be in range 1..255 /
// ############################################################################### // ## Values for menu settings ## // ###############################################################################
// Values used for preheat
// Extreme values
Here is the solution:
As I told it selects extruder 0 with its offset. These are not 0 so you have that move. These are now stored in eeprom I guess.
Hi repetier, thanks for the quick reply. You're perfectly right, setting EXT0 OFFSET to 0 did the trick. The printer is currently printing and so far, movements are smoother. I think I'll stick to your firmware. As far as I can see, there was another user, having the very same issue lately. Maybe you should change the default configuration file to match the most common configuration (one extruder only), as this feature is likely to be ignored by accident when adapting settings from other firmwares/versions.
When my delta homes it will stop one or more axes short of the endstop, then does its back off, and on the retest it starts for the endstops again but often (not always) stops short. In the end, some axes will be fully homed and some will not.
Has anyone else experienced this? I've used Repetier successfully for some time now, no idea what went wrong - it's the same issue in both the Master and Development branch.
I have microswitch endstops connected signal to ground across the NC terminals, using the internal pullups.
M119 gives correct status no matter what endstop(s) are triggered.
Should I try connecting the +5 to the endstop's NO terminal? Would I need a resistor?
Is there any way to get the endstops to echo when triggered?