Browse Source

updated examples

cocktailyogi 10 years ago
parent
commit
ad3b770c1a

+ 37
- 0
Marlin/example_configurations/SCARA/Configuration.h View File

292
 #define EXTRUDE_MINTEMP 150
292
 #define EXTRUDE_MINTEMP 150
293
 #define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
293
 #define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
294
 
294
 
295
+/*================== Thermal Runaway Protection ==============================
296
+This is a feature to protect your printer from burn up in flames if it has
297
+a thermistor coming off place (this happened to a friend of mine recently and
298
+motivated me writing this feature).
299
+
300
+The issue: If a thermistor come off, it will read a lower temperature than actual.
301
+The system will turn the heater on forever, burning up the filament and anything
302
+else around.
303
+
304
+After the temperature reaches the target for the first time, this feature will 
305
+start measuring for how long the current temperature stays below the target 
306
+minus _HYSTERESIS (set_temperature - THERMAL_RUNAWAY_PROTECTION_HYSTERESIS).
307
+
308
+If it stays longer than _PERIOD, it means the thermistor temperature
309
+cannot catch up with the target, so something *may be* wrong. Then, to be on the
310
+safe side, the system will he halt.
311
+
312
+Bear in mind the count down will just start AFTER the first time the 
313
+thermistor temperature is over the target, so you will have no problem if
314
+your extruder heater takes 2 minutes to hit the target on heating.
315
+
316
+*/
317
+// If you want to enable this feature for all your extruder heaters,
318
+// uncomment the 2 defines below:
319
+
320
+// Parameters for all extruder heaters
321
+//#define THERMAL_RUNAWAY_PROTECTION_PERIOD 40 //in seconds
322
+//#define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS 4 // in degree Celsius
323
+
324
+// If you want to enable this feature for your bed heater,
325
+// uncomment the 2 defines below:
326
+
327
+// Parameters for the bed heater
328
+//#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD 20 //in seconds
329
+//#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS 2 // in degree Celsius
330
+//===========================================================================
331
+
295
 //===========================================================================
332
 //===========================================================================
296
 //=============================Mechanical Settings===========================
333
 //=============================Mechanical Settings===========================
297
 //===========================================================================
334
 //===========================================================================

+ 6
- 6
Marlin/example_configurations/SCARA/Configuration_adv.h View File

8
 #ifdef BED_LIMIT_SWITCHING
8
 #ifdef BED_LIMIT_SWITCHING
9
   #define BED_HYSTERESIS 2 //only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS
9
   #define BED_HYSTERESIS 2 //only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS
10
 #endif
10
 #endif
11
-#define BED_CHECK_INTERVAL 5000 //ms between checks in bang-bang control
11
+#define BED_CHECK_INTERVAL 3000 //ms between checks in bang-bang control
12
 
12
 
13
 //// Heating sanity check:
13
 //// Heating sanity check:
14
 // This waits for the watch period in milliseconds whenever an M104 or M109 increases the target temperature
14
 // This waits for the watch period in milliseconds whenever an M104 or M109 increases the target temperature
47
 //  extruder run-out prevention.
47
 //  extruder run-out prevention.
48
 //if the machine is idle, and the temperature over MINTEMP, every couple of SECONDS some filament is extruded
48
 //if the machine is idle, and the temperature over MINTEMP, every couple of SECONDS some filament is extruded
49
 //#define EXTRUDER_RUNOUT_PREVENT
49
 //#define EXTRUDER_RUNOUT_PREVENT
50
-#define EXTRUDER_RUNOUT_MINTEMP 190
50
+#define EXTRUDER_RUNOUT_MINTEMP 180
51
 #define EXTRUDER_RUNOUT_SECONDS 30.
51
 #define EXTRUDER_RUNOUT_SECONDS 30.
52
 #define EXTRUDER_RUNOUT_ESTEPS 14. //mm filament
52
 #define EXTRUDER_RUNOUT_ESTEPS 14. //mm filament
53
-#define EXTRUDER_RUNOUT_SPEED 1500.  //extrusion speed
53
+#define EXTRUDER_RUNOUT_SPEED 180.  //extrusion speed
54
 #define EXTRUDER_RUNOUT_EXTRUDE 100
54
 #define EXTRUDER_RUNOUT_EXTRUDE 100
55
 
55
 
56
 //These defines help to calibrate the AD595 sensor in case you get wrong temperature measurements.
56
 //These defines help to calibrate the AD595 sensor in case you get wrong temperature measurements.
345
 // Hooke's law says:		force = k * distance
345
 // Hooke's law says:		force = k * distance
346
 // Bernoulli's principle says:	v ^ 2 / 2 + g . h + pressure / density = constant
346
 // Bernoulli's principle says:	v ^ 2 / 2 + g . h + pressure / density = constant
347
 // so: v ^ 2 is proportional to number of steps we advance the extruder
347
 // so: v ^ 2 is proportional to number of steps we advance the extruder
348
-//#define ADVANCE
348
+#define ADVANCE
349
 
349
 
350
 #ifdef ADVANCE
350
 #ifdef ADVANCE
351
   #define EXTRUDER_ADVANCE_K .0
351
   #define EXTRUDER_ADVANCE_K .0
352
 
352
 
353
   #define D_FILAMENT 1.75
353
   #define D_FILAMENT 1.75
354
-  #define STEPS_MM_E 836
354
+  #define STEPS_MM_E 1000
355
   #define EXTRUTION_AREA (0.25 * D_FILAMENT * D_FILAMENT * 3.14159)
355
   #define EXTRUTION_AREA (0.25 * D_FILAMENT * D_FILAMENT * 3.14159)
356
   #define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS]/ EXTRUTION_AREA)
356
   #define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS]/ EXTRUTION_AREA)
357
 
357
 
420
 #ifdef FWRETRACT
420
 #ifdef FWRETRACT
421
   #define MIN_RETRACT 0.1                //minimum extruded mm to accept a automatic gcode retraction attempt
421
   #define MIN_RETRACT 0.1                //minimum extruded mm to accept a automatic gcode retraction attempt
422
   #define RETRACT_LENGTH 3               //default retract length (positive mm)
422
   #define RETRACT_LENGTH 3               //default retract length (positive mm)
423
-  #define RETRACT_FEEDRATE 30            //default feedrate for retracting (mm/s)
423
+  #define RETRACT_FEEDRATE 35            //default feedrate for retracting (mm/s)
424
   #define RETRACT_ZLIFT 0                //default retract Z-lift
424
   #define RETRACT_ZLIFT 0                //default retract Z-lift
425
   #define RETRACT_RECOVER_LENGTH 0       //default additional recover length (mm, added to retract length when recovering)
425
   #define RETRACT_RECOVER_LENGTH 0       //default additional recover length (mm, added to retract length when recovering)
426
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
426
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)

Loading…
Cancel
Save