Meine config.h Datei:
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
/* 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/s2
Temperature is in degrees celsius
##########################################################################################
## IMPORTANT ##
##########################################################################################
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. /
#define NUM_EXTRUDER 1 // -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//// 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
// Azteeg X3 Pro = 35
// Ultimaker Shield 1.5.7 = 37
// 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!
// Azteeg X1 = 65
// 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
// Megatronics 3.0 = 703 // Thermistors predefined not thermocouples
// Minitronics 1.0 = 702
// RUMBA = 80 // Get it from reprapdiscount
// FELIXprinters = 101
// Rambo = 301
// PiBot for Repetier V1.0-1.3= 314
// PiBot for Repetier V1.4 = 315
// Sanguish Beta = 501
// Unique One rev. A = 88
// User layout defined in userpins.h = 999
#define MOTHERBOARD 33
#include "pins.h"
// 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.
/
#define DRIVE_SYSTEM 0
// ##########################################################################################
// ## Calibration ##
// ##########################################################################################
/** Drive settings for the Delta printers
*/
#if DRIVE_SYSTEM==3
// ***************************************************
// *** 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
/** \brief Number of teeth on X, Y and Z tower pulleys */
#define PULLEY_TEETH 20
#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 16
// 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
#else
// *******************************************************
// *** 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 25.2
/** \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 49.2
/** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
#define ZAXIS_STEPS_PER_MM 2000
#endif
// ##########################################################################################
// ## Extruder configuration ##
// ##########################################################################################
// for each extruder, fan will stay on until extruder temperature is below this value
#define EXTRUDER_FAN_COOL_TEMP 50
#define EXT0_X_OFFSET 0
#define EXT0_Y_OFFSET 0
// for skeinforge 40 and later, steps to pull the plasic 1 mm inside the extruder, not out. Overridden if EEPROM activated.
#define EXT0_STEPS_PER_MM 130
// 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 //100k Honeywell 135-104LAG-J01
// 6 is userdefined thermistor table 1 //epcos B57560G104F
// 7 is userdefined thermistor table 2 //ATC Semitec 104GT-2 100k
// 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
// 102 is MAX31855
#define EXT0_TEMPSENSOR_TYPE 5
// Analog input pin for reading temperatures or pin enabling SS for MAX6675
#define EXT0_TEMPSENSOR_PIN TEMP_1_PIN
// Which pin enables the heater
#define EXT0_HEATER_PIN HEATER_0_PIN
#define EXT0_STEP_PIN E0_STEP_PIN
#define EXT0_DIR_PIN E0_DIR_PIN
// set to false/true for normal / inverse direction
#define EXT0_INVERSE true
#define EXT0_ENABLE_PIN E0_ENABLE_PIN
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
#define EXT0_ENABLE_ON false
// 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.
#define EXT0_MAX_FEEDRATE 12
// Feedrate from halted extruder in mm/s
// Overridden if EEPROM activated.
#define EXT0_MAX_START_FEEDRATE 10
// Acceleration in mm/s2
// Overridden if EEPROM activated.
#define EXT0_MAX_ACCELERATION 1000
/** Type of heat manager for this extruder.
- 0 = Simply switch on/off if temperature is reached. Works always.
- 1 = PID Temperature control. Is better but needs good PID values. Defaults are a good start for most extruder.
- 3 = Dead-time control. PID_P becomes dead-time in seconds.
Overridden if EEPROM activated.
*/
#define EXT0_HEAT_MANAGER 1
/** Wait x seconds, after reaching target temperature. Only used for M109. Overridden if EEPROM activated. /
#define EXT0_WATCHPERIOD 1
/** \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.
*/
#define EXT0_PID_INTEGRAL_DRIVE_MAX 255
/** \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.
*/
#define EXT0_PID_INTEGRAL_DRIVE_MIN 40
/** P-gain. Overridden if EEPROM activated. /
#define EXT0_PID_P 24
/** I-gain. Overridden if EEPROM activated.
*/
#define EXT0_PID_I 0.88
/** Dgain. Overridden if EEPROM activated./
#define EXT0_PID_D 80
// maximum time the heater is can be switched on. Max = 255. Overridden if EEPROM activated.
#define EXT0_PID_MAX 255
/** \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_QUADRATIC_ADVANCE is defined.
L is the linear factor and seems to be working better then the quadratic dependency.
*/
#define EXT0_ADVANCE_K 0.0f
#define EXT0_ADVANCE_L 0.0f
/* 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. /
#define EXT0_ADVANCE_BACKLASH_STEPS 0
/** \brief Temperature to retract filament when extruder is heating up. Overridden if EEPROM activated.
*/
#define EXT0_WAIT_RETRACT_TEMP 150
/** \brief Units (mm/inches) to retract filament when extruder is heating up. Overridden if EEPROM activated. Set
to 0 to disable.
*/
#define EXT0_WAIT_RETRACT_UNITS 0
/** 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. */
#define EXT0_SELECT_COMMANDS "M117 Extruder 1"
#define EXT0_DESELECT_COMMANDS ""
/** The extruder cooler is a fan to cool the extruder when it is heating. If you turn the etxruder on, the fan goes on. */
#define EXT0_EXTRUDER_COOLER_PIN 1
/** PWM speed for the cooler fan. 0=off 255=full speed /
#define EXT0_EXTRUDER_COOLER_SPEED 255
// =========================== Configuration for second extruder ========================
#define EXT1_X_OFFSET 0
#define EXT1_Y_OFFSET 0
// for skeinforge 40 and later, steps to pull the plasic 1 mm inside the extruder, not out. Overridden if EEPROM activated.
#define EXT1_STEPS_PER_MM 130
// 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 //100k Honeywell 135-104LAG-J01
// 6 is userdefined thermistor table 1 //epcos B57560G104F
// 7 is userdefined thermistor table 2 //ATC Semitec 104GT-2 100k
// 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
#define EXT1_TEMPSENSOR_TYPE 5
// Analog input pin for reading temperatures or pin enabling SS for MAX6675
#define EXT1_TEMPSENSOR_PIN TEMP_1_PIN
// Which pin enables the heater
#define EXT1_HEATER_PIN HEATER_1_PIN
#define EXT1_STEP_PIN E1_STEP_PIN
#define EXT1_DIR_PIN E1_DIR_PIN
// set to false/true for normal/inverse direction
#define EXT1_INVERSE false
#define EXT1_ENABLE_PIN E1_ENABLE_PIN
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
#define EXT1_ENABLE_ON false
// 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.
#define EXT1_MAX_FEEDRATE 12
// Feedrate from halted extruder in mm/s
// Overridden if EEPROM activated.
#define EXT1_MAX_START_FEEDRATE 10
// Acceleration in mm/s2
// Overridden if EEPROM activated.
#define EXT1_MAX_ACCELERATION 1000
/** Type of heat manager for this extruder.
- 0 = Simply switch on/off if temperature is reached. Works always.
- 1 = PID Temperature control. Is better but needs good PID values. Defaults are a good start for most extruder.
Overridden if EEPROM activated.
*/
#define EXT1_HEAT_MANAGER 1
/** Wait x seconds, after reaching target temperature. Only used for M109. Overridden if EEPROM activated. */
#define EXT1_WATCHPERIOD 1
<div>/** \brief The maximum value, I-gain can contribute to the output.</div><div>
</div><div>A good value is slightly higher then the output needed for your temperature.</div><div>Values for starts:</div><div>130 => PLA for temperatures from 170-180 deg C</div><div>180 => ABS for temperatures around 240 deg C</div><div>
</div><div>The precise values may differ for different nozzle/resistor combination.</div><div> Overridden if EEPROM activated.</div><div>*/</div><div>#define EXT1_PID_INTEGRAL_DRIVE_MAX 255</div><div>/** \brief lower value for integral part</div><div>
</div><div>The I state should converge to the exact heater output needed for the target temperature.</div><div>To prevent a long deviation from the target zone, this value limits the lower value.</div><div>A good start is 30 lower then the optimal value. You need to leave room for cooling.</div><div> Overridden if EEPROM activated.</div><div>*/</div><div>#define EXT1_PID_INTEGRAL_DRIVE_MIN 40</div><div>/** P-gain. Overridden if EEPROM activated. /</div><div>#define EXT1_PID_P 24</div><div>/** I-gain. Overridden if EEPROM activated.</div><div>/</div><div>#define EXT1_PID_I 0.88</div><div>/** D-gain. Overridden if EEPROM activated./</div><div>#define EXT1_PID_D 80</div><div>// maximum time the heater is can be switched on. Max = 255. Overridden if EEPROM activated.</div><div>#define EXT1_PID_MAX 255</div><div>/** \brief Faktor for the advance algorithm. 0 disables the algorithm. Overridden if EEPROM activated.</div><div>K is the factor for the quadratic term, which is normally disabled in newer versions. If you want to use</div><div>the quadratic factor make sure ENABLE_QUADRATIC_ADVANCE is defined.</div><div>L is the linear factor and seems to be working better then the quadratic dependency.</div><div>/</div><div>#define EXT1_ADVANCE_K 0.0f</div><div>#define EXT1_ADVANCE_L 0.0f</div><div>/* Motor steps to remove backlash for advance alorithm. These are the steps</div><div>needed to move the motor cog in reverse direction until it hits the driving</div><div>cog. Direct drive extruder need 0. */</div><div>#define EXT1_ADVANCE_BACKLASH_STEPS 0</div><div>
</div><div>#define EXT1_WAIT_RETRACT_TEMP 150</div><div>#define EXT1_WAIT_RETRACT_UNITS 0</div><div>#define EXT1_SELECT_COMMANDS "M117 Extruder 2"</div><div>#define EXT1_DESELECT_COMMANDS ""</div><div>/** The extruder cooler is a fan to cool the extruder when it is heating. If you turn the etxruder on, the fan goes on. */</div><div>#define EXT1_EXTRUDER_COOLER_PIN 1</div><div>/** PWM speed for the cooler fan. 0=off 255=full speed */</div><div>#define EXT1_EXTRUDER_COOLER_SPEED 255</div><div>
</div><div>/** If enabled you can select the distance your filament gets retracted during a</div><div>M140 command, after a given temperature is reached. /</div><div>#define RETRACT_DURING_HEATUP true</div><div>
</div><div>/** PID control only works target temperature +/- PID_CONTROL_RANGE.</div><div>If you get much overshoot at the first temperature set, because the heater is going full power too long, you</div><div>need to increase this value. For one 6.8 Ohm heater 10 is ok. With two 6.8 Ohm heater use 15.</div><div>/</div><div>#define PID_CONTROL_RANGE 20</div><div>
</div><div>/** Prevent extrusions longer then x mm for one command. This is especially important if you abort a print. Then the</div><div>extrusion poistion might be at any value like 23344. If you then have an G1 E-2 it will roll back 23 meter! */</div><div>#define EXTRUDE_MAXLENGTH 150</div><div>/** Skip wait, if the extruder temperature is already within x degrees. Only fixed numbers, 0 = off /</div><div>#define SKIP_M109_IF_WITHIN 2</div><div>
</div><div>/** \brief Set PID scaling</div><div>
</div><div>PID values assume a usable range from 0-255. This can be further limited to EXT0_PID_MAX by to methods.</div><div>Set the value to 0: Normal computation, just clip output to EXT0_PID_MAX if computed value is too high.</div><div>Set value to 1: Scale PID by EXT0_PID_MAX/256 and then clip to EXT0_PID_MAX.</div><div>If your EXT0_PID_MAX is low, you should prefer the second method.</div><div>/</div><div>#define SCALE_PID_TO_MAX 0</div><div>
</div><div>
</div><div>#define HEATER_PWM_SPEED 1 // How fast ist pwm signal 0 = 15.25Hz, 1 = 30.51Hz, 2 = 61.03Hz, 3 = 122.06Hz</div><div>
</div><div>/** Temperature range for target temperature to hold in M109 command. 5 means +/-5 degC</div><div>
</div><div>Uncomment define to force the temperature into the range for given watchperiod.</div><div>/</div><div>//#define TEMP_HYSTERESIS 5</div><div>
</div><div>/** Userdefined thermistor table</div><div>
</div><div>There are many different thermistors, which can be combined with different resistors. This result</div><div>in unpredictable number of tables. As a resolution, the user can define one table here, that can</div><div>be used as type 5 for thermister type in extruder/heated bed definition. Make sure, the number of entries</div><div>matches the value in NUM_TEMPS_USERTHERMISTOR0. If you span definition over multiple lines, make sure to end</div><div>each line, except the last, with a backslash. The table format is {{adc1,temp1},{adc2,temp2}...} with</div><div>increasing adc values. For more informations, read</div><div>http://hydraraptor.blogspot.com/2007/10/measuring-temperature-easy-way.html</div><div><br/></div><div>If you have a sprinter temperature table, you have to multiply the first value with 4 and the second with 8.</div><div>This firmware works with increased precision, so the value reads go from 0 to 4095 and the temperature is</div><div>temperature8.</div><div>
</div><div>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!</div><div>/</div><div>
</div><div>//100k Honeywell 135-104LAG-J01</div><div>#define NUM_TEMPS_USERTHERMISTOR0 55</div><div>#define USER_THERMISTORTABLE0 {</div><div> {464, 2708},{504, 2658},{544, 2608},{584, 2558},{624, 2508},{674, 2458},{724, 2408},{794, 2358},{854, 2308},</div><div> {914, 2258},{994, 2208},{1074, 2158},{1164, 2108},{1264, 2058},{1364, 2008},{1494, 1958},{1604, 1908},</div><div> {1754, 1858},{1914, 1808},{2094, 1758},{2244, 1708},{2464, 1658},{2674, 1608},{2934, 1558},{3164, 1508},</div><div> {3404, 1458},{3644, 1408},{3964, 1358},{4254, 1308},{4604, 1258},{4894, 1208},{5264, 1158},{5584, 1108},</div><div> {5914, 1058},{6284, 1008},{6604, 958},{6964, 908},{7334, 858},{7614, 808},{7944, 758},{8194, 708},{8474, 658},</div><div> {8704, 608},{8924, 558},{9114, 508},{9294, 458},{9444, 408},{9594, 358},{9714, 308},{9814, 258},{9894, 208},</div><div> {9944, 158},{10014, 108},{10054, 58},{10214, 08} }</div><div>
</div><div>// B57560G104F</div><div>#define NUM_TEMPS_USERTHERMISTOR1 61</div><div>#define USER_THERMISTORTABLE1 {\ </div><div> {234, 3008},{254, 2958},{274, 2908},{284, 2858},{314, 2808},{334, 2758},{354, 2708},{384, 2658},{414, 2608},{444, 2558},</div><div> {484, 2508},{524, 2458},{564, 2408},{614, 2358},{664, 2308},{714, 2258},{784, 2208},{844, 2158},{924, 2108},{1004, 2058},</div><div> {1094, 2008},{1204, 1958},{1314, 1908},{1434, 1858},{1564, 1808},{1714, 1758},{1874, 1708},{2054, 1658},{2244, 1608},</div><div> {2454, 1558},{2684, 1508},{2934, 1458},{3204, 1408},{3484, 1358},{3794, 1308},{4114, 1258},{4454, 1208},{4804, 1158},</div><div> {5164, 1108},{5534, 1058},{5914, 1008},{6284, 958},{6654, 908},{7024, 858},{7374, 808},{7704, 758},{8014, 708},{8304, 658},</div><div> {8574, 608},{8814, 558},{9034, 508},{9224, 458},{9394, 408},{9544, 358},{9664, 308},{9774, 258},{9854, 208},{9934, 158},</div><div> {9994, 108},{10044, 58},{10084, 08} }</div><div>
</div><div>// ATC Semitec 104GT-2</div><div>#define NUM_TEMPS_USERTHERMISTOR2 61</div><div>#define USER_THERMISTORTABLE2 {\ </div><div> {14, 7138},{184, 3168},{354, 2668},{524, 2398},{694, 2218},{864, 2088},{1034, 1978},{1204, 1888},{1374, 1818},</div><div> {1544, 1748},{1714, 1698},{1884, 1638},{2054, 1598},{2224, 1548},{2394, 1508},{2564, 1478},{2734, 1438},{2904, 1408},</div><div> {3074, 1368},{3244, 1338},{3414, 1308},{3584, 1288},{3754, 1258},{3924, 1228},{4094, 1208},{4264, 1158},{4604, 1128},</div><div> {4774, 1108},{4944, 1088},{5114, 1068},{5284, 1038},{5454, 1018},{5624, 998},{5794, 978},{5964, 958},{6134, 928},</div><div> {6304, 908},{6474, 888},{6644, 868},{6814, 848},{6984, 818},{7154, 798},{7324, 778},{7494, 758},{7664, 728},</div><div> {7834, 708},{8004, 678},{8174, 648},{8344, 618},{8514, 588},{8684, 558},{8854, 528},{9024, 488},{9364, 408},</div><div> {9534, 348},{9704, 288},{9874, 208},{10044, 88},{10214, 08} }</div><div>
</div><div>
</div><div>/** If defined, creates a thermistor table at startup.</div><div>
</div><div>If you don't feel like computing the table on your own, you can use this generic method. It is</div><div>a simple approximation which may be not as accurate as a good table computed from the reference</div><div>values in the datasheet. You can increase precision if you use a temperature/resistance for</div><div>R0/T0, which is near your operating temperature. This will reduce precision for lower temperatures,</div><div>which are not realy important. The resistors must fit the following schematic:</div><div>@code</div><div>VREF ---- R2 ---+--- Termistor ---+-- GND</div><div> | |</div><div> +------ R1 -------+</div><div> | |</div><div> +---- Capacitor --+</div><div> |</div><div> V measured</div><div>@endcode</div><div>
</div><div>If you don't have R1, set it to 0.</div><div>The capacitor is for reducing noise from long thermistor cable. If you don't have one, it's OK.</div><div>
</div><div>If you need the generic table, uncomment the following define.</div><div>/</div><div>//#define USE_GENERIC_THERMISTORTABLE_1</div><div>
</div><div>/* Some examples for different thermistors:</div><div>
</div><div>EPCOS B57560G104+ : R0 = 100000 T0 = 25 Beta = 4036</div><div>EPCOS 100K Thermistor (B57560G1104F) : R0 = 100000 T0 = 25 Beta = 4092</div><div>ATC Semitec 104GT-2 : R0 = 100000 T0 = 25 Beta = 4267</div><div>Honeywell 100K Thermistor (135-104LAG-J01) : R0 = 100000 T0 = 25 Beta = 3974</div><div>
</div><div>*/</div><div>
</div><div>/** Reference Temperature */</div><div>#define GENERIC_THERM1_T0 25</div><div>/** Resistance at reference temperature /</div><div>#define GENERIC_THERM1_R0 100000</div><div>/** Beta value of thermistor</div><div>
</div><div>You can use the beta from the datasheet or compute it yourself.</div><div>See http://reprap.org/wiki/MeasuringThermistorBeta for more details.</div><div>/</div><div>#define GENERIC_THERM1_BETA 4036</div><div>/** Start temperature for generated thermistor table */</div><div>#define GENERIC_THERM1_MIN_TEMP -20</div><div>/** End Temperature for generated thermistor table */</div><div>#define GENERIC_THERM1_MAX_TEMP 300</div><div>#define GENERIC_THERM1_R1 0</div><div>#define GENERIC_THERM1_R2 4700</div><div>
</div><div>// The same for table 2 and 3 if needed</div><div>
</div><div>//#define USE_GENERIC_THERMISTORTABLE_2</div><div>#define GENERIC_THERM2_T0 170</div><div>#define GENERIC_THERM2_R0 1042.7</div><div>#define GENERIC_THERM2_BETA 4036</div><div>#define GENERIC_THERM2_MIN_TEMP -20</div><div>#define GENERIC_THERM2_MAX_TEMP 300</div><div>#define GENERIC_THERM2_R1 0</div><div>#define GENERIC_THERM2_R2 4700</div><div>
</div><div>//#define USE_GENERIC_THERMISTORTABLE_3</div><div>#define GENERIC_THERM3_T0 170</div><div>#define GENERIC_THERM3_R0 1042.7</div><div>#define GENERIC_THERM3_BETA 4036</div><div>#define GENERIC_THERM3_MIN_TEMP -20</div><div>#define GENERIC_THERM3_MAX_TEMP 300</div><div>#define GENERIC_THERM3_R1 0</div><div>#define GENERIC_THERM3_R2 4700</div><div>
</div><div>/** Supply voltage to ADC, can be changed by setting ANALOG_REF below to different value. */</div><div>#define GENERIC_THERM_VREF 5</div><div>/** Number of entries in generated table. One entry takes 4 bytes. Higher number of entries increase computation time too.</div><div>Value is used for all generic tables created. */</div><div>#define GENERIC_THERM_NUM_ENTRIES 33</div><div>
</div><div>// uncomment the following line for MAX6675 support.</div><div>//#define SUPPORT_MAX6675</div><div>// uncomment the following line for MAX31855 support.</div><div>//#define SUPPORT_MAX31855</div><div>
</div><div>// ############# Heated bed configuration ########################</div><div>
</div><div>/** \brief Set true if you have a heated bed conected to your board, false if not */</div><div>#define HAVE_HEATED_BED true</div><div>
</div><div>#define HEATED_BED_MAX_TEMP 125</div><div>/** Skip M190 wait, if heated bed is already within x degrees. Fixed numbers only, 0 = off. */</div><div>#define SKIP_M190_IF_WITHIN 2</div><div>
</div><div>// Select type of your heated bed. It's the same as for EXT0_TEMPSENSOR_TYPE</div><div>// set to 0 if you don't have a heated bed</div><div>#define HEATED_BED_SENSOR_TYPE 5</div><div>/** Analog pin of analog sensor to read temperature of heated bed. */</div><div>#define HEATED_BED_SENSOR_PIN TEMP_2_PIN</div><div>/** \brief Pin to enable heater for bed. /</div><div>#define HEATED_BED_HEATER_PIN HEATER_2_PIN</div><div>// How often the temperature of the heated bed is set (msec)</div><div>#define HEATED_BED_SET_INTERVAL 5000</div><div>
</div><div>/</div><div>Heat manager for heated bed:</div><div>0 = Bang Bang, fast update</div><div>1 = PID controlled</div><div>2 = Bang Bang, limited check every HEATED_BED_SET_INTERVAL. Use this with relay-driven beds to save life time</div><div>3 = dead time control</div><div>/</div><div>#define HEATED_BED_HEAT_MANAGER 1</div><div>/** \brief The maximum value, I-gain can contribute to the output.</div><div>The precise values may differ for different nozzle/resistor combination.</div><div> Overridden if EEPROM activated.</div><div>/</div><div>#define HEATED_BED_PID_INTEGRAL_DRIVE_MAX 255</div><div>/** \brief lower value for integral part</div><div>
</div><div>The I state should converge to the exact heater output needed for the target temperature.</div><div>To prevent a long deviation from the target zone, this value limits the lower value.</div><div>A good start is 30 lower then the optimal value. You need to leave room for cooling.</div><div> Overridden if EEPROM activated.</div><div>/</div><div>#define HEATED_BED_PID_INTEGRAL_DRIVE_MIN 80</div><div>/** P-gain. Overridden if EEPROM activated. /</div><div>#define HEATED_BED_PID_PGAIN 196</div><div>/** I-gain Overridden if EEPROM activated./</div><div>#define HEATED_BED_PID_IGAIN 33.02</div><div>/** Dgain. Overridden if EEPROM activated.*/</div><div>#define HEATED_BED_PID_DGAIN 290</div><div>// maximum time the heater can be switched on. Max = 255. Overridden if EEPROM activated.</div><div>#define HEATED_BED_PID_MAX 255</div><div>
</div><div>// When temperature exceeds max temp, your heater will be switched off.</div><div>// This feature exists to protect your hotend from overheating accidentally, but NOT from thermistor short/failure!</div><div>#define MAXTEMP 260</div><div>
</div><div>/** Extreme values to detect defect thermistors. /</div><div>#define MIN_DEFECT_TEMPERATURE -10</div><div>#define MAX_DEFECT_TEMPERATURE 300</div><div>
</div><div>
</div><div>// ##########################################################################################</div><div>// ## Endstop configuration ##</div><div>// ##########################################################################################</div><div>
</div><div>/ By default all endstops are pulled up to HIGH. You need a pullup if you</div><div>use a mechanical endstop connected with GND. Set value to false for no pullup</div><div>on this endstop.</div><div>/</div><div>#</div><div>
</div><div>
</div><div>//set to true to invert the logic of the endstops</div><div>#define ENDSTOP_X_MIN_INVERTING false</div><div>#define ENDSTOP_Y_MIN_INVERTING false</div><div>#define ENDSTOP_Z_MIN_INVERTING false</div><div>#define ENDSTOP_X_MAX_INVERTING false</div><div>#define ENDSTOP_Y_MAX_INVERTING false</div><div>#define ENDSTOP_Z_MAX_INVERTING false</div><div>
</div><div>// Set the values true where you have a hardware endstop. The Pin number is taken from pins.h.</div><div>
</div><div>#define MIN_HARDWARE_ENDSTOP_X true</div><div>#define MIN_HARDWARE_ENDSTOP_Y true</div><div>#define MIN_HARDWARE_ENDSTOP_Z true</div><div>#define MAX_HARDWARE_ENDSTOP_X false</div><div>#define MAX_HARDWARE_ENDSTOP_Y false</div><div>#define MAX_HARDWARE_ENDSTOP_Z false</div><div>
</div><div>//If your axes are only moving in one direction, make sure the endstops are connected properly.</div><div>//If your axes move in one direction ONLY when the endstops are triggered, set ENDSTOPS_INVERTING to true here</div><div>
</div><div>
</div><div>
</div><div>//// ADVANCED SETTINGS - to tweak parameters</div><div>
</div><div>// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1</div><div>#define X_ENABLE_ON 0</div><div>#define Y_ENABLE_ON 0</div><div>#define Z_ENABLE_ON 0</div><div>
</div><div>// Disables axis when it's not being used.</div><div>#define DISABLE_X false</div><div>#define DISABLE_Y false</div><div>#define DISABLE_Z false</div><div>#define DISABLE_E false</div><div>
</div><div>// Inverting axis direction</div><div>#define INVERT_X_DIR false</div><div>#define INVERT_Y_DIR false</div><div>#define INVERT_Z_DIR true</div><div>
</div><div>//// ENDSTOP SETTINGS:</div><div>// Sets direction of endstops when homing; 1=MAX, -1=MIN</div><div>#define X_HOME_DIR -1</div><div>#define Y_HOME_DIR -1</div><div>#define Z_HOME_DIR -1</div><div>
</div><div>// Delta robot radius endstop</div><div>#define max_software_endstop_r false //true</div><div>
</div><div>//If true, axis won't move to coordinates less than zero. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div>#define min_software_endstop_x false //false</div><div>#define min_software_endstop_y false //false</div><div>#define min_software_endstop_z false</div><div>
</div><div>//If true, axis won't move to coordinates greater than the defined lengths below.</div><div>#define max_software_endstop_x false</div><div>#define max_software_endstop_y false</div><div>#define max_software_endstop_z false</div><div>
</div><div>// If during homing the endstop is reached, ho many mm should the printer move back for the second try</div><div>#define ENDSTOP_X_BACK_MOVE 3</div><div>#define ENDSTOP_Y_BACK_MOVE 3</div><div>#define ENDSTOP_Z_BACK_MOVE 3</div><div>
</div><div>// For higher precision you can reduce the speed for the second test on the endstop</div><div>// during homing operation. The homing speed is divided by the value. 1 = same speed, 2 = half speed</div><div>#define ENDSTOP_X_RETEST_REDUCTION_FACTOR 2</div><div>#define ENDSTOP_Y_RETEST_REDUCTION_FACTOR 2</div><div>#define ENDSTOP_Z_RETEST_REDUCTION_FACTOR 2</div><div>
</div><div>// When you have several endstops in one circuit you need to disable it after homing by moving a</div><div>// small amount back. This is also the case with H-belt systems.</div><div>#define ENDSTOP_X_BACK_ON_HOME 200</div><div>#define ENDSTOP_Y_BACK_ON_HOME 200</div><div>#define ENDSTOP_Z_BACK_ON_HOME 0</div><div>
</div><div>// You can disable endstop checking for print moves. This is needed, if you get sometimes</div><div>// false signals from your endstops. If your endstops don't give false signals, you</div><div>// can set it on for safety.</div><div>#define ALWAYS_CHECK_ENDSTOPS true</div><div>
</div><div>// maximum positions in mm - only fixed numbers!</div><div>// For delta robot Z_MAX_LENGTH is the maximum travel of the towers and should be set to the distance between the hotend</div><div>// and the platform when the printer is at its home position.</div><div>// If EEPROM is enabled these values will be overidden with the values in the EEPROM</div><div>#define X_MAX_LENGTH 200</div><div>#define Y_MAX_LENGTH 200</div><div>#define Z_MAX_LENGTH 150</div><div>
</div><div>// 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</div><div>// of the bed. Maximum coordinate is given by adding the above X_MAX_LENGTH values.</div><div>#define X_MIN_POS 0</div><div>#define Y_MIN_POS 0</div><div>#define Z_MIN_POS 0</div><div>
</div><div>// ##########################################################################################</div><div>// ## Movement settings ##</div><div>// ##########################################################################################</div><div>
</div><div>// Microstep setting (Only functional when stepper driver microstep pins are connected to MCU. Currently only works for RAMBO boards</div><div>#define MICROSTEP_MODES {8,8,8,8,8} // [1,2,4,8,16]</div><div>
</div><div>// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)</div><div>#if MOTHERBOARD==301</div><div>#define MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = 0.75A, 185 = 1A)</div><div>#elif MOTHERBOARD==12</div><div>#define MOTOR_CURRENT {35713,35713,35713,35713,35713} // Values 0-65535 (3D Master 35713 = 1A)</div><div>#endif</div><div>
</div><div>/** \brief Number of segments to generate for delta conversions per second of move</div><div>/</div><div>#define DELTA_SEGMENTS_PER_SECOND_PRINT 180 // Move accurate setting for print moves</div><div>#define DELTA_SEGMENTS_PER_SECOND_MOVE 70 // Less accurate setting for other moves</div><div>
</div><div>// Delta settings</div><div>#if DRIVE_SYSTEM==3</div><div>/** \brief Delta rod length</div><div>/</div><div>#define DELTA_DIAGONAL_ROD 345 // mm</div><div>
</div><div>
</div><div>/ =========== Parameter essential for delta calibration ===================</div><div>
</div><div> C, Y-Axis</div><div> | || CARRIAGE_HORIZONTAL_OFFSET</div><div> | | </div><div> |______ X-axis | </div><div> / \ | \ DELTA_DIAGONAL_ROD</div><div> / \ </div><div> / \ \ Carriage is at printer center!</div><div> A B _____/</div><div> |--| END_EFFECTOR_HORIZONTAL_OFFSET</div><div> |----| DELTA_RADIUS</div><div> |-----------| PRINTER_RADIUS</div><div>
</div><div> Column angles are measured from X-axis counterclockwise</div><div> "Standard" positions: alpha_A = 210, alpha_B = 330, alpha_C = 90</div><div>*/</div><div>
</div><div>/** \brief column positions - change only to correct build imperfections! */</div><div>#define DELTA_ALPHA_A 210</div><div>#define DELTA_ALPHA_B 330</div><div>#define DELTA_ALPHA_C 90</div><div>
</div><div>/** Correct radius by this value for each column. Perfect builds have 0 everywhere. /</div><div>#define DELTA_RADIUS_CORRECTION_A 0</div><div>#define DELTA_RADIUS_CORRECTION_B 0</div><div>#define DELTA_RADIUS_CORRECTION_C 0</div><div>
</div><div>/** Correction of the default diagonal size. Value gets added./</div><div>#define DELTA_DIAGONAL_CORRECTION_A 0</div><div>#define DELTA_DIAGONAL_CORRECTION_B 0</div><div>#define DELTA_DIAGONAL_CORRECTION_C 0</div><div>
</div><div>/** Max. radius the printer should be able to reach. /</div><div>#define DELTA_MAX_RADIUS 200</div><div>
</div><div>
</div><div>/** \brief Horizontal offset of the universal joints on the end effector (moving platform).</div><div>/</div><div>#define END_EFFECTOR_HORIZONTAL_OFFSET 33</div><div>
</div><div>/** \brief Horizontal offset of the universal joints on the vertical carriages.</div><div>/</div><div>#define CARRIAGE_HORIZONTAL_OFFSET 18</div><div>
</div><div>/** \brief Printer radius in mm, measured from the center of the print area to the vertical smooth rod.</div><div>/</div><div>#define PRINTER_RADIUS 175</div><div>
</div><div>/** Remove comment for more precise delta moves. Needs a bit more computation time. /</div><div>//#define EXACT_DELTA_MOVES</div><div>
</div><div>/ \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).</div><div>/</div><div>#define DELTA_RADIUS (PRINTER_RADIUS-END_EFFECTOR_HORIZONTAL_OFFSET-CARRIAGE_HORIZONTAL_OFFSET)</div><div>/* ========== END Delta calibation data ==============/</div><div>
</div><div>/** When true the delta will home to z max when reset/powered over cord. That way you start with well defined coordinates.</div><div>If you don't do it, make sure to home first before your first move.</div><div>/</div><div>#define DELTA_HOME_ON_POWER false</div><div>
</div><div>/** To allow software correction of misaligned endstops, you can set the correction in steps here. If you have EEPROM enabled</div><div>you can also change the values online and autoleveling will store the results here. /</div><div>#define DELTA_X_ENDSTOP_OFFSET_STEPS 0</div><div>#define DELTA_Y_ENDSTOP_OFFSET_STEPS 0</div><div>#define DELTA_Z_ENDSTOP_OFFSET_STEPS 0</div><div>
</div><div>
</div><div>/** \brief Experimental calibration utility for delta printers</div><div>/</div><div>#define SOFTWARE_LEVELING</div><div>
</div><div>#endif</div><div>#if DRIVE_SYSTEM == 4 // ========== Tuga special settings =============</div><div>/* Radius of the long arm in mm. */</div><div>#define DELTA_DIAGONAL_ROD 240</div><div>#endif</div><div>
</div><div>/** \brief Number of delta moves in each line. Moves that exceed this figure will be split into multiple lines.</div><div>Increasing this figure can use a lot of memory since 7 bytes * size of line buffer * MAX_SELTA_SEGMENTS_PER_LINE</div><div>will be allocated for the delta buffer. With defaults 7 * 16 * 22 = 2464 bytes. This leaves 1K free RAM on an Arduino</div><div>Mega. Used only for nonlinear systems like delta or tuga. /</div><div>#define MAX_DELTA_SEGMENTS_PER_LINE 22</div><div>
</div><div>/** After x seconds of inactivity, the stepper motors are disabled.</div><div> Set to 0 to leave them enabled.</div><div> This helps cooling the Stepper motors between two print jobs.</div><div> Overridden if EEPROM activated.</div><div>/</div><div>#define STEPPER_INACTIVE_TIME 3600</div><div>/** After x seconds of inactivity, the system will go down as far it can.</div><div> It will at least disable all stepper motors and heaters. If the board has</div><div> a power pin, it will be disabled, too.</div><div> Set value to 0 for disabled.</div><div> Overridden if EEPROM activated.</div><div>*/</div><div>#define MAX_INACTIVE_TIME 0L</div><div>/** Maximum feedrate, the system allows. Higher feedrates are reduced to these values.</div><div> The axis order in all axis related arrays is X, Y, Z</div><div> Overridden if EEPROM activated.</div><div> */</div><div>#define MAX_FEEDRATE_X 200</div><div>#define MAX_FEEDRATE_Y 200</div><div>#define MAX_FEEDRATE_Z 3</div><div>
</div><div>/** Home position speed in mm/s. Overridden if EEPROM activated. */</div><div>#define HOMING_FEEDRATE_X 80</div><div>#define HOMING_FEEDRATE_Y 80</div><div>#define HOMING_FEEDRATE_Z 3</div><div>
</div><div>/** Set order of axis homing. Use HOME_ORDER_XYZ and replace XYZ with your order. /</div><div>#define HOMING_ORDER HOME_ORDER_YXZ</div><div>/ 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</div><div>own weight, so this is nearly never needed. */</div><div>#define ENABLE_BACKLASH_COMPENSATION false</div><div>#define Z_BACKLASH 0</div><div>#define X_BACKLASH 0</div><div>#define Y_BACKLASH 0</div><div>
</div><div>/** Comment this to disable ramp acceleration /</div><div>#define RAMP_ACCELERATION 1</div><div>
</div><div>/** If your stepper needs a longer high signal then given, you can add a delay here.</div><div>The delay is realized as a simple loop wasting time, which is not available for other</div><div>computations. So make it as low as possible. For the most common drivers no delay is needed, as the</div><div>included delay is already enough.</div><div>/</div><div>#define STEPPER_HIGH_DELAY 0</div><div>
</div><div>/** The firmware can only handle 16000Hz interrupt frequency cleanly. If you need higher speeds</div><div>a faster solution is needed, and this is to double/quadruple the steps in one interrupt call.</div><div>This is like reducing your 1/16th microstepping to 1/8 or 1/4. It is much cheaper then 1 or 3</div><div>additional stepper interrupts with all it's overhead. As a result you can go as high as</div><div>40000Hz.</div><div>/</div><div>#define STEP_DOUBLER_FREQUENCY 12000</div><div>/** If you need frequencies off more then 30000 you definitely need to enable this. If you have only 1/8 stepping</div><div>enabling this may cause to stall your moves when 20000Hz is reached.</div><div>/</div><div>#define ALLOW_QUADSTEPPING true</div><div>/** If you reach STEP_DOUBLER_FREQUENCY the firmware will do 2 or 4 steps with nearly no delay. That can be too fast</div><div>for some printers causing an early stall.</div><div>
</div><div>/</div><div>#define DOUBLE_STEP_DELAY 1 // time in microseconds</div><div>
</div><div>/** The firmware supports trajectory smoothing. To achieve this, it divides the stepsize by 2, resulting in</div><div>the double computation cost. For slow movements this is not an issue, but for really fast moves this is</div><div>too much. The value specified here is the number of clock cycles between a step on the driving axis.</div><div>If the interval at full speed is below this value, smoothing is disabled for that line./</div><div>#define MAX_HALFSTEP_INTERVAL 1999</div><div>
</div><div>//// Acceleration settings</div><div>
</div><div>/** \brief X, Y, Z max acceleration in mm/s2 for printing moves or retracts. Make sure your printer can go that high!</div><div> Overridden if EEPROM activated.</div><div>/</div><div>#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_X 900</div><div>#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Y 900</div><div>#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Z 100</div><div>
</div><div>/** \brief X, Y, Z max acceleration in mm/s2 for travel moves. Overridden if EEPROM activated./</div><div>#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_X 1500</div><div>#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Y 1500</div><div>#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Z 100</div><div>
</div><div>/** \brief Maximum allowable jerk.</div><div>
</div><div>Caution: This is no real jerk in a physical meaning.</div><div>
</div><div>The jerk determines your start speed and the maximum speed at the join of two segments.</div><div>Its unit is mm/s. If the printer is standing still, the start speed is jerk/2. At the</div><div>join of two segments, the speed difference is limited to the jerk value.</div><div>
</div><div>Examples:</div><div>For all examples jerk is assumed as 40.</div><div>
</div><div>Segment 1: vx = 50, vy = 0</div><div>Segment 2: vx = 0, vy = 50</div><div>v_diff = sqrt((50-0)2+(0-50)2) = 70.71</div><div>v_diff > jerk => vx_1 = vy_2 = jerk/v_diffvx_1 = 40/70.7150 = 28.3 mm/s at the join</div><div>
</div><div>Segment 1: vx = 50, vy = 0</div><div>Segment 2: vx = 35.36, vy = 35.36</div><div>v_diff = sqrt((50-35.36)2+(0-35.36)2) = 38.27 < jerk</div><div>Corner can be printed with full speed of 50 mm/s</div><div>
</div><div>Overridden if EEPROM activated.</div><div>/</div><div>#define MAX_JERK 20.0</div><div>#define MAX_ZJERK 0.3</div><div>
</div><div>/** \brief Number of moves we can cache in advance.</div><div>
</div><div>This number of moves can be cached in advance. If you wan't to cache more, increase this. Especially on</div><div>many very short moves the cache may go empty. The minimum value is 5.</div><div>/</div><div>#define MOVE_CACHE_SIZE 16</div><div>
</div><div>/** \brief Low filled cache size.</div><div>
</div><div>If the cache contains less then MOVE_CACHE_LOW segments, the time per segment is limited to LOW_TICKS_PER_MOVE clock cycles.</div><div>If a move would be shorter, the feedrate will be reduced. This should prevent buffer underflows. Set this to 0 if you</div><div>don't care about empty buffers during print.</div><div>/</div><div>#define MOVE_CACHE_LOW 10</div><div>/** \brief Cycles per move, if move cache is low.</div><div>
</div><div>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</div><div>if you are printing many very short segments at high speed. Higher delays here allow higher values in PATH_PLANNER_CHECK_SEGMENTS.</div><div>/</div><div>#define LOW_TICKS_PER_MOVE 250000</div><div>
</div><div>// ##########################################################################################</div><div>// ## Extruder control ##</div><div>// ##########################################################################################</div><div>
</div><div>
</div><div>/* \brief Minimum temperature for extruder operation</div><div>
</div><div>This is a saftey value. If your extruder temperature is below this temperature, no</div><div>extruder steps are executed. This is to prevent your extruder to move unless the fiament</div><div>is at least molten. After having some complains that the extruder does not work, I leave</div><div>it 0 as default.</div><div>/</div><div>
</div><div>#define MIN_EXTRUDER_TEMP 150</div><div>
</div><div>/** \brief Enable advance algorithm.</div><div>
</div><div>Without a correct adjusted advance algorithm, you get blobs at points, where acceleration changes. The</div><div>effect increases with speed and acceleration difference. Using the advance method decreases this effect.</div><div>For more informations, read the wiki.</div><div>/</div><div>#define USE_ADVANCE</div><div>
</div><div>/** \brief enables quadratic component.</div><div>
</div><div>Uncomment to allow a quadratic advance dependency. Linear is the dominant value, so no real need</div><div>to activate the quadratic term. Only adds lots of computations and storage usage. /</div><div>//#define ENABLE_QUADRATIC_ADVANCE</div><div>
</div><div>
</div><div>// ##########################################################################################</div><div>// ## Communication configuration ##</div><div>// ##########################################################################################</div><div>
</div><div>//// AD595 THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!!</div><div>
</div><div>/** \brief Communication speed.</div><div>
</div><div>- 250000 : Fastes with errorrate of 0% with 16 or 32 MHz - update wiring_serial.c in your board files. See boards/readme.txt</div><div>- 115200 : Fast, but may produce communication errors on quite regular basis, Error rate -3,5%</div><div>- 76800 : Best setting for Arduino with 16 MHz, Error rate 0,2% page 198 AVR1284 Manual. Result: Faster communication then 115200</div><div>- 57600 : Should produce nearly no errors, on my gen 6 it's faster than 115200 because there are no errors slowing down the connection</div><div>- 38600</div><div>
</div><div> Overridden if EEPROM activated.</div><div>/</div><div>//#define BAUDRATE 76800 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div>#define BAUDRATE 115200</div><div>//#define BAUDRATE 250000</div><div>
</div><div>/</div><div>Some boards like Gen7 have a power on pin, to enable the atx power supply. If this is defined,</div><div>the power will be turned on without the need to call M80 if initially started.</div><div>/</div><div>#define ENABLE_POWER_ON_STARTUP </div><div>
</div><div>/</div><div>If you use an ATX power supply you need the power pin to work non inverting. For some special</div><div>boards you might need to make it inverting.</div><div>*/</div><div>#define POWER_INVERTING false</div><div>/** What shall the printer do, when it receives an M112 emergency stop signal?</div><div> 0 = Disable heaters/motors, wait forever until someone presses reset.</div><div> 1 = restart by resetting the AVR controller. The USB connection will not reset if managed by a different chip!</div><div>/</div><div>#define KILL_METHOD 1</div><div>
</div><div>/** \brief Cache size for incoming commands.</div><div>
</div><div>There should be no reason to increase this cache. Commands are nearly immediately sent to</div><div>execution.</div><div>/</div><div>#define GCODE_BUFFER_SIZE 2</div><div>/** Appends the linenumber after every ok send, to acknowledge the received command. Uncomment for plain ok ACK if your host has problems with this */</div><div>#define ACK_WITH_LINENUMBER</div><div>/** Communication errors can swollow part of the ok, which tells the host software to send</div><div>the next command. Not receiving it will cause your printer to stop. Sending this string every</div><div>second, if our queue is empty should prevent this. Comment it, if you don't wan't this feature. /</div><div>#define WAITING_IDENTIFIER "wait"</div><div>
</div><div>/** \brief Sets time for echo debug</div><div>
</div><div>You can set M111 1 which enables ECHO of commands sent. This define specifies the position,</div><div>when it will be executed. In the original FiveD software, echo is done after receiving the</div><div>command. With checksum you know, how it looks from the sending string. With this define</div><div>uncommented, you will see the last command executed. To be more specific: It is written after</div><div>execution. This helps tracking errors, because there may be 8 or more commands in the queue</div><div>and it is elsewise difficult to know, what your reprap is currently doing.</div><div>/</div><div>#define ECHO_ON_EXECUTE</div><div>
</div><div>/** \brief EEPROM storage mode</div><div>
</div><div>Set the EEPROM_MODE to 0 if you always want to use the settings in this configuration file. If not,</div><div>set it to a value not stored in the first EEPROM-byte used. If you later want to overwrite your current</div><div>EEPROM settings with configuration defaults, just select an other value. On the first call to epr_init()</div><div>it will detect a mismatch of the first byte and copy default values into EEPROM. If the first byte</div><div>matches, the stored values are used to overwrite the settings.</div><div>
</div><div>IMPORTANT: With mode <>0 some changes in Configuration.h are not set any more, as they are</div><div> taken from the EEPROM.</div><div>*/</div><div>#define EEPROM_MODE 0</div>