|
@@ -95,7 +95,6 @@
|
95
|
95
|
// PID settings:
|
96
|
96
|
// Comment the following line to disable PID and enable bang-bang.
|
97
|
97
|
#define PIDTEMP
|
98
|
|
-#define PIDTEMPBED
|
99
|
98
|
#define PID_MAX 255 // limits current to nozzle; 255=full current
|
100
|
99
|
#ifdef PIDTEMP
|
101
|
100
|
//#define PID_DEBUG // Sends debug data to the serial port.
|
|
@@ -115,21 +114,49 @@
|
115
|
114
|
// #define DEFAULT_Ki 0.1
|
116
|
115
|
// #define DEFAULT_Kd 12
|
117
|
116
|
|
|
117
|
+// Mendel Parts V9 on 12V
|
|
118
|
+// #define DEFAULT_Kp 63.0
|
|
119
|
+// #define DEFAULT_Ki 2.25
|
|
120
|
+// #define DEFAULT_Kd 440
|
|
121
|
+#endif // PIDTEMP
|
|
122
|
+
|
|
123
|
+// Bed Temperature Control
|
|
124
|
+// Select PID or bang-bang with PIDTEMPBED. If bang-bang, BED_LIMIT_SWITCHING will enable hysteresis
|
|
125
|
+//
|
|
126
|
+// uncomment this to enable PID on the bed. It uses the same ferquency PWM as the extruder.
|
|
127
|
+// If your PID_dT above is the default, and correct for your hardware/configuration, that means 7.689Hz,
|
|
128
|
+// which is fine for driving a square wave into a resistive load and does not significantly impact you FET heating.
|
|
129
|
+// This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W heater.
|
|
130
|
+// If your configuration is significantly different than this and you don't understand the issues involved, you proabaly
|
|
131
|
+// shouldn't use bed PID until someone else verifies your hardware works.
|
|
132
|
+// If this is enabled, find your own PID constants below.
|
|
133
|
+//#define PIDTEMPBED
|
|
134
|
+//
|
|
135
|
+//#define BED_LIMIT_SWITCHING
|
|
136
|
+
|
|
137
|
+// This sets the max power delived to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option.
|
|
138
|
+// all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)
|
|
139
|
+// setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,
|
|
140
|
+// so you shouldn't use it unless you are OK with PWM on your bed. (see the comment on enabling PIDTEMPBED)
|
|
141
|
+#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current
|
|
142
|
+
|
|
143
|
+#ifdef PIDTEMPBED
|
|
144
|
+//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
|
118
|
145
|
//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, argressive factor of .15 (vs .1, 1, 10)
|
119
|
146
|
#define DEFAULT_bedKp 10.00
|
120
|
147
|
#define DEFAULT_bedKi .023
|
121
|
148
|
#define DEFAULT_bedKd 305.4
|
122
|
149
|
|
123
|
|
-//mark from pidautotune
|
|
150
|
+//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
|
|
151
|
+//from pidautotune
|
124
|
152
|
// #define DEFAULT_bedKp 97.1
|
125
|
153
|
// #define DEFAULT_bedKi 1.41
|
126
|
154
|
// #define DEFAULT_bedKd 1675.16
|
127
|
155
|
|
128
|
|
-// Mendel Parts V9 on 12V
|
129
|
|
-// #define DEFAULT_Kp 63.0
|
130
|
|
-// #define DEFAULT_Ki 2.25
|
131
|
|
-// #define DEFAULT_Kd 440
|
132
|
|
-#endif // PIDTEMP
|
|
156
|
+// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
|
|
157
|
+#endif // PIDTEMPBED
|
|
158
|
+
|
|
159
|
+
|
133
|
160
|
|
134
|
161
|
//this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
|
135
|
162
|
//can be software-disabled for whatever purposes by
|