Configuration.h

Sat, 07 Nov 2015 13:23:07 +0100

author
mbayer
date
Sat, 07 Nov 2015 13:23:07 +0100
changeset 0
2c8ba1964db7
child 3
770b218a4931
permissions
-rw-r--r--

Initial code from reprappro Marlin repository

0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
1 #ifndef CONFIGURATION_H
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
2 #define CONFIGURATION_H
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
3
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
4 // ==============================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
5
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
6 // For instructions on setting these constants, see:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
7 // Mendel: http://reprap.org/wiki/RepRapPro_Mendel_maintenance
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
8 // Huxley: http://reprap.org/wiki/RepRapPro_Huxley_maintenance
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
9
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
10 // Uncomment ONE of the next three lines - the one for your RepRap machine
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
11 //#define REPRAPPRO_HUXLEY
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
12 //#define REPRAPPRO_MENDEL //Legacy Mendel
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
13 #define REPRAPPRO_MENDEL2 // Mono Mendel
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
15 // Uncomment ONE of the next two lines - the one for your master controller electronics
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
16 #define REPRAPPRO_MELZI
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
17 //#define REPRAPPRO_SANGUINOLOLU
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
18
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
19 // Uncomment ONE of the next two lines - the one for the series resistors on your controller
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
20 #define SERIAL_R 4700
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
21 //#define SERIAL_R 10000
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
22
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
23
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
24 // -------------------------------------------------------------------------------
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
25
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
26 #ifndef REPRAPPRO_HUXLEY
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
27 #ifndef REPRAPPRO_MENDEL
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
28 #ifndef REPRAPPRO_MENDEL2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
29 #error Uncomment one of #define REPRAPPRO_HUXLEY, REPRAPPRO_MENDEL, or REPRAPPRO_MENDEL2 at the start of the file Configuration.h
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
30 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
31 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
32 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
33
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
34 #ifndef REPRAPPRO_MELZI
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
35 #ifndef REPRAPPRO_SANGUINOLOLU
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
36 #error Uncomment one of #define REPRAPPRO_MELZI or REPRAPPRO_SANGUINOLOLU at the start of the file Configuration.h
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
37 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
38 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
39
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
40 #ifndef SERIAL_R
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
41 #error Uncomment one of #define SERIAL_R 10000 or 4700 at the start of the file Configuration.h
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
42 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
43
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
44 // ==============================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
45
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
46 // Uncomment this if you are experimenting, know what you are doing, and want to switch off some safety
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
47 // features, e.g. allow extrude at low temperature etc.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
48 //#define DEVELOPING
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
49
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
50 // This configurtion file contains the basic settings.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
51 // Advanced settings can be found in Configuration_adv.h
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
52 // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
53
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
54 //User specified version info of THIS file to display in [Pronterface, etc] terminal window during startup.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
55 //Implementation of an idea by Prof Braino to inform user that any changes made
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
56 //to THIS file by the user have been successfully uploaded into firmware.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
57 #define STRING_VERSION_CONFIG_H "2014-06-02-MB" //Personal revision number for changes to THIS file.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
58 #define STRING_CONFIG_H_AUTHOR "NEO" //Who made the changes.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
59
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
60 // This determines the communication speed of the printer
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
61 //#define BAUDRATE 250000
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
62 #define BAUDRATE 115200
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
63
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
64 //// The following define selects which electronics board you have. Please choose the one that matches your setup
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
65 // Sanguinololu 1.2 and above = 62
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
66 // Melzi 63
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
67
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
68 #ifdef REPRAPPRO_SANGUINOLOLU
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
69 #define MOTHERBOARD 62
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
70 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
71
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
72 #ifdef REPRAPPRO_MELZI
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
73 #define MOTHERBOARD 63
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
74 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
75
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
76
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
77
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
78 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
79 //=============================Thermal Settings ============================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
80 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
81
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
82 // Set this if you want to define the constants in the thermistor circuit
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
83 // and work out temperatures algebraically - added by AB.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
84
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
85 // See http://en.wikipedia.org/wiki/Thermistor#B_or_.CE.B2_parameter_equation
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
86
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
87 // BETA is the B value
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
88 // RS is the value of the series resistor in ohms
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
89 // R_INF is R0.exp(-BETA/T0), where R0 is the thermistor resistance at T0 (T0 is in kelvin)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
90 // Normally T0 is 298.15K (25 C). If you write that expression in brackets in the #define the compiler
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
91 // should compute it for you (i.e. it won't need to be calculated at run time).
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
92
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
93 // If the A->D converter has a range of 0..1023 and the measured voltage is V (between 0 and 1023)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
94 // then the thermistor resistance, R = V.RS/(1023 - V)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
95 // and the temperature, T = BETA/ln(R/R_INF)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
96 // To get degrees celsius (instead of kelvin) add -273.15 to T
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
97
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
98 // This DOES assume that all extruders use the same thermistor type.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
99
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
100
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
101 #define ABS_ZERO -273.15
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
102 #define AD_RANGE 16383
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
103
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
104
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
105 #ifdef REPRAPPRO_HUXLEY
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
106
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
107 // Bed thermistor: VISHAY BC COMPONENTS NTCS0603E3104FXT - All Huxleys with heated bed PCB
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
108 #define BED_BETA 4100.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
109 #define BED_NTC 100000.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
110
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
111 // Extruder thermistor: RS 198-961 100k ohm 10% DO-35 NTC thermistor - All Huxleys before 25/2/14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
112 // #define E_BETA 3960.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
113 // #define E_NTC 100000.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
114
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
115 // Extruder thermistor: Digikey 480-3137-ND - All Huxleys shipped after 25/2/14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
116 #define E_BETA 4138.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
117 #define E_NTC 100000.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
118
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
119 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
120
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
121
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
122 #ifdef REPRAPPRO_MENDEL
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
123
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
124 // Extruder thermistor: RS 198-961 100k ohm 10% DO-35 NTC thermistor - All Mendels before 1/4/13
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
125 #define E_BETA 3960.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
126 #define E_NTC 100000.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
127
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
128 // Bed thermistor: RS 484-0149; EPCOS B57550G103J - All Mendels before 1/4/13
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
129 #define BED_BETA 3480.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
130 #define BED_NTC 10000.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
131
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
132 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
133
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
134
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
135 #ifdef REPRAPPRO_MENDEL2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
136
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
137 // Bed thermistor: Rapid 61-0446 ; Semitec 103GT-2 - All Mendel2 shipped after 1/4/13 (launch)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
138 // #define BED_BETA 4126.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
139 // #define BED_NTC 10000.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
140
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
141 // Bed thermistor: Farnell 1299930 ; EPCOS B57863S103F040 - All Mendel2 shipped after 29/5/14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
142 #define BED_BETA 3988.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
143 #define BED_NTC 10000.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
144
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
145 // Extruder thermistor: RS 198-961 100k ohm 10% DO-35 NTC thermistor - All Mendel2 shipped after 1/4/13 (launch)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
146 // #define E_BETA 3960.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
147 // #define E_NTC 100000.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
148
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
149 // Extruder thermistor: Digikey 480-3137-ND - All Mendels shipped after 25/2/14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
150 #define E_BETA 4138.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
151 #define E_NTC 100000.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
152
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
153 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
154
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
155
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
156 #define E_RS SERIAL_R
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
157 #define E_R_INF ( E_NTC*exp(-E_BETA/298.15) )
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
158
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
159 #define BED_RS SERIAL_R
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
160 #define BED_R_INF ( BED_NTC*exp(-BED_BETA/298.15) )
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
161
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
162
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
163
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
164 #define BED_USES_THERMISTOR
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
165 #define HEATER_0_USES_THERMISTOR
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
166 #define HEATER_1_USES_THERMISTOR
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
167 #define HEATER_2_USES_THERMISTOR
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
168
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
169
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
170
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
171 // Actual temperature must be close to target for this long before M109 returns success
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
172 #define TEMP_RESIDENCY_TIME 5 // (seconds)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
173 #define TEMP_HYSTERESIS 5 // (C°) range of +/- temperatures considered "close" to the target one
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
174 #define TEMP_WINDOW 2 // (degC) Window around target to start the recidency timer x degC early.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
175
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
176 // The minimal temperature defines the temperature below which the heater will not be enabled It is used
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
177 // to check that the wiring to the thermistor is not broken.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
178 // Otherwise this would lead to the heater being powered on all the time.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
179 #define HEATER_0_MINTEMP 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
180 #ifdef REPRAPPRO_MULTIMATERIALS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
181 #define HEATER_1_MINTEMP 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
182 #define HEATER_2_MINTEMP 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
183 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
184 #define BED_MINTEMP 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
185
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
186 // When temperature exceeds max temp, your heater will be switched off.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
187 // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
188 // You should use MINTEMP for thermistor short/failure protection.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
189 #define HEATER_0_MAXTEMP 399
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
190 #ifdef REPRAPPRO_MULTIMATERIALS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
191 #define HEATER_1_MAXTEMP 275
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
192 #define HEATER_2_MAXTEMP 275
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
193 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
194 #define BED_MAXTEMP 150
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
195
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
196
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
197 // PID settings:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
198 // Comment the following line to disable PID and enable bang-bang.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
199 #define PIDTEMP
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
200 #define PID_MAX 255 // limits current to nozzle; 255=full current
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
201 #define FULL_PID_BAND 150 // Full power is applied when pid_error[e] > FULL_PID_BAND
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
202 #ifdef PIDTEMP
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
203 //#define PID_DEBUG // Sends debug data to the serial port.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
204 #define PID_INTEGRAL_DRIVE_MAX 125 //limit for the integral term
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
205 #define K1 0.95 //smoothing factor withing the PID
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
206 #define PID_dT 0.122 //sampling period of the PID
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
207
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
208
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
209 // RepRapPro Huxley + Mendel
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
210 #define DEFAULT_Kp 12.0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
211 #define DEFAULT_Ki (2.2*PID_dT)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
212 #define DEFAULT_Kd (80/PID_dT)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
213
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
214 #endif // PIDTEMP
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
215
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
216 #ifndef DEVELOPING
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
217 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
218 //can be software-disabled for whatever purposes by
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
219 #define PREVENT_DANGEROUS_EXTRUDE
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
220 #define EXTRUDE_MINTEMP 170
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
221 #define EXTRUDE_MAXLENGTH (999) //prevent extrusion of very large distances.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
222 #else
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
223 #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
224 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
225
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
226 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
227 //=============================Mechanical Settings===========================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
228 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
229
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
230 // Endstop Settings
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
231 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
232
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
233 // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
234 const bool X_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
235 const bool Y_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
236 const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
237
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
238 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
239 #define X_ENABLE_ON 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
240 #define Y_ENABLE_ON 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
241 #define Z_ENABLE_ON 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
242 #define E_ENABLE_ON 0 // For all extruders
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
243
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
244 // Disables axis when it's not being used.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
245 #define DISABLE_X false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
246 #define DISABLE_Y false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
247 #define DISABLE_Z true
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
248 #define DISABLE_E false // For all extruders
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
249
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
250 #ifdef REPRAPPRO_MENDEL
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
251 #define AXES_MAX_LENGTHS {210, 210, 140}
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
252 #define INVERT_X_DIR false // for Mendel set to false, for Orca set to true
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
253 //#define INVERT_Y_DIR true // for Mendel set to true, for Orca set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
254 #define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
255 #define INVERT_Z_DIR false // for Mendel set to false, for Orca set to true
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
256 #define INVERT_E0_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
257 #define INVERT_E1_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
258 #define INVERT_E2_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
259 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
260
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
261 #ifdef REPRAPPRO_MENDEL2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
262 #define AXES_MAX_LENGTHS {210, 210, 140}
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
263 #define INVERT_X_DIR true // for Mendel set to false, for Orca set to true
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
264 #define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
265 #define INVERT_Z_DIR false // for Mendel set to false, for Orca set to true
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
266 #define INVERT_E0_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
267 #define INVERT_E1_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
268 #define INVERT_E2_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
269 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
270
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
271 #ifdef REPRAPPRO_HUXLEY
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
272 #define AXES_MAX_LENGTHS {155, 150, 90}
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
273 #define INVERT_X_DIR false // for Mendel set to false, for Orca set to true
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
274 #define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
275 #define INVERT_Z_DIR false // for Mendel set to false, for Orca set to true
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
276 #define INVERT_E0_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
277 #define INVERT_E1_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
278 #define INVERT_E2_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
279 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
280
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
281
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
282 // ENDSTOP SETTINGS:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
283 // Sets direction of endstops when homing; 1=MAX, -1=MIN
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
284 #define X_HOME_DIR -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
285 #define Y_HOME_DIR -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
286 #define Z_HOME_DIR -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
287
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
288 #define min_software_endstops true //If true, axis won't move to coordinates less than zero.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
289 #define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
290
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
291 // The position of the homing switches. Use MAX_LENGTH * -0.5 if the center should be 0, 0, 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
292 #define X_HOME_POS 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
293 #define Y_HOME_POS 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
294 #define Z_HOME_POS 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
295
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
296 //// MOVEMENT SETTINGS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
297 #define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
298
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
299 /*
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
300 We've shipped a number of different configurations of belt and pulley now, so probably need some ifdef statements! At the moment, they all get the same.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
301
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
302 White polyurethane belt (T2.5), 14-tooth printed pulley: 91.4286 step per mm (Original Huxley, Legacy Mendel)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
303 Black rubber belt (MXL), 17-tooth printed pulley: 92.635 step per mm (Huxley, Mendel Mono and Tri since 1/4/2013)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
304 Black rubber belt (MXL), 18-tooth aluminium pulley: 87.489 step per mm (Huxley, Mendel Mono and Tri since 1/1/2014)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
305
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
306 Also, two different extruders:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
307
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
308 Original eMaker/RepRapPro-style: 920 steps per mm (Original Huxley, Legacy Mendel)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
309 New version (NEMA14 and NEMA17): 660 steps per mm (Huxley, Mendel Mono and Tricolour since 1/4/2013)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
310 */
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
311
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
312 #ifdef REPRAPPRO_MENDEL
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
313
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
314 #define X_MAX_LENGTH 210
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
315 #define Y_MAX_LENGTH 210
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
316 #define Z_MAX_LENGTH 110
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
317 #define HOMING_FEEDRATE {10*60, 10*60, 1*60, 0} // set the homing speeds (mm/min)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
318 #define FAST_HOME_FEEDRATE {50*60, 50*60, 1*60, 0} // set the homing speeds (mm/min)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
319 #define DEFAULT_MAX_FEEDRATE {500, 500, 3, 45}
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
320 #define DEFAULT_MAX_FEEDRATE {300, 300, 3, 45} // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
321 #define DEFAULT_MAX_ACCELERATION {800,800,30,250} // X, Y, Z, E maximum start speed for accelerated moves. E default values
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
322
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
323 // X, Y, Z, E steps per mm
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
324
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
325 #define DEFAULT_AXIS_STEPS_PER_UNIT {80, 91.4286, 4000, 950.0} // <- 14 tooth T2.5 belt + original extruder drive
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
326
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
327 #else
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
328
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
329 #ifdef REPRAPPRO_MENDEL2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
330
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
331 #define X_MAX_LENGTH 210
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
332 #define Y_MAX_LENGTH 210
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
333 #define Z_MAX_LENGTH 110
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
334 #define HOMING_FEEDRATE {10*60, 10*60, 1*60, 0} // set the homing speeds (mm/min)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
335 #define FAST_HOME_FEEDRATE {50*60, 50*60, 1*60, 0} // set the homing speeds (mm/min)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
336 #define DEFAULT_MAX_FEEDRATE {500, 500, 3, 60}
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
337 //#define DEFAULT_MAX_FEEDRATE {300, 300, 3, 45} // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
338 #define DEFAULT_MAX_ACCELERATION {1000,1000,30,250} // X, Y, Z, E maximum start speed for accelerated moves. E default values
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
339
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
340 // X, Y, Z, E steps per mm
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
341
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
342 #define DEFAULT_AXIS_STEPS_PER_UNIT {80, 87.489, 4000, 950.0} // <- 18-tooth aluminium pulley
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
343 //#define DEFAULT_AXIS_STEPS_PER_UNIT {92.635, 92.635, 4000, 660} // <- 17-tooth printed pulley
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
344
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
345 #else
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
346
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
347 #define X_MAX_LENGTH 155
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
348 #define Y_MAX_LENGTH 150
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
349 #define Z_MAX_LENGTH 90
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
350 #define HOMING_FEEDRATE {10*60, 10*60, 1*60, 0} // set the homing speeds (mm/min)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
351 #define FAST_HOME_FEEDRATE {80*60, 80*60, 4*60, 0} // set the homing speeds (mm/min)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
352 #define DEFAULT_MAX_FEEDRATE {500, 500, 5, 45} // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
353 #define DEFAULT_MAX_FEEDRATE {500, 500, 5, 45} // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
354 #define DEFAULT_MAX_ACCELERATION {1000,1000,50,250} // X, Y, Z, E maximum start speed for accelerated moves. E default values
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
355
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
356 // X, Y, Z, E steps per mm
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
357
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
358 #define DEFAULT_AXIS_STEPS_PER_UNIT {87.489, 87.489, 4000, 660.0} // <- 18-tooth aluminium pulley
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
359 //#define DEFAULT_AXIS_STEPS_PER_UNIT {92.635, 92.635, 4000, 660} // <- 17-tooth printed pulley
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
360 //#define DEFAULT_AXIS_STEPS_PER_UNIT {91.4286, 91.4286, 4000, 920.0} // <- 14 tooth T2.5 belt + original extruder drive
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
361
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
362
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
363 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
364 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
365
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
366
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
367
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
368 // Defaults changed by the G10 command
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
369
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
370 #define X_EXTRUDER_OFFSET 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
371 #define Y_EXTRUDER_OFFSET 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
372 #define Z_EXTRUDER_OFFSET 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
373 #define STANDBY_TEMP 140
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
374 #define PLA_TEMP 210
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
375 #define ABS_TEMP 250
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
376 #define DEFAULT_TEMP PLA_TEMP
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
377
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
378
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
379 #define DEFAULT_ACCELERATION 1000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
380 #define DEFAULT_RETRACT_ACCELERATION 1000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
381
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
382 //
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
383 #define DEFAULT_XYJERK 15.0 // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
384 #define DEFAULT_ZJERK 0.4 // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
385 #define DEFAULT_EJERK 15.0 // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
386
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
387 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
388 //=============================Additional Features===========================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
389 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
390
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
391 // EEPROM
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
392 // the microcontroller can store settings in the EEPROM, e.g. max velocity...
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
393 // M500 - stores paramters in EEPROM
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
394 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
395 // M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
396 //define this to enable eeprom support
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
397 #define EEPROM_SETTINGS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
398 //to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
399 // please keep turned on if you can.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
400 #define EEPROM_CHITCHAT
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
401
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
402 //LCD and SD support
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
403 //#define ULTRA_LCD //general lcd support, also 16x2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
404 #define SDSUPPORT // Enable SD Card Support in Hardware Console
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
405
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
406 //#define ULTIPANEL
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
407 #ifdef ULTIPANEL
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
408 //#define NEWPANEL //enable this if you have a click-encoder panel
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
409 #define SDSUPPORT
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
410 #define ULTRA_LCD
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
411 #define LCD_WIDTH 20
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
412 #define LCD_HEIGHT 4
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
413
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
414 // Preheat Constants
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
415 #define PLA_PREHEAT_HOTEND_TEMP 180
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
416 #define PLA_PREHEAT_HPB_TEMP 70
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
417 #define PLA_PREHEAT_FAN_SPEED 255 // Insert Value between 0 and 255
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
418
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
419 #define ABS_PREHEAT_HOTEND_TEMP 240
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
420 #define ABS_PREHEAT_HPB_TEMP 100
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
421 #define ABS_PREHEAT_FAN_SPEED 255 // Insert Value between 0 and 255
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
422
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
423 #else //no panel but just lcd
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
424 #ifdef ULTRA_LCD
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
425 #define LCD_WIDTH 16
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
426 #define LCD_HEIGHT 2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
427 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
428 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
429
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
430 // Enable uM-FPU support:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
431 #define UMFPUSUPPORT 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
432
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
433 // M240 Triggers a camera by emulating a Canon RC-1 Remote
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
434 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
435 // #define PHOTOGRAPH_PIN 23
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
436
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
437 #include "Configuration_adv.h"
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
438
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
439
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
440 #endif //__CONFIGURATION_H

mercurial