@ -1,53 +1,53 @@
/**
Marlin 3 D Printer Firmware
Copyright ( C ) 2016 MarlinFirmware [ https : //github.com/MarlinFirmware/Marlin]
Based on Sprinter and grbl .
Copyright ( C ) 2011 Camiel Gubbels / Erik van der Zalm
This program 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 .
This program 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 this program . If not , see < http : //www.gnu.org/licenses/>.
* Marlin 3 D Printer Firmware
* Copyright ( C ) 2016 MarlinFirmware [ https : //github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl .
* Copyright ( C ) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program 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 .
*
* This program 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 this program . If not , see < http : //www.gnu.org/licenses/>.
*
*/
/**
Configuration . h
Basic settings such as :
- Type of electronics
- Type of temperature sensor
- Printer geometry
- Endstop configuration
- LCD controller
- Extra features
Advanced settings can be found in Configuration_adv . h
* Configuration . h
*
* Basic settings such as :
*
* - Type of electronics
* - Type of temperature sensor
* - Printer geometry
* - Endstop configuration
* - LCD controller
* - Extra features
*
* Advanced settings can be found in Configuration_adv . h
*
*/
# ifndef CONFIGURATION_H
# define CONFIGURATION_H
/**
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * ATTENTION TO ALL DEVELOPERS * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
You must increment this version number for every significant change such as ,
but not limited to : ADD , DELETE RENAME OR REPURPOSE any directive / option .
Note : Update also Version . h !
*
* You must increment this version number for every significant change such as ,
* but not limited to : ADD , DELETE RENAME OR REPURPOSE any directive / option .
*
* Note : Update also Version . h !
*/
# define CONFIGURATION_H_VERSION 010100
@ -56,15 +56,15 @@
//===========================================================================
/**
Here are some standard links for getting your machine calibrated :
http : //reprap.org/wiki/Calibration
http : //youtu.be/wAL9d7FgInk
http : //calculator.josefprusa.cz
http : //reprap.org/wiki/Triffid_Hunter%27s_Calibration_Guide
http : //www.thingiverse.com/thing:5573
https : //sites.google.com/site/repraplogphase/calibration-of-your-reprap
http : //www.thingiverse.com/thing:298812
* Here are some standard links for getting your machine calibrated :
*
* http : //reprap.org/wiki/Calibration
* http : //youtu.be/wAL9d7FgInk
* http : //calculator.josefprusa.cz
* http : //reprap.org/wiki/Triffid_Hunter%27s_Calibration_Guide
* http : //www.thingiverse.com/thing:5573
* https : //sites.google.com/site/repraplogphase/calibration-of-your-reprap
* http : //www.thingiverse.com/thing:298812
*/
//===========================================================================
@ -106,21 +106,21 @@
// @section machine
/**
Select which serial port on the board will be used for communication with the host .
This allows the connection of wireless adapters ( for instance ) to non - default port pins .
Serial port 0 is always used by the Arduino bootloader regardless of this setting .
: [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ]
* Select which serial port on the board will be used for communication with the host .
* This allows the connection of wireless adapters ( for instance ) to non - default port pins .
* Serial port 0 is always used by the Arduino bootloader regardless of this setting .
*
* : [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ]
*/
# define SERIAL_PORT 0
/**
This setting determines the communication speed of the printer .
250000 works in most cases , but you might try a lower speed if
you commonly experience drop - outs during host printing .
: [ 2400 , 9600 , 19200 , 38400 , 57600 , 115200 , 250000 ]
* This setting determines the communication speed of the printer .
*
* 250000 works in most cases , but you might try a lower speed if
* you commonly experience drop - outs during host printing .
*
* : [ 2400 , 9600 , 19200 , 38400 , 57600 , 115200 , 250000 ]
*/
# define BAUDRATE 250000
@ -161,12 +161,12 @@
# endif
/**
" Mixing Extruder "
- Adds a new code , M165 , to set the current mix factors .
- Extends the stepping routines to move multiple steppers in proportion to the mix .
- Optional support for Repetier Host M163 , M164 , and virtual extruder .
- This implementation supports only a single extruder .
- Enable DIRECT_MIXING_IN_G1 for Pia Taubert ' s reference implementation
* " Mixing Extruder "
* - Adds a new code , M165 , to set the current mix factors .
* - Extends the stepping routines to move multiple steppers in proportion to the mix .
* - Optional support for Repetier Host M163 , M164 , and virtual extruder .
* - This implementation supports only a single extruder .
* - Enable DIRECT_MIXING_IN_G1 for Pia Taubert ' s reference implementation
*/
//#define MIXING_EXTRUDER
# if ENABLED(MIXING_EXTRUDER)
@ -182,13 +182,13 @@
//#define HOTEND_OFFSET_Y {0.0, 5.00} // (in mm) for each extruder, offset of the hotend on the Y axis
/**
Select your power supply here . Use 0 if you haven ' t connected the PS_ON_PIN
0 = No Power Switch
1 = ATX
2 = X - Box 360 203 Watts ( the blue wire connected to PS_ON and the red wire to VCC )
: { 0 : ' No power switch ' , 1 : ' ATX ' , 2 : ' X - Box 360 ' }
* Select your power supply here . Use 0 if you haven ' t connected the PS_ON_PIN
*
* 0 = No Power Switch
* 1 = ATX
* 2 = X - Box 360 203 Watts ( the blue wire connected to PS_ON and the red wire to VCC )
*
* : { 0 : ' No power switch ' , 1 : ' ATX ' , 2 : ' X - Box 360 ' }
*/
# define POWER_SUPPLY 0
@ -205,49 +205,49 @@
//===========================================================================
/**
- - NORMAL IS 4.7 kohm PULLUP ! - - 1 kohm pullup can be used on hotend sensor , using correct resistor and table
Temperature sensors available :
- 3 : thermocouple with MAX31855 ( only for sensor 0 )
- 2 : thermocouple with MAX6675 ( only for sensor 0 )
- 1 : thermocouple with AD595
0 : not used
1 : 100 k thermistor - best choice for EPCOS 100 k ( 4.7 k pullup )
2 : 200 k thermistor - ATC Semitec 204 GT - 2 ( 4.7 k pullup )
3 : Mendel - parts thermistor ( 4.7 k pullup )
4 : 10 k thermistor ! ! do not use it for a hotend . It gives bad resolution at high temp . ! !
5 : 100 K thermistor - ATC Semitec 104 GT - 2 ( Used in ParCan & J - Head ) ( 4.7 k pullup )
6 : 100 k EPCOS - Not as accurate as table 1 ( created using a fluke thermocouple ) ( 4.7 k pullup )
7 : 100 k Honeywell thermistor 135 - 104L AG - J01 ( 4.7 k pullup )
71 : 100 k Honeywell thermistor 135 - 104L AF - J01 ( 4.7 k pullup )
8 : 100 k 0603 SMD Vishay NTCS0603E3104FXT ( 4.7 k pullup )
9 : 100 k GE Sensing AL03006 - 58.2 K - 97 - G1 ( 4.7 k pullup )
10 : 100 k RS thermistor 198 - 961 ( 4.7 k pullup )
11 : 100 k beta 3950 1 % thermistor ( 4.7 k pullup )
12 : 100 k 0603 SMD Vishay NTCS0603E3104FXT ( 4.7 k pullup ) ( calibrated for Makibox hot bed )
13 : 100 k Hisens 3950 1 % up to 300 ° C for hotend " Simple ONE " & " Hotend " All In ONE "
20 : the PT100 circuit found in the Ultimainboard V2 . x
60 : 100 k Maker ' s Tool Works Kapton Bed Thermistor beta = 3950
66 : 4.7 M High Temperature thermistor from Dyze Design
70 : the 100 K thermistor found in the bq Hephestos 2
1 k ohm pullup tables - This is atypical , and requires changing out the 4.7 k pullup for 1 k .
( but gives greater accuracy and more stable PID )
51 : 100 k thermistor - EPCOS ( 1 k pullup )
52 : 200 k thermistor - ATC Semitec 204 GT - 2 ( 1 k pullup )
55 : 100 k thermistor - ATC Semitec 104 GT - 2 ( Used in ParCan & J - Head ) ( 1 k pullup )
1047 : Pt1000 with 4 k7 pullup
1010 : Pt1000 with 1 k pullup ( non standard )
147 : Pt100 with 4 k7 pullup
110 : Pt100 with 1 k pullup ( non standard )
Use these for Testing or Development purposes . NEVER for production machine .
998 : Dummy Table that ALWAYS reads 25 ° C or the temperature defined below .
999 : Dummy Table that ALWAYS reads 100 ° C or the temperature defined below .
: { ' 0 ' : " Not used " , ' 1 ' : " 100k / 4.7k - EPCOS " , ' 2 ' : " 200k / 4.7k - ATC Semitec 204GT-2 " , ' 3 ' : " Mendel-parts / 4.7k " , ' 4 ' : " 10k !! do not use for a hotend. Bad resolution at high temp. !! " , ' 5 ' : " 100K / 4.7k - ATC Semitec 104GT-2 (Used in ParCan & J-Head) " , ' 6 ' : " 100k / 4.7k EPCOS - Not as accurate as Table 1 " , ' 7 ' : " 100k / 4.7k Honeywell 135-104LAG-J01 " , ' 8 ' : " 100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT " , ' 9 ' : " 100k / 4.7k GE Sensing AL03006-58.2K-97-G1 " , ' 10 ' : " 100k / 4.7k RS 198-961 " , ' 11 ' : " 100k / 4.7k beta 3950 1% " , ' 12 ' : " 100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT (calibrated for Makibox hot bed) " , ' 13 ' : " 100k Hisens 3950 1% up to 300°C for hotend 'Simple ONE ' & hotend 'All In ONE' " , ' 20 ' : " PT100 (Ultimainboard V2.x) " , ' 51 ' : " 100k / 1k - EPCOS " , ' 52 ' : " 200k / 1k - ATC Semitec 204GT-2 " , ' 55 ' : " 100k / 1k - ATC Semitec 104GT-2 (Used in ParCan & J-Head) " , ' 60 ' : " 100k Maker's Tool Works Kapton Bed Thermistor beta=3950 " , ' 66 ' : " Dyze Design 4.7M High Temperature thermistor " , ' 70 ' : " the 100K thermistor found in the bq Hephestos 2 " , ' 71 ' : " 100k / 4.7k Honeywell 135-104LAF-J01 " , ' 147 ' : " Pt100 / 4.7k " , ' 1047 ' : " Pt1000 / 4.7k " , ' 110 ' : " Pt100 / 1k (non-standard) " , ' 1010 ' : " Pt1000 / 1k (non standard) " , ' - 3 ' : " Thermocouple + MAX31855 (only for sensor 0) " , ' - 2 ' : " Thermocouple + MAX6675 (only for sensor 0) " , ' - 1 ' : " Thermocouple + AD595 " , ' 998 ' : " Dummy 1 " , ' 999 ' : " Dummy 2 " }
* - - NORMAL IS 4.7 kohm PULLUP ! - - 1 kohm pullup can be used on hotend sensor , using correct resistor and table
*
* Temperature sensors available :
*
* - 3 : thermocouple with MAX31855 ( only for sensor 0 )
* - 2 : thermocouple with MAX6675 ( only for sensor 0 )
* - 1 : thermocouple with AD595
* 0 : not used
* 1 : 100 k thermistor - best choice for EPCOS 100 k ( 4.7 k pullup )
* 2 : 200 k thermistor - ATC Semitec 204 GT - 2 ( 4.7 k pullup )
* 3 : Mendel - parts thermistor ( 4.7 k pullup )
* 4 : 10 k thermistor ! ! do not use it for a hotend . It gives bad resolution at high temp . ! !
* 5 : 100 K thermistor - ATC Semitec 104 GT - 2 ( Used in ParCan & J - Head ) ( 4.7 k pullup )
* 6 : 100 k EPCOS - Not as accurate as table 1 ( created using a fluke thermocouple ) ( 4.7 k pullup )
* 7 : 100 k Honeywell thermistor 135 - 104L AG - J01 ( 4.7 k pullup )
* 71 : 100 k Honeywell thermistor 135 - 104L AF - J01 ( 4.7 k pullup )
* 8 : 100 k 0603 SMD Vishay NTCS0603E3104FXT ( 4.7 k pullup )
* 9 : 100 k GE Sensing AL03006 - 58.2 K - 97 - G1 ( 4.7 k pullup )
* 10 : 100 k RS thermistor 198 - 961 ( 4.7 k pullup )
* 11 : 100 k beta 3950 1 % thermistor ( 4.7 k pullup )
* 12 : 100 k 0603 SMD Vishay NTCS0603E3104FXT ( 4.7 k pullup ) ( calibrated for Makibox hot bed )
* 13 : 100 k Hisens 3950 1 % up to 300 ° C for hotend " Simple ONE " & " Hotend " All In ONE "
* 20 : the PT100 circuit found in the Ultimainboard V2 . x
* 60 : 100 k Maker ' s Tool Works Kapton Bed Thermistor beta = 3950
* 66 : 4.7 M High Temperature thermistor from Dyze Design
* 70 : the 100 K thermistor found in the bq Hephestos 2
*
* 1 k ohm pullup tables - This is atypical , and requires changing out the 4.7 k pullup for 1 k .
* ( but gives greater accuracy and more stable PID )
* 51 : 100 k thermistor - EPCOS ( 1 k pullup )
* 52 : 200 k thermistor - ATC Semitec 204 GT - 2 ( 1 k pullup )
* 55 : 100 k thermistor - ATC Semitec 104 GT - 2 ( Used in ParCan & J - Head ) ( 1 k pullup )
*
* 1047 : Pt1000 with 4 k7 pullup
* 1010 : Pt1000 with 1 k pullup ( non standard )
* 147 : Pt100 with 4 k7 pullup
* 110 : Pt100 with 1 k pullup ( non standard )
*
* Use these for Testing or Development purposes . NEVER for production machine .
* 998 : Dummy Table that ALWAYS reads 25 ° C or the temperature defined below .
* 999 : Dummy Table that ALWAYS reads 100 ° C or the temperature defined below .
*
* : { ' 0 ' : " Not used " , ' 1 ' : " 100k / 4.7k - EPCOS " , ' 2 ' : " 200k / 4.7k - ATC Semitec 204GT-2 " , ' 3 ' : " Mendel-parts / 4.7k " , ' 4 ' : " 10k !! do not use for a hotend. Bad resolution at high temp. !! " , ' 5 ' : " 100K / 4.7k - ATC Semitec 104GT-2 (Used in ParCan & J-Head) " , ' 6 ' : " 100k / 4.7k EPCOS - Not as accurate as Table 1 " , ' 7 ' : " 100k / 4.7k Honeywell 135-104LAG-J01 " , ' 8 ' : " 100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT " , ' 9 ' : " 100k / 4.7k GE Sensing AL03006-58.2K-97-G1 " , ' 10 ' : " 100k / 4.7k RS 198-961 " , ' 11 ' : " 100k / 4.7k beta 3950 1% " , ' 12 ' : " 100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT (calibrated for Makibox hot bed) " , ' 13 ' : " 100k Hisens 3950 1% up to 300°C for hotend 'Simple ONE ' & hotend 'All In ONE' " , ' 20 ' : " PT100 (Ultimainboard V2.x) " , ' 51 ' : " 100k / 1k - EPCOS " , ' 52 ' : " 200k / 1k - ATC Semitec 204GT-2 " , ' 55 ' : " 100k / 1k - ATC Semitec 104GT-2 (Used in ParCan & J-Head) " , ' 60 ' : " 100k Maker's Tool Works Kapton Bed Thermistor beta=3950 " , ' 66 ' : " Dyze Design 4.7M High Temperature thermistor " , ' 70 ' : " the 100K thermistor found in the bq Hephestos 2 " , ' 71 ' : " 100k / 4.7k Honeywell 135-104LAF-J01 " , ' 147 ' : " Pt100 / 4.7k " , ' 1047 ' : " Pt1000 / 4.7k " , ' 110 ' : " Pt100 / 1k (non-standard) " , ' 1010 ' : " Pt1000 / 1k (non standard) " , ' - 3 ' : " Thermocouple + MAX31855 (only for sensor 0) " , ' - 2 ' : " Thermocouple + MAX6675 (only for sensor 0) " , ' - 1 ' : " Thermocouple + AD595 " , ' 998 ' : " Dummy 1 " , ' 999 ' : " Dummy 2 " }
*/
# define TEMP_SENSOR_0 1
# define TEMP_SENSOR_1 0
@ -400,15 +400,15 @@
//===========================================================================
/**
Thermal Protection protects your printer from damage and fire if a
thermistor falls out or temperature sensors fail in any way .
The issue : If a thermistor falls out or a temperature sensor fails ,
Marlin can no longer sense the actual temperature . Since a disconnected
thermistor reads as a low temperature , the firmware will keep the heater on .
If you get " Thermal Runaway " or " Heating failed " errors the
details can be tuned in Configuration_adv . h
* Thermal Protection protects your printer from damage and fire if a
* thermistor falls out or temperature sensors fail in any way .
*
* The issue : If a thermistor falls out or a temperature sensor fails ,
* Marlin can no longer sense the actual temperature . Since a disconnected
* thermistor reads as a low temperature , the firmware will keep the heater on .
*
* If you get " Thermal Runaway " or " Heating failed " errors the
* details can be tuned in Configuration_adv . h
*/
# define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders
@ -516,7 +516,7 @@
# define X_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
# define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
# define Z_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
# define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop .
# define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the probe .
// Enable this feature if all enabled endstop pins are interrupt-capable.
// This will remove the need to poll the interrupt pins, saving many CPU cycles.
@ -529,56 +529,57 @@
// delta speeds must be the same on xyz
/**
Default Settings
These settings can be reset by M502
You can set distinct factors for each E stepper , if needed .
If fewer factors are given , the last will apply to the rest .
Note that if EEPROM is enabled , saved values will override these .
* Default Settings
*
* These settings can be reset by M502
*
* You can set distinct factors for each E stepper , if needed .
* If fewer factors are given , the last will apply to the rest .
*
* Note that if EEPROM is enabled , saved values will override these .
*/
/**
Default Axis Steps Per Unit ( steps / mm )
Override with M92
X , Y , Z , E0 [ , E1 [ , E2 [ , E3 ] ] ]
* Default Axis Steps Per Unit ( steps / mm )
* Override with M92
* X , Y , Z , E0 [ , E1 [ , E2 [ , E3 ] ] ]
*/
# define DEFAULT_AXIS_STEPS_PER_UNIT { 100, 100, 100, 90 } // default steps per unit for Kossel (GT2, 20 tooth)
/**
Default Max Feed Rate ( mm / s )
Override with M203
X , Y , Z , E0 [ , E1 [ , E2 [ , E3 ] ] ]
* Default Max Feed Rate ( mm / s )
* Override with M203
* X , Y , Z , E0 [ , E1 [ , E2 [ , E3 ] ] ]
*/
# define DEFAULT_MAX_FEEDRATE { 200, 200, 200, 200 }
/**
Default Max Acceleration ( change / s ) change = mm / s
( Maximum start speed for accelerated moves )
Override with M201
X , Y , Z , E0 [ , E1 [ , E2 [ , E3 ] ] ]
* Default Max Acceleration ( change / s ) change = mm / s
* ( Maximum start speed for accelerated moves )
* Override with M201
* X , Y , Z , E0 [ , E1 [ , E2 [ , E3 ] ] ]
*/
# define DEFAULT_MAX_ACCELERATION { 4000, 4000, 4000, 4000 }
/**
Default Acceleration ( change / s ) change = mm / s
Override with M204
M204 P Acceleration
M204 R Retract Acceleration
M204 T Travel Acceleration
* Default Acceleration ( change / s ) change = mm / s
* Override with M204
*
* M204 P Acceleration
* M204 R Retract Acceleration
* M204 T Travel Acceleration
*/
# define DEFAULT_ACCELERATION 2500 // X, Y, Z and E acceleration for printing moves
# define DEFAULT_RETRACT_ACCELERATION 3000 // E acceleration for retracts
# define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
/**
Default Jerk ( mm / s )
" Jerk " specifies the minimum speed change that requires acceleration .
When changing speed and direction , if the difference is less than the
value set here , it may happen instantaneously .
* Default Jerk ( mm / s )
* Override with M205 X Y Z E
*
* " Jerk " specifies the minimum speed change that requires acceleration .
* When changing speed and direction , if the difference is less than the
* value set here , it may happen instantaneously .
*/
# define DEFAULT_XJERK 20.0
# define DEFAULT_YJERK DEFAULT_XJERK
@ -744,18 +745,18 @@
# define Z_MIN_PROBE_REPEATABILITY_TEST
/**
Z probes require clearance when deploying , stowing , and moving between
probe points to avoid hitting the bed and other hardware .
Servo - mounted probes require extra space for the arm to rotate .
Inductive probes need space to keep from triggering early .
Use these settings to specify the distance ( mm ) to raise the probe ( or
lower the bed ) . The values set here apply over and above any ( negative )
probe Z Offset set with Z_PROBE_OFFSET_FROM_EXTRUDER , M851 , or the LCD .
Only integer values > = 1 are valid here .
Example : ` M851 Z - 5 ` with a CLEARANCE of 4 = > 9 mm from bed to nozzle .
But : ` M851 Z + 1 ` with a CLEARANCE of 2 = > 2 mm from bed to nozzle .
* Z probes require clearance when deploying , stowing , and moving between
* probe points to avoid hitting the bed and other hardware .
* Servo - mounted probes require extra space for the arm to rotate .
* Inductive probes need space to keep from triggering early .
*
* Use these settings to specify the distance ( mm ) to raise the probe ( or
* lower the bed ) . The values set here apply over and above any ( negative )
* probe Z Offset set with Z_PROBE_OFFSET_FROM_EXTRUDER , M851 , or the LCD .
* Only integer values > = 1 are valid here .
*
* Example : ` M851 Z - 5 ` with a CLEARANCE of 4 = > 9 mm from bed to nozzle .
* But : ` M851 Z + 1 ` with a CLEARANCE of 2 = > 2 mm from bed to nozzle .
*/
# define Z_CLEARANCE_DEPLOY_PROBE 50 // Z Clearance for Deploy/Stow
# define Z_CLEARANCE_BETWEEN_PROBES 5 // Z Clearance between probe points
@ -826,13 +827,15 @@
# define Y_MAX_POS DELTA_PRINTABLE_RADIUS
# define Z_MAX_POS MANUAL_Z_HOME_POS
//===========================================================================
//========================= Filament Runout Sensor ==========================
//===========================================================================
//#define FILAMENT_RUNOUT_SENSOR // Uncomment for defining a filament runout sensor such as a mechanical or opto endstop to check the existence of filament
// RAMPS-based boards use SERVO3_PIN. For other boards you may need to define FIL_RUNOUT_PIN.
// It is assumed that when logic high = filament available
// when logic low = filament ran out
/**
* Filament Runout Sensor
* A mechanical or opto endstop is used to check for the presence of filament .
*
* RAMPS - based boards use SERVO3_PIN .
* For other boards you may need to define FIL_RUNOUT_PIN .
* By default the firmware assumes HIGH = has filament , LOW = ran out
*/
//#define FILAMENT_RUNOUT_SENSOR
# if ENABLED(FILAMENT_RUNOUT_SENSOR)
# define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
# define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
@ -852,9 +855,9 @@
# define MESH_NUM_Y_POINTS 3
# define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
# define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
# define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
# if ENABLED(MANUAL_BED_LEVELING)
# define MBL_Z_STEP 0.025 // Step size while manually probing Z axis.
@ -873,41 +876,40 @@
// @section bedlevel
/**
Select one form of Auto Bed Leveling below .
If you ' re also using the Probe for Z Homing , it ' s
highly recommended to enable Z_SAFE_HOMING also !
- 3 POINT
Probe 3 arbitrary points on the bed ( that aren ' t collinear )
You specify the XY coordinates of all 3 points .
The result is a single tilted plane . Best for a flat bed .
- LINEAR
Probe several points in a grid .
You specify the rectangle and the density of sample points .
The result is a single tilted plane . Best for a flat bed .
- BILINEAR
Probe several points in a grid .
You specify the rectangle and the density of sample points .
The result is a mesh , best for large or uneven beds .
* Select one form of Auto Bed Leveling below .
*
* If you ' re also using the Probe for Z Homing , it ' s
* highly recommended to enable Z_SAFE_HOMING also !
*
* - 3 POINT
* Probe 3 arbitrary points on the bed ( that aren ' t collinear )
* You specify the XY coordinates of all 3 points .
* The result is a single tilted plane . Best for a flat bed .
*
* - LINEAR
* Probe several points in a grid .
* You specify the rectangle and the density of sample points .
* The result is a single tilted plane . Best for a flat bed .
*
* - BILINEAR
* Probe several points in a grid .
* You specify the rectangle and the density of sample points .
* The result is a mesh , best for large or uneven beds .
*/
//#define AUTO_BED_LEVELING_3POINT // Only AUTO_BED_LEVELING_BILINEAR is supported for DELTA bed leveling.
//#define AUTO_BED_LEVELING_LINEAR // Only AUTO_BED_LEVELING_BILINEAR is supported for DELTA bed leveling.
# define AUTO_BED_LEVELING_BILINEAR // Only AUTO_BED_LEVELING_BILINEAR is supported for DELTA bed leveling.
/**
Enable detailed logging of G28 , G29 , M48 , etc .
Turn on with the command ' M111 S32 ' .
NOTE : Requires a lot of PROGMEM !
* Enable detailed logging of G28 , G29 , M48 , etc .
* Turn on with the command ' M111 S32 ' .
* NOTE : Requires a lot of PROGMEM !
*/
//#define DEBUG_LEVELING_FEATURE
# if ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR)
// Set the number of grid points per dimension.
// Works best with 5 or more points in each dimension.
# define ABL_GRID_MAX_POINTS_X 9
# define ABL_GRID_MAX_POINTS_Y ABL_GRID_MAX_POINTS_X
@ -957,8 +959,8 @@
# endif
/**
Commands to execute at the end of G29 probing .
Useful to retract or move the Z probe out of the way .
* Commands to execute at the end of G29 probing .
* Useful to retract or move the Z probe out of the way .
*/
//#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10"
@ -982,7 +984,7 @@
// - If stepper drivers time out, it will need X and Y homing again before Z homing.
// - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
// - Prevent Z homing when the Z probe is outside bed area.
//#define Z_SAFE_HOMING // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
//#define Z_SAFE_HOMING
# if ENABLED(Z_SAFE_HOMING)
# define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2) // X point for Z homing when homing all axis (G28).
@ -1082,13 +1084,13 @@
//
// Available list of patterns:
// P0: This is the default pattern, this process requires a sponge type
// material at a fixed bed location, the cleaning process is based on
// "strokes" i.e. back-and-forth movements between the starting and end
// points.
// material at a fixed bed location. S defines "strokes" i.e.
// back-and-forth movements between the starting and end points.
//
// P1: This starts a zig-zag pattern between (X0, Y0) and (X1, Y1), "T"
// defines the number of zig-zag triangles to be done. "S" defines the
// number of strokes aka one back-and-forth movement. As an example
// number of strokes aka one back-and-forth movement. Zig-zags will
// be performed in whichever dimension is smallest. As an example,
// sending "G12 P1 S1 T3" will execute:
//
// --
@ -1101,6 +1103,10 @@
// |________|_________|_________|
// T1 T2 T3
//
// P2: This starts a circular pattern with circle with middle in
// NOZZLE_CLEAN_CIRCLE_MIDDLE radius of R and stroke count of S.
// Before starting the circle nozzle goes to NOZZLE_CLEAN_START_POINT.
//
// Caveats: End point Z should use the same value as Start point Z.
//
// Attention: This is an EXPERIMENTAL feature, in the future the G-code arguments
@ -1109,13 +1115,23 @@
//#define NOZZLE_CLEAN_FEATURE
# if ENABLED(NOZZLE_CLEAN_FEATURE)
// N umber of pattern repetitions
// Default n umber of pattern repetitions
# define NOZZLE_CLEAN_STROKES 12
// Default number of triangles
# define NOZZLE_CLEAN_TRIANGLES 3
// Specify positions as { X, Y, Z }
# define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
# define NOZZLE_CLEAN_END_POINT {100, 60, (Z_MIN_POS + 1)}
// Circular pattern radius
# define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5
// Circular pattern circle fragments number
# define NOZZLE_CLEAN_CIRCLE_FN 10
// Middle point of circle
# define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT
// Moves the nozzle to the initial position
# define NOZZLE_CLEAN_GOBACK
# endif
@ -1201,7 +1217,7 @@
// IMPORTANT NOTE: The U8glib library is required for Full Graphic Display!
// https://github.com/olikraus/U8glib_Arduino
//
# define ULTRA_LCD // Character based
//#define ULTRA_LCD // Character based
//#define DOGLCD // Full graphics display
//
@ -1244,13 +1260,13 @@
//#define ENCODER_STEPS_PER_MENU_ITEM 5
/**
Encoder Direction Options
Test your encoder ' s behavior first with both options disabled .
Reversed Value Edit and Menu Nav ? Enable REVERSE_ENCODER_DIRECTION .
Reversed Menu Navigation only ? Enable REVERSE_MENU_DIRECTION .
Reversed Value Editing only ? Enable BOTH options .
* Encoder Direction Options
*
* Test your encoder ' s behavior first with both options disabled .
*
* Reversed Value Edit and Menu Nav ? Enable REVERSE_ENCODER_DIRECTION .
* Reversed Menu Navigation only ? Enable REVERSE_MENU_DIRECTION .
* Reversed Value Editing only ? Enable BOTH options .
*/
//
@ -1509,8 +1525,8 @@
# endif
/*********************************************************************\
R / C SERVO support
Sponsored by TrinityLabs , Reworked by codexmas
* R / C SERVO support
* Sponsored by TrinityLabs , Reworked by codexmas
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Number of servos
@ -1522,7 +1538,7 @@
//
//#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
// Delay (in micro seconds) before the next move will start, to give the servo time to reach its target angle.
// Delay (in milli seconds) before the next move will start, to give the servo time to reach its target angle.
// 300ms is a good value but you can try less delay.
// If the servo can't reach the requested position, increase it.
# define SERVO_DELAY 300
@ -1533,15 +1549,15 @@
//#define DEACTIVATE_SERVOS_AFTER_MOVE
/**********************************************************************\
Support for a filament diameter sensor
Also allows adjustment of diameter at print time ( vs at slicing )
Single extruder only at this point ( extruder 0 )
Motherboards
34 - RAMPS1 .4 - uses Analog input 5 on the AUX2 connector
81 - Printrboard - Uses Analog input 2 on the Exp1 connector ( version B , C , D , E )
301 - Rambo - uses Analog input 3
Note may require analog pins to be defined for different motherboards
* Support for a filament diameter sensor
* Also allows adjustment of diameter at print time ( vs at slicing )
* Single extruder only at this point ( extruder 0 )
*
* Motherboards
* 34 - RAMPS1 .4 - uses Analog input 5 on the AUX2 connector
* 81 - Printrboard - Uses Analog input 2 on the Exp1 connector ( version B , C , D , E )
* 301 - Rambo - uses Analog input 3
* Note may require analog pins to be defined for different motherboards
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Uncomment below to enable
//#define FILAMENT_WIDTH_SENSOR