浏览代码

Patch up more outdated config lines

Scott Lahteine 10 年前
父节点
当前提交
dc40a5f6e0

+ 31
- 29
Marlin/Configuration.h 查看文件

97
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
98
 
98
 
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
100
-// #define PS_DEFAULT_OFF
100
+//#define PS_DEFAULT_OFF
101
 
101
 
102
 // @section temperature
102
 // @section temperature
103
 
103
 
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
206
   #define K1 0.95 //smoothing factor within the PID
206
   #define K1 0.95 //smoothing factor within the PID
207
 
207
 
208
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
-// Ultimaker
210
-    #define  DEFAULT_Kp 22.2
211
-    #define  DEFAULT_Ki 1.08
212
-    #define  DEFAULT_Kd 114
213
-
214
-// MakerGear
215
-//    #define  DEFAULT_Kp 7.0
216
-//    #define  DEFAULT_Ki 0.1
217
-//    #define  DEFAULT_Kd 12
218
-
219
-// Mendel Parts V9 on 12V
220
-//    #define  DEFAULT_Kp 63.0
221
-//    #define  DEFAULT_Ki 2.25
222
-//    #define  DEFAULT_Kd 440
208
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
+  // Ultimaker
210
+  #define  DEFAULT_Kp 22.2
211
+  #define  DEFAULT_Ki 1.08
212
+  #define  DEFAULT_Kd 114
213
+
214
+  // MakerGear
215
+  //#define  DEFAULT_Kp 7.0
216
+  //#define  DEFAULT_Ki 0.1
217
+  //#define  DEFAULT_Kd 12
218
+
219
+  // Mendel Parts V9 on 12V
220
+  //#define  DEFAULT_Kp 63.0
221
+  //#define  DEFAULT_Ki 2.25
222
+  //#define  DEFAULT_Kd 440
223
+
223
 #endif // PIDTEMP
224
 #endif // PIDTEMP
224
 
225
 
225
 //===========================================================================
226
 //===========================================================================
247
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 
249
 
249
 #ifdef PIDTEMPBED
250
 #ifdef PIDTEMPBED
250
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
251
 
251
 
252
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
253
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
254
-    #define  DEFAULT_bedKp 10.00
255
-    #define  DEFAULT_bedKi .023
256
-    #define  DEFAULT_bedKd 305.4
252
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
253
+
254
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
255
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
256
+  #define  DEFAULT_bedKp 10.00
257
+  #define  DEFAULT_bedKi .023
258
+  #define  DEFAULT_bedKd 305.4
257
 
259
 
258
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
259
-//from pidautotune
260
-//    #define  DEFAULT_bedKp 97.1
261
-//    #define  DEFAULT_bedKi 1.41
262
-//    #define  DEFAULT_bedKd 1675.16
260
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
261
+  //from pidautotune
262
+  //#define  DEFAULT_bedKp 97.1
263
+  //#define  DEFAULT_bedKi 1.41
264
+  //#define  DEFAULT_bedKd 1675.16
263
 
265
 
264
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
266
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
265
 #endif // PIDTEMPBED
267
 #endif // PIDTEMPBED
266
 
268
 
267
 // @section extruder
269
 // @section extruder
305
 // #define COREXY
307
 // #define COREXY
306
 
308
 
307
 // Enable this option for Toshiba steppers
309
 // Enable this option for Toshiba steppers
308
-// #define CONFIG_STEPPERS_TOSHIBA
310
+//#define CONFIG_STEPPERS_TOSHIBA
309
 
311
 
310
 // @section homing
312
 // @section homing
311
 
313
 

+ 19
- 12
Marlin/configurator/config/Configuration.h 查看文件

97
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
98
 
98
 
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
100
-// #define PS_DEFAULT_OFF
100
+//#define PS_DEFAULT_OFF
101
 
101
 
102
 // @section temperature
102
 // @section temperature
103
 
103
 
247
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
247
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 
248
 
249
 #ifdef PIDTEMPBED
249
 #ifdef PIDTEMPBED
250
+
251
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
252
+
250
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
253
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
251
 //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
254
 //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
252
-    #define  DEFAULT_bedKp 10.00
253
-    #define  DEFAULT_bedKi .023
254
-    #define  DEFAULT_bedKd 305.4
255
+  #define  DEFAULT_bedKp 10.00
256
+  #define  DEFAULT_bedKi .023
257
+  #define  DEFAULT_bedKd 305.4
255
 
258
 
256
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
259
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
257
 //from pidautotune
260
 //from pidautotune
258
-//    #define  DEFAULT_bedKp 97.1
259
-//    #define  DEFAULT_bedKi 1.41
260
-//    #define  DEFAULT_bedKd 1675.16
261
+  //#define  DEFAULT_bedKp 97.1
262
+  //#define  DEFAULT_bedKi 1.41
263
+  //#define  DEFAULT_bedKd 1675.16
261
 
264
 
262
 // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
265
 // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
263
 #endif // PIDTEMPBED
266
 #endif // PIDTEMPBED
303
 // #define COREXY
306
 // #define COREXY
304
 
307
 
305
 // Enable this option for Toshiba steppers
308
 // Enable this option for Toshiba steppers
306
-// #define CONFIG_STEPPERS_TOSHIBA
309
+//#define CONFIG_STEPPERS_TOSHIBA
307
 
310
 
308
 // @section homing
311
 // @section homing
309
 
312
 
496
 
499
 
497
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
500
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
498
                                                                             //Useful to retract a deployable probe.
501
                                                                             //Useful to retract a deployable probe.
499
-                                                                           
502
+
500
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
503
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
501
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
504
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
502
 
505
 
571
 #define DEFAULT_MAX_ACCELERATION      {3000,3000,100,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
574
 #define DEFAULT_MAX_ACCELERATION      {3000,3000,100,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
572
 
575
 
573
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
576
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
574
-#define DEFAULT_RETRACT_ACCELERATION  3000   // E acceleration in mm/s^2 for retracts
577
+#define DEFAULT_RETRACT_ACCELERATION  3000    // E acceleration in mm/s^2 for retracts
575
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
578
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
576
 
579
 
577
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
580
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
626
 // @section lcd
629
 // @section lcd
627
 
630
 
628
 // Define your display language below. Replace (en) with your language code and uncomment.
631
 // Define your display language below. Replace (en) with your language code and uncomment.
629
-
630
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
632
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
631
 // See also language.h
633
 // See also language.h
632
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
634
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
668
 //
670
 //
669
 // ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
671
 // ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
670
 //#define ELB_FULL_GRAPHIC_CONTROLLER
672
 //#define ELB_FULL_GRAPHIC_CONTROLLER
673
+//#define SDCARDDETECTINVERTED
671
 
674
 
672
 // The RepRapDiscount Smart Controller (white PCB)
675
 // The RepRapDiscount Smart Controller (white PCB)
673
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
676
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
704
 
707
 
705
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
708
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
706
 //#define LCD_I2C_VIKI
709
 //#define LCD_I2C_VIKI
710
+  
711
+// SSD1306 OLED generic display support
712
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
713
+//#define U8GLIB_SSD1306
707
 
714
 
708
 // Shift register panels
715
 // Shift register panels
709
 // ---------------------
716
 // ---------------------
710
 // 2 wire Non-latching LCD SR from:
717
 // 2 wire Non-latching LCD SR from:
711
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
718
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
712
-
719
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
713
 //#define SAV_3DLCD
720
 //#define SAV_3DLCD
714
 
721
 
715
 // @section extras
722
 // @section extras

+ 66
- 20
Marlin/example_configurations/Felix/Configuration.h 查看文件

59
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
60
 
60
 
61
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer
62
+// :[2400,9600,19200,38400,57600,115200,250000]
62
 #define BAUDRATE 250000
63
 #define BAUDRATE 250000
63
 
64
 
64
 // This enables the serial port associated to the Bluetooth interface
65
 // This enables the serial port associated to the Bluetooth interface
79
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
80
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
80
 
81
 
81
 // This defines the number of extruders
82
 // This defines the number of extruders
83
+// :[1,2,3,4]
82
 #define EXTRUDERS 1
84
 #define EXTRUDERS 1
83
 
85
 
86
+// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
87
+// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
88
+// For the other hotends it is their distance from the extruder 0 hotend.
89
+//#define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
90
+//#define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
91
+
84
 //// The following define selects which power supply you have. Please choose the one that matches your setup
92
 //// The following define selects which power supply you have. Please choose the one that matches your setup
85
 // 1 = ATX
93
 // 1 = ATX
86
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
94
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
95
+// :{1:'ATX',2:'X-Box 360'}
87
 
96
 
88
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
89
 
98
 
90
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
91
 #define PS_DEFAULT_OFF
100
 #define PS_DEFAULT_OFF
92
 
101
 
102
+// @section temperature
103
+
93
 //===========================================================================
104
 //===========================================================================
94
 //============================= Thermal Settings ============================
105
 //============================= Thermal Settings ============================
95
 //===========================================================================
106
 //===========================================================================
226
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
237
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
227
 
238
 
228
 #ifdef PIDTEMPBED
239
 #ifdef PIDTEMPBED
229
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
230
 
240
 
231
-// Felix Foil Heater
232
-   #define DEFAULT_bedKp 103.37
233
-   #define DEFAULT_bedKi 2.79
234
-   #define DEFAULT_bedKd 956.94
241
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
235
 
242
 
236
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
243
+  // Felix Foil Heater
244
+  #define DEFAULT_bedKp 103.37
245
+  #define DEFAULT_bedKi 2.79
246
+  #define DEFAULT_bedKd 956.94
247
+
248
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
237
 #endif // PIDTEMPBED
249
 #endif // PIDTEMPBED
238
 
250
 
251
+// @section extruder
239
 
252
 
240
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
253
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
241
 //can be software-disabled for whatever purposes by
254
 //can be software-disabled for whatever purposes by
276
 // #define COREXY
289
 // #define COREXY
277
 
290
 
278
 // Enable this option for Toshiba steppers
291
 // Enable this option for Toshiba steppers
279
-// #define CONFIG_STEPPERS_TOSHIBA
292
+//#define CONFIG_STEPPERS_TOSHIBA
280
 
293
 
281
 // @section homing
294
 // @section homing
282
 
295
 
291
   // #define ENDSTOPPULLUP_XMIN
304
   // #define ENDSTOPPULLUP_XMIN
292
   // #define ENDSTOPPULLUP_YMIN
305
   // #define ENDSTOPPULLUP_YMIN
293
   // #define ENDSTOPPULLUP_ZMIN
306
   // #define ENDSTOPPULLUP_ZMIN
307
+  // #define ENDSTOPPULLUP_ZPROBE
294
 #endif
308
 #endif
295
 
309
 
296
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
310
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
304
 #define DISABLE_MAX_ENDSTOPS
318
 #define DISABLE_MAX_ENDSTOPS
305
 //#define DISABLE_MIN_ENDSTOPS
319
 //#define DISABLE_MIN_ENDSTOPS
306
 
320
 
321
+// If you want to enable the Z Probe pin, but disable its use, uncomment the line below.
322
+// This only affects a Z Probe Endstop if you have separate Z min endstop as well and have
323
+// activated Z_PROBE_ENDSTOP below. If you are using the Z Min endstop on your Z Probe,
324
+// this has no effect.
325
+//#define DISABLE_Z_PROBE_ENDSTOP
326
+
307
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
327
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
328
+// :{0:'Low',1:'High'}
308
 #define X_ENABLE_ON 0
329
 #define X_ENABLE_ON 0
309
 #define Y_ENABLE_ON 0
330
 #define Y_ENABLE_ON 0
310
 #define Z_ENABLE_ON 0
331
 #define Z_ENABLE_ON 0
315
 #define DISABLE_X false
336
 #define DISABLE_X false
316
 #define DISABLE_Y false
337
 #define DISABLE_Y false
317
 #define DISABLE_Z false
338
 #define DISABLE_Z false
339
+
340
+// @section extruder
341
+
318
 #define DISABLE_E false // For all extruders
342
 #define DISABLE_E false // For all extruders
319
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
343
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
320
 
344
 
345
+// @section machine
346
+
321
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
347
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
322
 #define INVERT_X_DIR true
348
 #define INVERT_X_DIR true
323
 #define INVERT_Y_DIR true
349
 #define INVERT_Y_DIR true
324
 #define INVERT_Z_DIR true
350
 #define INVERT_Z_DIR true
351
+
352
+// @section extruder
353
+
354
+// For direct drive extruder v9 set to true, for geared extruder set to false.
325
 #define INVERT_E0_DIR false
355
 #define INVERT_E0_DIR false
326
 #define INVERT_E1_DIR false
356
 #define INVERT_E1_DIR false
327
 #define INVERT_E2_DIR false
357
 #define INVERT_E2_DIR false
328
 #define INVERT_E3_DIR false
358
 #define INVERT_E3_DIR false
329
 
359
 
360
+// @section homing
361
+
330
 // ENDSTOP SETTINGS:
362
 // ENDSTOP SETTINGS:
331
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
363
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
364
+// :[-1,1]
332
 #define X_HOME_DIR -1
365
 #define X_HOME_DIR -1
333
 #define Y_HOME_DIR -1
366
 #define Y_HOME_DIR -1
334
 #define Z_HOME_DIR -1
367
 #define Z_HOME_DIR -1
336
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
369
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
337
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
370
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
338
 
371
 
372
+// @section machine
373
+
339
 // Travel limits after homing (units are in mm)
374
 // Travel limits after homing (units are in mm)
340
 #define X_MIN_POS 0
375
 #define X_MIN_POS 0
341
 #define Y_MIN_POS 0
376
 #define Y_MIN_POS 0
356
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
391
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
357
   #define FILAMENT_RUNOUT_SCRIPT "M600"
392
   #define FILAMENT_RUNOUT_SCRIPT "M600"
358
 #endif
393
 #endif
359
-  
394
+
360
 //===========================================================================
395
 //===========================================================================
361
 //=========================== Manual Bed Leveling ===========================
396
 //=========================== Manual Bed Leveling ===========================
362
 //===========================================================================
397
 //===========================================================================
365
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
400
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
366
 
401
 
367
 #ifdef MANUAL_BED_LEVELING
402
 #ifdef MANUAL_BED_LEVELING
368
-  #define MBL_Z_STEP 0.025
403
+  #define MBL_Z_STEP 0.025  // Step size while manually probing Z axis
369
 #endif  // MANUAL_BED_LEVELING
404
 #endif  // MANUAL_BED_LEVELING
370
 
405
 
371
 #ifdef MESH_BED_LEVELING
406
 #ifdef MESH_BED_LEVELING
382
 //============================ Bed Auto Leveling ============================
417
 //============================ Bed Auto Leveling ============================
383
 //===========================================================================
418
 //===========================================================================
384
 
419
 
420
+// @section bedlevel
421
+
385
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
422
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
386
 //#define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
423
 //#define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
387
 
424
 
445
 
482
 
446
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
483
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
447
                                                                             //Useful to retract a deployable probe.
484
                                                                             //Useful to retract a deployable probe.
448
-                                                                           
485
+
449
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
486
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
450
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
487
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
451
 
488
 
490
 #endif // ENABLE_AUTO_BED_LEVELING
527
 #endif // ENABLE_AUTO_BED_LEVELING
491
 
528
 
492
 
529
 
530
+// @section homing
531
+
493
 // The position of the homing switches
532
 // The position of the homing switches
494
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
533
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
495
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
534
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
503
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
542
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
504
 #endif
543
 #endif
505
 
544
 
545
+// @section movement
546
+
506
 /**
547
 /**
507
  * MOVEMENT SETTINGS
548
  * MOVEMENT SETTINGS
508
  */
549
  */
520
 #define DEFAULT_RETRACT_ACCELERATION  5000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
561
 #define DEFAULT_RETRACT_ACCELERATION  5000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
521
 #define DEFAULT_TRAVEL_ACCELERATION   3000 // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
562
 #define DEFAULT_TRAVEL_ACCELERATION   3000 // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
522
 
563
 
523
-// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
524
-// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
525
-// For the other hotends it is their distance from the extruder 0 hotend.
526
-// #define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
527
-// #define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
528
-
529
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
564
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
530
 #define DEFAULT_XYJERK                10   // (mm/sec)
565
 #define DEFAULT_XYJERK                10   // (mm/sec)
531
 #define DEFAULT_ZJERK                 0.3  //0.4   // (mm/sec)
566
 #define DEFAULT_ZJERK                 0.3  //0.4   // (mm/sec)
536
 //============================= Additional Features ===========================
571
 //============================= Additional Features ===========================
537
 //=============================================================================
572
 //=============================================================================
538
 
573
 
574
+// @section more
575
+
539
 // Custom M code points
576
 // Custom M code points
540
 #define CUSTOM_M_CODES
577
 #define CUSTOM_M_CODES
541
 #ifdef CUSTOM_M_CODES
578
 #ifdef CUSTOM_M_CODES
546
   #endif
583
   #endif
547
 #endif
584
 #endif
548
 
585
 
586
+// @section extras
549
 
587
 
550
 // EEPROM
588
 // EEPROM
551
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
589
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
557
 
595
 
558
 #ifdef EEPROM_SETTINGS
596
 #ifdef EEPROM_SETTINGS
559
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
597
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
560
-  #define EEPROM_CHITCHAT // please keep turned on if you can.
598
+  #define EEPROM_CHITCHAT // Please keep turned on if you can.
561
 #endif
599
 #endif
562
 
600
 
601
+// @section temperature
602
+
563
 // Preheat Constants
603
 // Preheat Constants
564
 #define PLA_PREHEAT_HOTEND_TEMP 180
604
 #define PLA_PREHEAT_HOTEND_TEMP 180
565
 #define PLA_PREHEAT_HPB_TEMP 70
605
 #define PLA_PREHEAT_HPB_TEMP 70
570
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
610
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
571
 
611
 
572
 //==============================LCD and SD support=============================
612
 //==============================LCD and SD support=============================
613
+// @section lcd
573
 
614
 
574
 // Define your display language below. Replace (en) with your language code and uncomment.
615
 // Define your display language below. Replace (en) with your language code and uncomment.
575
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
616
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
595
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
636
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
596
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
637
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
597
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
638
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
598
-
599
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
639
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
600
 // http://reprap.org/wiki/PanelOne
640
 // http://reprap.org/wiki/PanelOne
601
 //#define PANEL_ONE
641
 //#define PANEL_ONE
651
 
691
 
652
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
692
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
653
 //#define LCD_I2C_VIKI
693
 //#define LCD_I2C_VIKI
694
+  
695
+// SSD1306 OLED generic display support
696
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
697
+//#define U8GLIB_SSD1306
654
 
698
 
655
 // Shift register panels
699
 // Shift register panels
656
 // ---------------------
700
 // ---------------------
657
 // 2 wire Non-latching LCD SR from:
701
 // 2 wire Non-latching LCD SR from:
658
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
702
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
659
-
703
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
660
 //#define SAV_3DLCD
704
 //#define SAV_3DLCD
661
 
705
 
706
+// @section extras
707
+
662
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
708
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
663
 #define FAST_PWM_FAN
709
 #define FAST_PWM_FAN
664
 
710
 
682
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
728
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
683
 // #define PHOTOGRAPH_PIN     23
729
 // #define PHOTOGRAPH_PIN     23
684
 
730
 
685
-// SF send wrong arc g-codes when using Arc Point as fillet procedure
731
+// SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
686
 //#define SF_ARC_FIX
732
 //#define SF_ARC_FIX
687
 
733
 
688
 // Support for the BariCUDA Paste Extruder.
734
 // Support for the BariCUDA Paste Extruder.

+ 1
- 1
Marlin/example_configurations/Felix/Configuration_DUAL.h 查看文件

274
 // #define COREXY
274
 // #define COREXY
275
 
275
 
276
 // Enable this option for Toshiba steppers
276
 // Enable this option for Toshiba steppers
277
-// #define CONFIG_STEPPERS_TOSHIBA
277
+//#define CONFIG_STEPPERS_TOSHIBA
278
 
278
 
279
 // @section homing
279
 // @section homing
280
 
280
 

+ 93
- 45
Marlin/example_configurations/Hephestos/Configuration.h 查看文件

59
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
60
 
60
 
61
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer
62
+// :[2400,9600,19200,38400,57600,115200,250000]
62
 #define BAUDRATE 115200
63
 #define BAUDRATE 115200
63
 
64
 
64
 // This enables the serial port associated to the Bluetooth interface
65
 // This enables the serial port associated to the Bluetooth interface
66
 
67
 
67
 // The following define selects which electronics board you have.
68
 // The following define selects which electronics board you have.
68
 // Please choose the name from boards.h that matches your setup
69
 // Please choose the name from boards.h that matches your setup
69
-#define MOTHERBOARD BOARD_RAMPS_13_EFB
70
+#ifndef MOTHERBOARD
71
+  #define MOTHERBOARD BOARD_RAMPS_13_EFB
72
+#endif
70
 
73
 
71
 // Optional custom name for your RepStrap or other custom machine
74
 // Optional custom name for your RepStrap or other custom machine
72
 // Displayed in the LCD "Ready" message
75
 // Displayed in the LCD "Ready" message
80
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
83
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
81
 
84
 
82
 // This defines the number of extruders
85
 // This defines the number of extruders
86
+// :[1,2,3,4]
83
 #define EXTRUDERS 1
87
 #define EXTRUDERS 1
84
 
88
 
89
+// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
90
+// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
91
+// For the other hotends it is their distance from the extruder 0 hotend.
92
+//#define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
93
+//#define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
94
+
85
 //// The following define selects which power supply you have. Please choose the one that matches your setup
95
 //// The following define selects which power supply you have. Please choose the one that matches your setup
86
 // 1 = ATX
96
 // 1 = ATX
87
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
97
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
98
+// :{1:'ATX',2:'X-Box 360'}
88
 
99
 
89
 #define POWER_SUPPLY 1
100
 #define POWER_SUPPLY 1
90
 
101
 
91
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
102
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
92
-// #define PS_DEFAULT_OFF
103
+//#define PS_DEFAULT_OFF
104
+
105
+// @section temperature
93
 
106
 
94
 //===========================================================================
107
 //===========================================================================
95
 //============================= Thermal Settings ============================
108
 //============================= Thermal Settings ============================
195
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
208
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
196
   #define K1 0.95 //smoothing factor within the PID
209
   #define K1 0.95 //smoothing factor within the PID
197
 
210
 
198
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
199
-// Ultimaker
200
-//  #define  DEFAULT_Kp 22.2
201
-//  #define  DEFAULT_Ki 1.08
202
-//  #define  DEFAULT_Kd 114
211
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
212
+  // Ultimaker
213
+  //#define  DEFAULT_Kp 22.2
214
+  //#define  DEFAULT_Ki 1.08
215
+  //#define  DEFAULT_Kd 114
203
 
216
 
204
-// MakerGear
205
-//    #define  DEFAULT_Kp 7.0
206
-//    #define  DEFAULT_Ki 0.1
207
-//    #define  DEFAULT_Kd 12
217
+  // MakerGear
218
+  //#define  DEFAULT_Kp 7.0
219
+  //#define  DEFAULT_Ki 0.1
220
+  //#define  DEFAULT_Kd 12
208
 
221
 
209
-// Mendel Parts V9 on 12V
210
-//    #define  DEFAULT_Kp 63.0
211
-//    #define  DEFAULT_Ki 2.25
212
-//    #define  DEFAULT_Kd 440
222
+  // Mendel Parts V9 on 12V
223
+  //#define  DEFAULT_Kp 63.0
224
+  //#define  DEFAULT_Ki 2.25
225
+  //#define  DEFAULT_Kd 440
213
 
226
 
214
-// Hephestos (i3)
215
-    #define  DEFAULT_Kp 23.05
216
-    #define  DEFAULT_Ki 2.00
217
-    #define  DEFAULT_Kd 66.47
227
+  // Hephestos (i3)
228
+  #define  DEFAULT_Kp 23.05
229
+  #define  DEFAULT_Ki 2.00
230
+  #define  DEFAULT_Kd 66.47
218
 
231
 
219
 #endif // PIDTEMP
232
 #endif // PIDTEMP
220
 
233
 
243
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
256
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
244
 
257
 
245
 #ifdef PIDTEMPBED
258
 #ifdef PIDTEMPBED
246
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
247
 
259
 
248
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
249
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
250
-    #define  DEFAULT_bedKp 10.00
251
-    #define  DEFAULT_bedKi .023
252
-    #define  DEFAULT_bedKd 305.4
260
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
261
+
262
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
263
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
264
+  #define  DEFAULT_bedKp 10.00
265
+  #define  DEFAULT_bedKi .023
266
+  #define  DEFAULT_bedKd 305.4
253
 
267
 
254
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
255
-//from pidautotune
256
-//    #define  DEFAULT_bedKp 97.1
257
-//    #define  DEFAULT_bedKi 1.41
258
-//    #define  DEFAULT_bedKd 1675.16
268
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
269
+  //from pidautotune
270
+  //#define  DEFAULT_bedKp 97.1
271
+  //#define  DEFAULT_bedKi 1.41
272
+  //#define  DEFAULT_bedKd 1675.16
259
 
273
 
260
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
274
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
261
 #endif // PIDTEMPBED
275
 #endif // PIDTEMPBED
262
 
276
 
277
+// @section extruder
263
 
278
 
264
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
279
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
265
 //can be software-disabled for whatever purposes by
280
 //can be software-disabled for whatever purposes by
300
 // #define COREXY
315
 // #define COREXY
301
 
316
 
302
 // Enable this option for Toshiba steppers
317
 // Enable this option for Toshiba steppers
303
-// #define CONFIG_STEPPERS_TOSHIBA
318
+//#define CONFIG_STEPPERS_TOSHIBA
304
 
319
 
305
 // @section homing
320
 // @section homing
306
 
321
 
315
   // #define ENDSTOPPULLUP_XMIN
330
   // #define ENDSTOPPULLUP_XMIN
316
   // #define ENDSTOPPULLUP_YMIN
331
   // #define ENDSTOPPULLUP_YMIN
317
   // #define ENDSTOPPULLUP_ZMIN
332
   // #define ENDSTOPPULLUP_ZMIN
333
+  // #define ENDSTOPPULLUP_ZPROBE
318
 #endif
334
 #endif
319
 
335
 
320
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
336
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
328
 //#define DISABLE_MAX_ENDSTOPS
344
 //#define DISABLE_MAX_ENDSTOPS
329
 //#define DISABLE_MIN_ENDSTOPS
345
 //#define DISABLE_MIN_ENDSTOPS
330
 
346
 
347
+// If you want to enable the Z Probe pin, but disable its use, uncomment the line below.
348
+// This only affects a Z Probe Endstop if you have separate Z min endstop as well and have
349
+// activated Z_PROBE_ENDSTOP below. If you are using the Z Min endstop on your Z Probe,
350
+// this has no effect.
351
+//#define DISABLE_Z_PROBE_ENDSTOP
352
+
331
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
353
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
354
+// :{0:'Low',1:'High'}
332
 #define X_ENABLE_ON 0
355
 #define X_ENABLE_ON 0
333
 #define Y_ENABLE_ON 0
356
 #define Y_ENABLE_ON 0
334
 #define Z_ENABLE_ON 0
357
 #define Z_ENABLE_ON 0
339
 #define DISABLE_X false
362
 #define DISABLE_X false
340
 #define DISABLE_Y false
363
 #define DISABLE_Y false
341
 #define DISABLE_Z false
364
 #define DISABLE_Z false
365
+
366
+// @section extruder
367
+
342
 #define DISABLE_E false // For all extruders
368
 #define DISABLE_E false // For all extruders
343
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
369
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
344
 
370
 
371
+// @section machine
372
+
345
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
373
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
346
 #define INVERT_X_DIR true
374
 #define INVERT_X_DIR true
347
 #define INVERT_Y_DIR false
375
 #define INVERT_Y_DIR false
348
 #define INVERT_Z_DIR true
376
 #define INVERT_Z_DIR true
377
+
378
+// @section extruder
379
+
380
+// For direct drive extruder v9 set to true, for geared extruder set to false.
349
 #define INVERT_E0_DIR false
381
 #define INVERT_E0_DIR false
350
 #define INVERT_E1_DIR false
382
 #define INVERT_E1_DIR false
351
 #define INVERT_E2_DIR false
383
 #define INVERT_E2_DIR false
352
 #define INVERT_E3_DIR false
384
 #define INVERT_E3_DIR false
353
 
385
 
386
+// @section homing
387
+
354
 // ENDSTOP SETTINGS:
388
 // ENDSTOP SETTINGS:
355
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
389
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
390
+// :[-1,1]
356
 #define X_HOME_DIR -1
391
 #define X_HOME_DIR -1
357
 #define Y_HOME_DIR -1
392
 #define Y_HOME_DIR -1
358
 #define Z_HOME_DIR -1
393
 #define Z_HOME_DIR -1
360
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
395
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
361
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
396
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
362
 
397
 
398
+// @section machine
399
+
363
 // Travel limits after homing (units are in mm)
400
 // Travel limits after homing (units are in mm)
364
 #define X_MIN_POS 0
401
 #define X_MIN_POS 0
365
 #define Y_MIN_POS 0
402
 #define Y_MIN_POS 0
380
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
417
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
381
   #define FILAMENT_RUNOUT_SCRIPT "M600"
418
   #define FILAMENT_RUNOUT_SCRIPT "M600"
382
 #endif
419
 #endif
383
-  
420
+
384
 //===========================================================================
421
 //===========================================================================
385
 //=========================== Manual Bed Leveling ===========================
422
 //=========================== Manual Bed Leveling ===========================
386
 //===========================================================================
423
 //===========================================================================
389
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
426
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
390
 
427
 
391
 #ifdef MANUAL_BED_LEVELING
428
 #ifdef MANUAL_BED_LEVELING
392
-  #define MBL_Z_STEP 0.025
429
+  #define MBL_Z_STEP 0.025  // Step size while manually probing Z axis
393
 #endif  // MANUAL_BED_LEVELING
430
 #endif  // MANUAL_BED_LEVELING
394
 
431
 
395
 #ifdef MESH_BED_LEVELING
432
 #ifdef MESH_BED_LEVELING
406
 //============================ Bed Auto Leveling ============================
443
 //============================ Bed Auto Leveling ============================
407
 //===========================================================================
444
 //===========================================================================
408
 
445
 
446
+// @section bedlevel
447
+
409
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
448
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
410
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
449
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
411
 
450
 
469
 
508
 
470
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
509
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
471
                                                                             //Useful to retract a deployable probe.
510
                                                                             //Useful to retract a deployable probe.
472
-                                                                           
511
+
473
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
512
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
474
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
513
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
475
 
514
 
514
 #endif // ENABLE_AUTO_BED_LEVELING
553
 #endif // ENABLE_AUTO_BED_LEVELING
515
 
554
 
516
 
555
 
556
+// @section homing
557
+
517
 // The position of the homing switches
558
 // The position of the homing switches
518
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
559
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
519
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
560
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
527
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
568
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
528
 #endif
569
 #endif
529
 
570
 
571
+// @section movement
572
+
530
 /**
573
 /**
531
  * MOVEMENT SETTINGS
574
  * MOVEMENT SETTINGS
532
  */
575
  */
543
 #define DEFAULT_RETRACT_ACCELERATION  1000   // E acceleration in mm/s^2 for retracts
586
 #define DEFAULT_RETRACT_ACCELERATION  1000   // E acceleration in mm/s^2 for retracts
544
 #define DEFAULT_TRAVEL_ACCELERATION   1000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
587
 #define DEFAULT_TRAVEL_ACCELERATION   1000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
545
 
588
 
546
-// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
547
-// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
548
-// For the other hotends it is their distance from the extruder 0 hotend.
549
-// #define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
550
-// #define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
551
-
552
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
589
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
553
 #define DEFAULT_XYJERK                10.0    // (mm/sec)
590
 #define DEFAULT_XYJERK                10.0    // (mm/sec)
554
 #define DEFAULT_ZJERK                 0.4     // (mm/sec)
591
 #define DEFAULT_ZJERK                 0.4     // (mm/sec)
559
 //============================= Additional Features ===========================
596
 //============================= Additional Features ===========================
560
 //=============================================================================
597
 //=============================================================================
561
 
598
 
599
+// @section more
600
+
562
 // Custom M code points
601
 // Custom M code points
563
 #define CUSTOM_M_CODES
602
 #define CUSTOM_M_CODES
564
 #ifdef CUSTOM_M_CODES
603
 #ifdef CUSTOM_M_CODES
569
   #endif
608
   #endif
570
 #endif
609
 #endif
571
 
610
 
611
+// @section extras
572
 
612
 
573
 // EEPROM
613
 // EEPROM
574
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
614
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
580
 
620
 
581
 #ifdef EEPROM_SETTINGS
621
 #ifdef EEPROM_SETTINGS
582
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
622
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
583
-  #define EEPROM_CHITCHAT // please keep turned on if you can.
623
+  #define EEPROM_CHITCHAT // Please keep turned on if you can.
584
 #endif
624
 #endif
585
 
625
 
626
+// @section temperature
627
+
586
 // Preheat Constants
628
 // Preheat Constants
587
 #define PLA_PREHEAT_HOTEND_TEMP 200
629
 #define PLA_PREHEAT_HOTEND_TEMP 200
588
 #define PLA_PREHEAT_HPB_TEMP 0
630
 #define PLA_PREHEAT_HPB_TEMP 0
593
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
635
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
594
 
636
 
595
 //==============================LCD and SD support=============================
637
 //==============================LCD and SD support=============================
638
+// @section lcd
596
 
639
 
597
 // Define your display language below. Replace (en) with your language code and uncomment.
640
 // Define your display language below. Replace (en) with your language code and uncomment.
598
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
641
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
618
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
661
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
619
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
662
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
620
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
663
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
621
-
622
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
664
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
623
 // http://reprap.org/wiki/PanelOne
665
 // http://reprap.org/wiki/PanelOne
624
 //#define PANEL_ONE
666
 //#define PANEL_ONE
674
 
716
 
675
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
717
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
676
 //#define LCD_I2C_VIKI
718
 //#define LCD_I2C_VIKI
719
+  
720
+// SSD1306 OLED generic display support
721
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
722
+//#define U8GLIB_SSD1306
677
 
723
 
678
 // Shift register panels
724
 // Shift register panels
679
 // ---------------------
725
 // ---------------------
680
 // 2 wire Non-latching LCD SR from:
726
 // 2 wire Non-latching LCD SR from:
681
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
727
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
682
-
728
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
683
 //#define SAV_3DLCD
729
 //#define SAV_3DLCD
684
 
730
 
731
+// @section extras
732
+
685
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
733
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
686
 //#define FAST_PWM_FAN
734
 //#define FAST_PWM_FAN
687
 
735
 
705
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
753
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
706
 // #define PHOTOGRAPH_PIN     23
754
 // #define PHOTOGRAPH_PIN     23
707
 
755
 
708
-// SF send wrong arc g-codes when using Arc Point as fillet procedure
756
+// SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
709
 //#define SF_ARC_FIX
757
 //#define SF_ARC_FIX
710
 
758
 
711
 // Support for the BariCUDA Paste Extruder.
759
 // Support for the BariCUDA Paste Extruder.

+ 53
- 49
Marlin/example_configurations/K8200/Configuration.h 查看文件

102
 #define POWER_SUPPLY 1
102
 #define POWER_SUPPLY 1
103
 
103
 
104
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
104
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
105
-// #define PS_DEFAULT_OFF
105
+//#define PS_DEFAULT_OFF
106
 
106
 
107
 // @section temperature
107
 // @section temperature
108
 
108
 
210
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
210
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
211
   #define K1 0.95 //smoothing factor within the PID
211
   #define K1 0.95 //smoothing factor within the PID
212
 
212
 
213
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
214
-// Ultimaker
215
-//    #define  DEFAULT_Kp 22.2
216
-//    #define  DEFAULT_Ki 1.08
217
-//    #define  DEFAULT_Kd 114
218
-
219
-// MakerGear
220
-//    #define  DEFAULT_Kp 7.0
221
-//    #define  DEFAULT_Ki 0.1
222
-//    #define  DEFAULT_Kd 12
223
-
224
-// Mendel Parts V9 on 12V
225
-//    #define  DEFAULT_Kp 63.0
226
-//    #define  DEFAULT_Ki 2.25
227
-//    #define  DEFAULT_Kd 440
228
-
229
-// Vellemann K8200 Extruder - calculated with PID Autotune and tested
230
-   #define  DEFAULT_Kp 24.29
231
-   #define  DEFAULT_Ki 1.58
232
-   #define  DEFAULT_Kd 93.51
213
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
214
+  // Ultimaker
215
+  //#define  DEFAULT_Kp 22.2
216
+  //#define  DEFAULT_Ki 1.08
217
+  //#define  DEFAULT_Kd 114
218
+
219
+  // MakerGear
220
+  //#define  DEFAULT_Kp 7.0
221
+  //#define  DEFAULT_Ki 0.1
222
+  //#define  DEFAULT_Kd 12
223
+
224
+  // Mendel Parts V9 on 12V
225
+  //#define  DEFAULT_Kp 63.0
226
+  //#define  DEFAULT_Ki 2.25
227
+  //#define  DEFAULT_Kd 440
228
+
229
+  // Vellemann K8200 Extruder - calculated with PID Autotune and tested
230
+  #define  DEFAULT_Kp 24.29
231
+  #define  DEFAULT_Ki 1.58
232
+  #define  DEFAULT_Kd 93.51
233
+
233
 #endif // PIDTEMP
234
 #endif // PIDTEMP
234
 
235
 
235
 //===========================================================================
236
 //===========================================================================
257
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
258
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
258
 
259
 
259
 #ifdef PIDTEMPBED
260
 #ifdef PIDTEMPBED
260
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
261
-
262
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
263
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
264
-//    #define  DEFAULT_bedKp 10.00
265
-//    #define  DEFAULT_bedKi .023
266
-//    #define  DEFAULT_bedKd 305.4
267
-
268
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
269
-//from pidautotune
270
-//    #define  DEFAULT_bedKp 97.1
271
-//    #define  DEFAULT_bedKi 1.41
272
-//    #define  DEFAULT_bedKd 1675.16
273
-
274
-//Vellemann K8200 PCB heatbed with standard PCU at 60 degreesC - calculated with PID Autotune and tested
275
-//from pidautotune
276
-   #define  DEFAULT_bedKp 341.88
277
-   #define  DEFAULT_bedKi 25.32
278
-   #define  DEFAULT_bedKd 1153.89
279
-
280
-   // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
261
+
262
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
263
+
264
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
265
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
266
+  //#define  DEFAULT_bedKp 10.00
267
+  //#define  DEFAULT_bedKi .023
268
+  //#define  DEFAULT_bedKd 305.4
269
+
270
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
271
+  //from pidautotune
272
+  //#define  DEFAULT_bedKp 97.1
273
+  //#define  DEFAULT_bedKi 1.41
274
+  //#define  DEFAULT_bedKd 1675.16
275
+
276
+  //Vellemann K8200 PCB heatbed with standard PCU at 60 degreesC - calculated with PID Autotune and tested
277
+  //from pidautotune
278
+  #define  DEFAULT_bedKp 341.88
279
+  #define  DEFAULT_bedKi 25.32
280
+  #define  DEFAULT_bedKd 1153.89
281
+
282
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
281
 #endif // PIDTEMPBED
283
 #endif // PIDTEMPBED
282
 
284
 
283
 // @section extruder
285
 // @section extruder
321
 // #define COREXY
323
 // #define COREXY
322
 
324
 
323
 // Enable this option for Toshiba steppers
325
 // Enable this option for Toshiba steppers
324
-// #define CONFIG_STEPPERS_TOSHIBA
326
+//#define CONFIG_STEPPERS_TOSHIBA
325
 
327
 
326
 // @section homing
328
 // @section homing
327
 
329
 
514
 
516
 
515
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
517
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
516
                                                                             //Useful to retract a deployable probe.
518
                                                                             //Useful to retract a deployable probe.
517
-                                                                           
519
+
518
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
520
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
519
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
521
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
520
 
522
 
589
 #define DEFAULT_MAX_ACCELERATION      {9000,9000,100,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
591
 #define DEFAULT_MAX_ACCELERATION      {9000,9000,100,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
590
 
592
 
591
 #define DEFAULT_ACCELERATION          1000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
593
 #define DEFAULT_ACCELERATION          1000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
592
-#define DEFAULT_RETRACT_ACCELERATION  1000   // E acceleration in mm/s^2 for retracts
594
+#define DEFAULT_RETRACT_ACCELERATION  1000    // E acceleration in mm/s^2 for retracts
593
 #define DEFAULT_TRAVEL_ACCELERATION   1000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
595
 #define DEFAULT_TRAVEL_ACCELERATION   1000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
594
 
596
 
595
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
597
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
626
 
628
 
627
 #ifdef EEPROM_SETTINGS
629
 #ifdef EEPROM_SETTINGS
628
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
630
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
629
-  #define EEPROM_CHITCHAT // please keep turned on if you can.
631
+  #define EEPROM_CHITCHAT // Please keep turned on if you can.
630
 #endif
632
 #endif
631
 
633
 
632
-
633
 // @section temperature
634
 // @section temperature
634
 
635
 
635
 // Preheat Constants
636
 // Preheat Constants
668
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
669
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
669
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
670
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
670
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
671
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
671
-
672
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
672
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
673
 // http://reprap.org/wiki/PanelOne
673
 // http://reprap.org/wiki/PanelOne
674
 //#define PANEL_ONE
674
 //#define PANEL_ONE
724
 
724
 
725
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
725
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
726
 //#define LCD_I2C_VIKI
726
 //#define LCD_I2C_VIKI
727
+  
728
+// SSD1306 OLED generic display support
729
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
730
+//#define U8GLIB_SSD1306
727
 
731
 
728
 // Shift register panels
732
 // Shift register panels
729
 // ---------------------
733
 // ---------------------
730
 // 2 wire Non-latching LCD SR from:
734
 // 2 wire Non-latching LCD SR from:
731
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
735
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
732
-
736
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
733
 //#define SAV_3DLCD
737
 //#define SAV_3DLCD
734
 
738
 
735
 // @section extras
739
 // @section extras

+ 40
- 35
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h 查看文件

97
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
98
 
98
 
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
100
-// #define PS_DEFAULT_OFF
100
+//#define PS_DEFAULT_OFF
101
 
101
 
102
 // @section temperature
102
 // @section temperature
103
 
103
 
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
206
   #define K1 0.95 //smoothing factor within the PID
206
   #define K1 0.95 //smoothing factor within the PID
207
 
207
 
208
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
-// Ultimaker
210
-    #define  DEFAULT_Kp 22.2
211
-    #define  DEFAULT_Ki 1.08
212
-    #define  DEFAULT_Kd 114
213
-
214
-// MakerGear
215
-//    #define  DEFAULT_Kp 7.0
216
-//    #define  DEFAULT_Ki 0.1
217
-//    #define  DEFAULT_Kd 12
218
-
219
-// Mendel Parts V9 on 12V
220
-//    #define  DEFAULT_Kp 63.0
221
-//    #define  DEFAULT_Ki 2.25
222
-//    #define  DEFAULT_Kd 440
208
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
+  // Ultimaker
210
+  #define  DEFAULT_Kp 22.2
211
+  #define  DEFAULT_Ki 1.08
212
+  #define  DEFAULT_Kd 114
213
+
214
+  // MakerGear
215
+  //#define  DEFAULT_Kp 7.0
216
+  //#define  DEFAULT_Ki 0.1
217
+  //#define  DEFAULT_Kd 12
218
+
219
+  // Mendel Parts V9 on 12V
220
+  //#define  DEFAULT_Kp 63.0
221
+  //#define  DEFAULT_Ki 2.25
222
+  //#define  DEFAULT_Kd 440
223
+
223
 #endif // PIDTEMP
224
 #endif // PIDTEMP
224
 
225
 
225
 //===========================================================================
226
 //===========================================================================
247
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 
249
 
249
 #ifdef PIDTEMPBED
250
 #ifdef PIDTEMPBED
250
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
251
 
251
 
252
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
253
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
254
-    #define  DEFAULT_bedKp 10.00
255
-    #define  DEFAULT_bedKi .023
256
-    #define  DEFAULT_bedKd 305.4
252
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
253
+
254
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
255
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
256
+  #define  DEFAULT_bedKp 10.00
257
+  #define  DEFAULT_bedKi .023
258
+  #define  DEFAULT_bedKd 305.4
257
 
259
 
258
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
259
-//from pidautotune
260
-//    #define  DEFAULT_bedKp 97.1
261
-//    #define  DEFAULT_bedKi 1.41
262
-//    #define  DEFAULT_bedKd 1675.16
260
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
261
+  //from pidautotune
262
+  //#define  DEFAULT_bedKp 97.1
263
+  //#define  DEFAULT_bedKi 1.41
264
+  //#define  DEFAULT_bedKd 1675.16
263
 
265
 
264
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
266
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
265
 #endif // PIDTEMPBED
267
 #endif // PIDTEMPBED
266
 
268
 
267
 // @section extruder
269
 // @section extruder
305
 // #define COREXY
307
 // #define COREXY
306
 
308
 
307
 // Enable this option for Toshiba steppers
309
 // Enable this option for Toshiba steppers
308
-// #define CONFIG_STEPPERS_TOSHIBA
310
+//#define CONFIG_STEPPERS_TOSHIBA
309
 
311
 
310
 // @section homing
312
 // @section homing
311
 
313
 
498
 
500
 
499
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
501
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
500
                                                                             //Useful to retract a deployable probe.
502
                                                                             //Useful to retract a deployable probe.
501
-                                                                           
503
+
502
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
504
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
503
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
505
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
504
 
506
 
573
 #define DEFAULT_MAX_ACCELERATION      {3000,3000,100,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
575
 #define DEFAULT_MAX_ACCELERATION      {3000,3000,100,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
574
 
576
 
575
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
577
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
576
-#define DEFAULT_RETRACT_ACCELERATION  3000   // E acceleration in mm/s^2 for retracts
578
+#define DEFAULT_RETRACT_ACCELERATION  3000    // E acceleration in mm/s^2 for retracts
577
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
579
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
578
 
580
 
579
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
581
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
610
 
612
 
611
 #ifdef EEPROM_SETTINGS
613
 #ifdef EEPROM_SETTINGS
612
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
614
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
613
-  #define EEPROM_CHITCHAT // please keep turned on if you can.
615
+  #define EEPROM_CHITCHAT // Please keep turned on if you can.
614
 #endif
616
 #endif
615
 
617
 
616
-
617
 // @section temperature
618
 // @section temperature
618
 
619
 
619
 // Preheat Constants
620
 // Preheat Constants
629
 // @section lcd
630
 // @section lcd
630
 
631
 
631
 // Define your display language below. Replace (en) with your language code and uncomment.
632
 // Define your display language below. Replace (en) with your language code and uncomment.
632
-// en, pl, fr, de, es, ru, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
633
+// en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
633
 // See also language.h
634
 // See also language.h
634
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
635
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
635
 
636
 
707
 
708
 
708
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
709
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
709
 //#define LCD_I2C_VIKI
710
 //#define LCD_I2C_VIKI
711
+  
712
+// SSD1306 OLED generic display support
713
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
714
+//#define U8GLIB_SSD1306
710
 
715
 
711
 // Shift register panels
716
 // Shift register panels
712
 // ---------------------
717
 // ---------------------
713
 // 2 wire Non-latching LCD SR from:
718
 // 2 wire Non-latching LCD SR from:
714
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
719
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
715
-
720
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
716
 //#define SAV_3DLCD
721
 //#define SAV_3DLCD
717
 
722
 
718
 // @section extras
723
 // @section extras

+ 104
- 58
Marlin/example_configurations/SCARA/Configuration.h 查看文件

84
 #define SERIAL_PORT 0
84
 #define SERIAL_PORT 0
85
 
85
 
86
 // This determines the communication speed of the printer
86
 // This determines the communication speed of the printer
87
+// :[2400,9600,19200,38400,57600,115200,250000]
87
 #define BAUDRATE 250000
88
 #define BAUDRATE 250000
88
 
89
 
89
 // This enables the serial port associated to the Bluetooth interface
90
 // This enables the serial port associated to the Bluetooth interface
104
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
105
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
105
 
106
 
106
 // This defines the number of extruders
107
 // This defines the number of extruders
108
+// :[1,2,3,4]
107
 #define EXTRUDERS 1
109
 #define EXTRUDERS 1
108
 
110
 
111
+// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
112
+// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
113
+// For the other hotends it is their distance from the extruder 0 hotend.
114
+//#define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
115
+//#define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
116
+
109
 //// The following define selects which power supply you have. Please choose the one that matches your setup
117
 //// The following define selects which power supply you have. Please choose the one that matches your setup
110
 // 1 = ATX
118
 // 1 = ATX
111
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
119
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
120
+// :{1:'ATX',2:'X-Box 360'}
112
 
121
 
113
 #define POWER_SUPPLY 1
122
 #define POWER_SUPPLY 1
114
 
123
 
115
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
124
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
116
-// #define PS_DEFAULT_OFF
125
+//#define PS_DEFAULT_OFF
126
+
127
+// @section temperature
117
 
128
 
118
 //===========================================================================
129
 //===========================================================================
119
 //============================= Thermal Settings ============================
130
 //============================= Thermal Settings ============================
219
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
230
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
220
   #define K1 0.95 //smoothing factor within the PID
231
   #define K1 0.95 //smoothing factor within the PID
221
 
232
 
222
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
223
-// Ultimaker
224
-//    #define  DEFAULT_Kp 22.2
225
-//    #define  DEFAULT_Ki 1.08
226
-//    #define  DEFAULT_Kd 114
227
-
228
-// MakerGear
229
-//    #define  DEFAULT_Kp 7.0
230
-//    #define  DEFAULT_Ki 0.1
231
-//    #define  DEFAULT_Kd 12
232
-
233
-// Mendel Parts V9 on 12V
234
-//    #define  DEFAULT_Kp 63.0
235
-//    #define  DEFAULT_Ki 2.25
236
-//    #define  DEFAULT_Kd 440
233
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
234
+  // Ultimaker
235
+  //#define  DEFAULT_Kp 22.2
236
+  //#define  DEFAULT_Ki 1.08
237
+  //#define  DEFAULT_Kd 114
238
+
239
+  // MakerGear
240
+  //#define  DEFAULT_Kp 7.0
241
+  //#define  DEFAULT_Ki 0.1
242
+  //#define  DEFAULT_Kd 12
243
+
244
+  // Mendel Parts V9 on 12V
245
+  //#define  DEFAULT_Kp 63.0
246
+  //#define  DEFAULT_Ki 2.25
247
+  //#define  DEFAULT_Kd 440
237
   
248
   
238
-// Jhead MK5: From Autotune
239
-//    #define  DEFAULT_Kp 20.92
240
-//    #define  DEFAULT_Ki 1.51
241
-//    #define  DEFAULT_Kd 72.34
249
+  // Jhead MK5: From Autotune
250
+  //#define  DEFAULT_Kp 20.92
251
+  //#define  DEFAULT_Ki 1.51
252
+  //#define  DEFAULT_Kd 72.34
242
     
253
     
243
-// Merlin Hotend: From Autotune
244
-    #define  DEFAULT_Kp 24.5
245
-    #define  DEFAULT_Ki 1.72
246
-    #define  DEFAULT_Kd 87.73
254
+  // Merlin Hotend: From Autotune
255
+  #define  DEFAULT_Kp 24.5
256
+  #define  DEFAULT_Ki 1.72
257
+  #define  DEFAULT_Kd 87.73
247
 
258
 
248
 #endif // PIDTEMP
259
 #endif // PIDTEMP
249
 
260
 
272
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
283
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
273
 
284
 
274
 #ifdef PIDTEMPBED
285
 #ifdef PIDTEMPBED
275
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
276
-
277
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
278
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
279
-//    #define  DEFAULT_bedKp 10.00
280
-//    #define  DEFAULT_bedKi .023
281
-//    #define  DEFAULT_bedKd 305.4
282
-
283
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
284
-//from pidautotune
285
-//    #define  DEFAULT_bedKp 97.1
286
-//    #define  DEFAULT_bedKi 1.41
287
-//    #define  DEFAULT_bedKd 1675.16
288
-
289
-//12v Heatbed Mk3 12V in parallel
290
-//from pidautotune
291
-    #define  DEFAULT_bedKp 630.14
292
-    #define  DEFAULT_bedKi 121.71
293
-    #define  DEFAULT_bedKd 815.64
286
+
287
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
288
+
289
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
290
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
291
+  //#define  DEFAULT_bedKp 10.00
292
+  //#define  DEFAULT_bedKi .023
293
+  //#define  DEFAULT_bedKd 305.4
294
+
295
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
296
+  //from pidautotune
297
+  //#define  DEFAULT_bedKp 97.1
298
+  //#define  DEFAULT_bedKi 1.41
299
+  //#define  DEFAULT_bedKd 1675.16
300
+
301
+  //12v Heatbed Mk3 12V in parallel
302
+  //from pidautotune
303
+  #define  DEFAULT_bedKp 630.14
304
+  #define  DEFAULT_bedKi 121.71
305
+  #define  DEFAULT_bedKd 815.64
294
     
306
     
295
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
307
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
296
 #endif // PIDTEMPBED
308
 #endif // PIDTEMPBED
297
 
309
 
310
+// @section extruder
298
 
311
 
299
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
312
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
300
 //can be software-disabled for whatever purposes by
313
 //can be software-disabled for whatever purposes by
335
 // #define COREXY
348
 // #define COREXY
336
 
349
 
337
 // Enable this option for Toshiba steppers
350
 // Enable this option for Toshiba steppers
338
-// #define CONFIG_STEPPERS_TOSHIBA
351
+//#define CONFIG_STEPPERS_TOSHIBA
339
 
352
 
340
 // @section homing
353
 // @section homing
341
 
354
 
350
    #define ENDSTOPPULLUP_XMIN  // open pin, inverted
363
    #define ENDSTOPPULLUP_XMIN  // open pin, inverted
351
    #define ENDSTOPPULLUP_YMIN  // open pin, inverted
364
    #define ENDSTOPPULLUP_YMIN  // open pin, inverted
352
   // #define ENDSTOPPULLUP_ZMIN
365
   // #define ENDSTOPPULLUP_ZMIN
366
+  // #define ENDSTOPPULLUP_ZPROBE
353
 #endif
367
 #endif
354
 
368
 
355
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
369
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
363
 //#define DISABLE_MAX_ENDSTOPS
377
 //#define DISABLE_MAX_ENDSTOPS
364
 //#define DISABLE_MIN_ENDSTOPS
378
 //#define DISABLE_MIN_ENDSTOPS
365
 
379
 
380
+// If you want to enable the Z Probe pin, but disable its use, uncomment the line below.
381
+// This only affects a Z Probe Endstop if you have separate Z min endstop as well and have
382
+// activated Z_PROBE_ENDSTOP below. If you are using the Z Min endstop on your Z Probe,
383
+// this has no effect.
384
+//#define DISABLE_Z_PROBE_ENDSTOP
385
+
366
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
386
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
387
+// :{0:'Low',1:'High'}
367
 #define X_ENABLE_ON 0
388
 #define X_ENABLE_ON 0
368
 #define Y_ENABLE_ON 0
389
 #define Y_ENABLE_ON 0
369
 #define Z_ENABLE_ON 0
390
 #define Z_ENABLE_ON 0
374
 #define DISABLE_X false
395
 #define DISABLE_X false
375
 #define DISABLE_Y false
396
 #define DISABLE_Y false
376
 #define DISABLE_Z false
397
 #define DISABLE_Z false
398
+
399
+// @section extruder
400
+
377
 #define DISABLE_E false // For all extruders
401
 #define DISABLE_E false // For all extruders
378
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
402
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
379
 
403
 
404
+// @section machine
405
+
380
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
406
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
381
 #define INVERT_X_DIR false
407
 #define INVERT_X_DIR false
382
 #define INVERT_Y_DIR false
408
 #define INVERT_Y_DIR false
383
 #define INVERT_Z_DIR true
409
 #define INVERT_Z_DIR true
410
+
411
+// @section extruder
412
+
413
+// For direct drive extruder v9 set to true, for geared extruder set to false.
384
 #define INVERT_E0_DIR false
414
 #define INVERT_E0_DIR false
385
 #define INVERT_E1_DIR false
415
 #define INVERT_E1_DIR false
386
 #define INVERT_E2_DIR false
416
 #define INVERT_E2_DIR false
387
 #define INVERT_E3_DIR false
417
 #define INVERT_E3_DIR false
388
 
418
 
419
+// @section homing
420
+
389
 // ENDSTOP SETTINGS:
421
 // ENDSTOP SETTINGS:
390
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
422
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
423
+// :[-1,1]
391
 #define X_HOME_DIR 1
424
 #define X_HOME_DIR 1
392
 #define Y_HOME_DIR 1
425
 #define Y_HOME_DIR 1
393
 #define Z_HOME_DIR -1
426
 #define Z_HOME_DIR -1
395
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
428
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
396
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
429
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
397
 
430
 
431
+// @section machine
432
+
398
 // Travel limits after homing (units are in mm)
433
 // Travel limits after homing (units are in mm)
399
 #define X_MIN_POS 0
434
 #define X_MIN_POS 0
400
 #define Y_MIN_POS 0
435
 #define Y_MIN_POS 0
415
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
450
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
416
   #define FILAMENT_RUNOUT_SCRIPT "M600"
451
   #define FILAMENT_RUNOUT_SCRIPT "M600"
417
 #endif
452
 #endif
418
-  
453
+
419
 //===========================================================================
454
 //===========================================================================
420
 //=========================== Manual Bed Leveling ===========================
455
 //=========================== Manual Bed Leveling ===========================
421
 //===========================================================================
456
 //===========================================================================
424
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
459
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
425
 
460
 
426
 #ifdef MANUAL_BED_LEVELING
461
 #ifdef MANUAL_BED_LEVELING
427
-  #define MBL_Z_STEP 0.025
462
+  #define MBL_Z_STEP 0.025  // Step size while manually probing Z axis
428
 #endif  // MANUAL_BED_LEVELING
463
 #endif  // MANUAL_BED_LEVELING
429
 
464
 
430
 #ifdef MESH_BED_LEVELING
465
 #ifdef MESH_BED_LEVELING
441
 //============================ Bed Auto Leveling ============================
476
 //============================ Bed Auto Leveling ============================
442
 //===========================================================================
477
 //===========================================================================
443
 
478
 
479
+// @section bedlevel
480
+
444
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
481
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
445
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
482
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
446
 
483
 
504
 
541
 
505
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
542
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
506
                                                                             //Useful to retract a deployable probe.
543
                                                                             //Useful to retract a deployable probe.
507
-                                                                           
544
+
508
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
545
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
509
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
546
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
510
 
547
 
549
 #endif // ENABLE_AUTO_BED_LEVELING
586
 #endif // ENABLE_AUTO_BED_LEVELING
550
 
587
 
551
 
588
 
589
+// @section homing
590
+
552
 // The position of the homing switches
591
 // The position of the homing switches
553
 #define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
592
 #define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
554
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
593
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
562
   #define MANUAL_Z_HOME_POS 0.1  // Distance between nozzle and print surface after homing.
601
   #define MANUAL_Z_HOME_POS 0.1  // Distance between nozzle and print surface after homing.
563
 #endif
602
 #endif
564
 
603
 
604
+// @section movement
605
+
565
 /**
606
 /**
566
  * MOVEMENT SETTINGS
607
  * MOVEMENT SETTINGS
567
  */
608
  */
578
 #define DEFAULT_RETRACT_ACCELERATION  2000   // E acceleration in mm/s^2 for retracts
619
 #define DEFAULT_RETRACT_ACCELERATION  2000   // E acceleration in mm/s^2 for retracts
579
 #define DEFAULT_TRAVEL_ACCELERATION   400    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
620
 #define DEFAULT_TRAVEL_ACCELERATION   400    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
580
 
621
 
581
-// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
582
-// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
583
-// For the other hotends it is their distance from the extruder 0 hotend.
584
-// #define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
585
-// #define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
586
-
587
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
622
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
588
 #define DEFAULT_XYJERK                5    // (mm/sec)
623
 #define DEFAULT_XYJERK                5    // (mm/sec)
589
 #define DEFAULT_ZJERK                 0.4    // (mm/sec)
624
 #define DEFAULT_ZJERK                 0.4    // (mm/sec)
594
 //============================= Additional Features ===========================
629
 //============================= Additional Features ===========================
595
 //=============================================================================
630
 //=============================================================================
596
 
631
 
632
+// @section more
633
+
597
 // Custom M code points
634
 // Custom M code points
598
 //#define CUSTOM_M_CODES
635
 //#define CUSTOM_M_CODES
599
 #ifdef CUSTOM_M_CODES
636
 #ifdef CUSTOM_M_CODES
604
   #endif
641
   #endif
605
 #endif
642
 #endif
606
 
643
 
644
+// @section extras
607
 
645
 
608
 // EEPROM
646
 // EEPROM
609
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
647
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
615
 
653
 
616
 #ifdef EEPROM_SETTINGS
654
 #ifdef EEPROM_SETTINGS
617
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
655
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
618
-  #define EEPROM_CHITCHAT // please keep turned on if you can.
656
+  #define EEPROM_CHITCHAT // Please keep turned on if you can.
619
 #endif
657
 #endif
620
 
658
 
659
+// @section temperature
660
+
621
 // Preheat Constants
661
 // Preheat Constants
622
 #define PLA_PREHEAT_HOTEND_TEMP 180
662
 #define PLA_PREHEAT_HOTEND_TEMP 180
623
 #define PLA_PREHEAT_HPB_TEMP 70
663
 #define PLA_PREHEAT_HPB_TEMP 70
628
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
668
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
629
 
669
 
630
 //==============================LCD and SD support=============================
670
 //==============================LCD and SD support=============================
671
+// @section lcd
631
 
672
 
632
 // Define your display language below. Replace (en) with your language code and uncomment.
673
 // Define your display language below. Replace (en) with your language code and uncomment.
633
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
674
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
653
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
694
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
654
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
695
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
655
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
696
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
656
-
657
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
697
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
658
 // http://reprap.org/wiki/PanelOne
698
 // http://reprap.org/wiki/PanelOne
659
 //#define PANEL_ONE
699
 //#define PANEL_ONE
709
 
749
 
710
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
750
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
711
 //#define LCD_I2C_VIKI
751
 //#define LCD_I2C_VIKI
752
+  
753
+// SSD1306 OLED generic display support
754
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
755
+//#define U8GLIB_SSD1306
712
 
756
 
713
 // Shift register panels
757
 // Shift register panels
714
 // ---------------------
758
 // ---------------------
715
 // 2 wire Non-latching LCD SR from:
759
 // 2 wire Non-latching LCD SR from:
716
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
760
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
717
-
761
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
718
 //#define SAV_3DLCD
762
 //#define SAV_3DLCD
719
 
763
 
764
+// @section extras
765
+
720
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
766
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
721
 //#define FAST_PWM_FAN
767
 //#define FAST_PWM_FAN
722
 
768
 
740
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
786
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
741
 // #define PHOTOGRAPH_PIN     23
787
 // #define PHOTOGRAPH_PIN     23
742
 
788
 
743
-// SF send wrong arc g-codes when using Arc Point as fillet procedure
789
+// SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
744
 //#define SF_ARC_FIX
790
 //#define SF_ARC_FIX
745
 
791
 
746
 // Support for the BariCUDA Paste Extruder.
792
 // Support for the BariCUDA Paste Extruder.

+ 99
- 50
Marlin/example_configurations/WITBOX/Configuration.h 查看文件

59
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
60
 
60
 
61
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer
62
+// :[2400,9600,19200,38400,57600,115200,250000]
62
 #define BAUDRATE 115200
63
 #define BAUDRATE 115200
63
 
64
 
64
 // This enables the serial port associated to the Bluetooth interface
65
 // This enables the serial port associated to the Bluetooth interface
66
 
67
 
67
 // The following define selects which electronics board you have.
68
 // The following define selects which electronics board you have.
68
 // Please choose the name from boards.h that matches your setup
69
 // Please choose the name from boards.h that matches your setup
69
-#define MOTHERBOARD BOARD_RAMPS_13_EFB
70
+#ifndef MOTHERBOARD
71
+  #define MOTHERBOARD BOARD_RAMPS_13_EFB
72
+#endif
70
 
73
 
71
 // Optional custom name for your RepStrap or other custom machine
74
 // Optional custom name for your RepStrap or other custom machine
72
 // Displayed in the LCD "Ready" message
75
 // Displayed in the LCD "Ready" message
80
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
83
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
81
 
84
 
82
 // This defines the number of extruders
85
 // This defines the number of extruders
86
+// :[1,2,3,4]
83
 #define EXTRUDERS 1
87
 #define EXTRUDERS 1
84
 
88
 
89
+// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
90
+// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
91
+// For the other hotends it is their distance from the extruder 0 hotend.
92
+//#define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
93
+//#define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
94
+
85
 //// The following define selects which power supply you have. Please choose the one that matches your setup
95
 //// The following define selects which power supply you have. Please choose the one that matches your setup
86
 // 1 = ATX
96
 // 1 = ATX
87
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
97
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
98
+// :{1:'ATX',2:'X-Box 360'}
88
 
99
 
89
 #define POWER_SUPPLY 1
100
 #define POWER_SUPPLY 1
90
 
101
 
91
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
102
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
92
-// #define PS_DEFAULT_OFF
103
+//#define PS_DEFAULT_OFF
104
+
105
+// @section temperature
93
 
106
 
94
 //===========================================================================
107
 //===========================================================================
95
 //============================= Thermal Settings ============================
108
 //============================= Thermal Settings ============================
195
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
208
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
196
   #define K1 0.95 //smoothing factor within the PID
209
   #define K1 0.95 //smoothing factor within the PID
197
 
210
 
198
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
199
-// Ultimaker
200
-//  #define  DEFAULT_Kp 22.2
201
-//  #define  DEFAULT_Ki 1.08
202
-//  #define  DEFAULT_Kd 114
203
-
204
-// MakerGear
205
-//    #define  DEFAULT_Kp 7.0
206
-//    #define  DEFAULT_Ki 0.1
207
-//    #define  DEFAULT_Kd 12
208
-
209
-// Mendel Parts V9 on 12V
210
-//    #define  DEFAULT_Kp 63.0
211
-//    #define  DEFAULT_Ki 2.25
212
-//    #define  DEFAULT_Kd 440
213
-
214
-// Witbox
215
-      #define  DEFAULT_Kp 22.2
216
-      #define  DEFAULT_Ki 1.08
217
-      #define  DEFAULT_Kd 114
211
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
212
+  // Ultimaker
213
+  //#define  DEFAULT_Kp 22.2
214
+  //#define  DEFAULT_Ki 1.08
215
+  //#define  DEFAULT_Kd 114
216
+
217
+  // MakerGear
218
+  //#define  DEFAULT_Kp 7.0
219
+  //#define  DEFAULT_Ki 0.1
220
+  //#define  DEFAULT_Kd 12
221
+
222
+  // Mendel Parts V9 on 12V
223
+  //#define  DEFAULT_Kp 63.0
224
+  //#define  DEFAULT_Ki 2.25
225
+  //#define  DEFAULT_Kd 440
226
+
227
+  // Witbox
228
+  #define  DEFAULT_Kp 22.2
229
+  #define  DEFAULT_Ki 1.08
230
+  #define  DEFAULT_Kd 114
231
+
218
 #endif // PIDTEMP
232
 #endif // PIDTEMP
219
 
233
 
220
 //===========================================================================
234
 //===========================================================================
242
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
256
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
243
 
257
 
244
 #ifdef PIDTEMPBED
258
 #ifdef PIDTEMPBED
245
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
246
 
259
 
247
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
248
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
249
-    #define  DEFAULT_bedKp 10.00
250
-    #define  DEFAULT_bedKi .023
251
-    #define  DEFAULT_bedKd 305.4
260
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
252
 
261
 
253
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
254
-//from pidautotune
255
-//    #define  DEFAULT_bedKp 97.1
256
-//    #define  DEFAULT_bedKi 1.41
257
-//    #define  DEFAULT_bedKd 1675.16
262
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
263
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
264
+  #define  DEFAULT_bedKp 10.00
265
+  #define  DEFAULT_bedKi .023
266
+  #define  DEFAULT_bedKd 305.4
258
 
267
 
259
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
268
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
269
+  //from pidautotune
270
+  //#define  DEFAULT_bedKp 97.1
271
+  //#define  DEFAULT_bedKi 1.41
272
+  //#define  DEFAULT_bedKd 1675.16
273
+
274
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
260
 #endif // PIDTEMPBED
275
 #endif // PIDTEMPBED
261
 
276
 
277
+// @section extruder
262
 
278
 
263
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
279
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
264
 //can be software-disabled for whatever purposes by
280
 //can be software-disabled for whatever purposes by
299
 // #define COREXY
315
 // #define COREXY
300
 
316
 
301
 // Enable this option for Toshiba steppers
317
 // Enable this option for Toshiba steppers
302
-// #define CONFIG_STEPPERS_TOSHIBA
318
+//#define CONFIG_STEPPERS_TOSHIBA
303
 
319
 
304
 // @section homing
320
 // @section homing
305
 
321
 
314
   // #define ENDSTOPPULLUP_XMIN
330
   // #define ENDSTOPPULLUP_XMIN
315
   // #define ENDSTOPPULLUP_YMIN
331
   // #define ENDSTOPPULLUP_YMIN
316
   // #define ENDSTOPPULLUP_ZMIN
332
   // #define ENDSTOPPULLUP_ZMIN
333
+  // #define ENDSTOPPULLUP_ZPROBE
317
 #endif
334
 #endif
318
 
335
 
319
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
336
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
327
 //#define DISABLE_MAX_ENDSTOPS
344
 //#define DISABLE_MAX_ENDSTOPS
328
 //#define DISABLE_MIN_ENDSTOPS
345
 //#define DISABLE_MIN_ENDSTOPS
329
 
346
 
347
+// If you want to enable the Z Probe pin, but disable its use, uncomment the line below.
348
+// This only affects a Z Probe Endstop if you have separate Z min endstop as well and have
349
+// activated Z_PROBE_ENDSTOP below. If you are using the Z Min endstop on your Z Probe,
350
+// this has no effect.
351
+//#define DISABLE_Z_PROBE_ENDSTOP
352
+
330
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
353
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
354
+// :{0:'Low',1:'High'}
331
 #define X_ENABLE_ON 0
355
 #define X_ENABLE_ON 0
332
 #define Y_ENABLE_ON 0
356
 #define Y_ENABLE_ON 0
333
 #define Z_ENABLE_ON 0
357
 #define Z_ENABLE_ON 0
338
 #define DISABLE_X false
362
 #define DISABLE_X false
339
 #define DISABLE_Y false
363
 #define DISABLE_Y false
340
 #define DISABLE_Z true
364
 #define DISABLE_Z true
365
+
366
+// @section extruder
367
+
341
 #define DISABLE_E false // For all extruders
368
 #define DISABLE_E false // For all extruders
342
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
369
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
343
 
370
 
371
+// @section machine
372
+
344
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
373
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
345
 #define INVERT_X_DIR true
374
 #define INVERT_X_DIR true
346
 #define INVERT_Y_DIR false
375
 #define INVERT_Y_DIR false
347
 #define INVERT_Z_DIR true
376
 #define INVERT_Z_DIR true
377
+
378
+// @section extruder
379
+
380
+// For direct drive extruder v9 set to true, for geared extruder set to false.
348
 #define INVERT_E0_DIR false
381
 #define INVERT_E0_DIR false
349
 #define INVERT_E1_DIR false
382
 #define INVERT_E1_DIR false
350
 #define INVERT_E2_DIR false
383
 #define INVERT_E2_DIR false
351
 #define INVERT_E3_DIR false
384
 #define INVERT_E3_DIR false
352
 
385
 
386
+// @section homing
387
+
353
 // ENDSTOP SETTINGS:
388
 // ENDSTOP SETTINGS:
354
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
389
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
390
+// :[-1,1]
355
 #define X_HOME_DIR 1
391
 #define X_HOME_DIR 1
356
 #define Y_HOME_DIR 1
392
 #define Y_HOME_DIR 1
357
 #define Z_HOME_DIR -1
393
 #define Z_HOME_DIR -1
359
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
395
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
360
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
396
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
361
 
397
 
398
+// @section machine
399
+
362
 // Travel limits after homing (units are in mm)
400
 // Travel limits after homing (units are in mm)
363
 #define X_MIN_POS 0
401
 #define X_MIN_POS 0
364
 #define Y_MIN_POS 0
402
 #define Y_MIN_POS 0
379
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
417
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
380
   #define FILAMENT_RUNOUT_SCRIPT "M600"
418
   #define FILAMENT_RUNOUT_SCRIPT "M600"
381
 #endif
419
 #endif
382
-  
420
+
383
 //===========================================================================
421
 //===========================================================================
384
 //=========================== Manual Bed Leveling ===========================
422
 //=========================== Manual Bed Leveling ===========================
385
 //===========================================================================
423
 //===========================================================================
388
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
426
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
389
 
427
 
390
 #ifdef MANUAL_BED_LEVELING
428
 #ifdef MANUAL_BED_LEVELING
391
-  #define MBL_Z_STEP 0.025
429
+  #define MBL_Z_STEP 0.025  // Step size while manually probing Z axis
392
 #endif  // MANUAL_BED_LEVELING
430
 #endif  // MANUAL_BED_LEVELING
393
 
431
 
394
 #ifdef MESH_BED_LEVELING
432
 #ifdef MESH_BED_LEVELING
405
 //============================ Bed Auto Leveling ============================
443
 //============================ Bed Auto Leveling ============================
406
 //===========================================================================
444
 //===========================================================================
407
 
445
 
446
+// @section bedlevel
447
+
408
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
448
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
409
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
449
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
410
 
450
 
468
 
508
 
469
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
509
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
470
                                                                             //Useful to retract a deployable probe.
510
                                                                             //Useful to retract a deployable probe.
471
-                                                                           
511
+
472
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
512
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
473
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
513
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
474
 
514
 
513
 #endif // ENABLE_AUTO_BED_LEVELING
553
 #endif // ENABLE_AUTO_BED_LEVELING
514
 
554
 
515
 
555
 
556
+// @section homing
557
+
516
 // The position of the homing switches
558
 // The position of the homing switches
517
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
559
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
518
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
560
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
526
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
568
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
527
 #endif
569
 #endif
528
 
570
 
571
+// @section movement
572
+
529
 /**
573
 /**
530
  * MOVEMENT SETTINGS
574
  * MOVEMENT SETTINGS
531
  */
575
  */
539
 #define DEFAULT_MAX_ACCELERATION      {1000,1000,10,1000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
583
 #define DEFAULT_MAX_ACCELERATION      {1000,1000,10,1000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
540
 
584
 
541
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
585
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
542
-#define DEFAULT_RETRACT_ACCELERATION  3000   // E acceleration in mm/s^2 for retracts
586
+#define DEFAULT_RETRACT_ACCELERATION  3000    // E acceleration in mm/s^2 for retracts
543
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
587
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
544
 
588
 
545
-// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
546
-// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
547
-// For the other hotends it is their distance from the extruder 0 hotend.
548
-// #define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
549
-// #define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
550
-
551
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
589
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
552
 #define DEFAULT_XYJERK                10.0    // (mm/sec)
590
 #define DEFAULT_XYJERK                10.0    // (mm/sec)
553
 #define DEFAULT_ZJERK                 0.4     // (mm/sec)
591
 #define DEFAULT_ZJERK                 0.4     // (mm/sec)
558
 //============================= Additional Features ===========================
596
 //============================= Additional Features ===========================
559
 //=============================================================================
597
 //=============================================================================
560
 
598
 
599
+// @section more
600
+
561
 // Custom M code points
601
 // Custom M code points
562
 #define CUSTOM_M_CODES
602
 #define CUSTOM_M_CODES
563
 #ifdef CUSTOM_M_CODES
603
 #ifdef CUSTOM_M_CODES
568
   #endif
608
   #endif
569
 #endif
609
 #endif
570
 
610
 
611
+// @section extras
571
 
612
 
572
 // EEPROM
613
 // EEPROM
573
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
614
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
579
 
620
 
580
 #ifdef EEPROM_SETTINGS
621
 #ifdef EEPROM_SETTINGS
581
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
622
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
582
-  #define EEPROM_CHITCHAT // please keep turned on if you can.
623
+  #define EEPROM_CHITCHAT // Please keep turned on if you can.
583
 #endif
624
 #endif
584
 
625
 
626
+// @section temperature
627
+
585
 // Preheat Constants
628
 // Preheat Constants
586
 #define PLA_PREHEAT_HOTEND_TEMP 200
629
 #define PLA_PREHEAT_HOTEND_TEMP 200
587
 #define PLA_PREHEAT_HPB_TEMP 0
630
 #define PLA_PREHEAT_HPB_TEMP 0
592
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
635
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
593
 
636
 
594
 //==============================LCD and SD support=============================
637
 //==============================LCD and SD support=============================
638
+// @section lcd
595
 
639
 
596
 // Define your display language below. Replace (en) with your language code and uncomment.
640
 // Define your display language below. Replace (en) with your language code and uncomment.
597
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
641
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
617
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
661
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
618
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
662
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
619
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
663
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
620
-
621
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
664
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
622
 // http://reprap.org/wiki/PanelOne
665
 // http://reprap.org/wiki/PanelOne
623
 //#define PANEL_ONE
666
 //#define PANEL_ONE
673
 
716
 
674
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
717
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
675
 //#define LCD_I2C_VIKI
718
 //#define LCD_I2C_VIKI
719
+  
720
+// SSD1306 OLED generic display support
721
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
722
+//#define U8GLIB_SSD1306
676
 
723
 
677
 // Shift register panels
724
 // Shift register panels
678
 // ---------------------
725
 // ---------------------
679
 // 2 wire Non-latching LCD SR from:
726
 // 2 wire Non-latching LCD SR from:
680
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
727
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
681
-
728
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
682
 //#define SAV_3DLCD
729
 //#define SAV_3DLCD
683
 
730
 
731
+// @section extras
732
+
684
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
733
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
685
 //#define FAST_PWM_FAN
734
 //#define FAST_PWM_FAN
686
 
735
 
704
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
753
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
705
 // #define PHOTOGRAPH_PIN     23
754
 // #define PHOTOGRAPH_PIN     23
706
 
755
 
707
-// SF send wrong arc g-codes when using Arc Point as fillet procedure
756
+// SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
708
 //#define SF_ARC_FIX
757
 //#define SF_ARC_FIX
709
 
758
 
710
 // Support for the BariCUDA Paste Extruder.
759
 // Support for the BariCUDA Paste Extruder.
758
 #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
807
 #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
759
 
808
 
760
 //defines used in the code
809
 //defines used in the code
761
-#define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially 
810
+#define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
762
 
811
 
763
 //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
812
 //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
764
 //#define FILAMENT_LCD_DISPLAY
813
 //#define FILAMENT_LCD_DISPLAY

+ 19
- 11
Marlin/example_configurations/adafruit/ST7565/Configuration.h 查看文件

97
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
98
 
98
 
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
100
-// #define PS_DEFAULT_OFF
100
+//#define PS_DEFAULT_OFF
101
 
101
 
102
 // @section temperature
102
 // @section temperature
103
 
103
 
247
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
247
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 
248
 
249
 #ifdef PIDTEMPBED
249
 #ifdef PIDTEMPBED
250
+
251
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
252
+
250
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
253
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
251
 //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
254
 //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
252
-    #define  DEFAULT_bedKp 10.00
253
-    #define  DEFAULT_bedKi .023
254
-    #define  DEFAULT_bedKd 305.4
255
+  #define  DEFAULT_bedKp 10.00
256
+  #define  DEFAULT_bedKi .023
257
+  #define  DEFAULT_bedKd 305.4
255
 
258
 
256
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
259
 //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
257
 //from pidautotune
260
 //from pidautotune
258
-//    #define  DEFAULT_bedKp 97.1
259
-//    #define  DEFAULT_bedKi 1.41
260
-//    #define  DEFAULT_bedKd 1675.16
261
+  //#define  DEFAULT_bedKp 97.1
262
+  //#define  DEFAULT_bedKi 1.41
263
+  //#define  DEFAULT_bedKd 1675.16
261
 
264
 
262
 // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
265
 // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
263
 #endif // PIDTEMPBED
266
 #endif // PIDTEMPBED
303
 // #define COREXY
306
 // #define COREXY
304
 
307
 
305
 // Enable this option for Toshiba steppers
308
 // Enable this option for Toshiba steppers
306
-// #define CONFIG_STEPPERS_TOSHIBA
309
+//#define CONFIG_STEPPERS_TOSHIBA
307
 
310
 
308
 // @section homing
311
 // @section homing
309
 
312
 
496
 
499
 
497
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
500
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
498
                                                                             //Useful to retract a deployable probe.
501
                                                                             //Useful to retract a deployable probe.
499
-                                                                           
502
+
500
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
503
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
501
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
504
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
502
 
505
 
571
 #define DEFAULT_MAX_ACCELERATION      {3000,3000,100,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
574
 #define DEFAULT_MAX_ACCELERATION      {3000,3000,100,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
572
 
575
 
573
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
576
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
574
-#define DEFAULT_RETRACT_ACCELERATION  3000   // E acceleration in mm/s^2 for retracts
577
+#define DEFAULT_RETRACT_ACCELERATION  3000    // E acceleration in mm/s^2 for retracts
575
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
578
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
576
 
579
 
577
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
580
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
667
 //
670
 //
668
 // ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
671
 // ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
669
 #define ELB_FULL_GRAPHIC_CONTROLLER
672
 #define ELB_FULL_GRAPHIC_CONTROLLER
673
+//#define SDCARDDETECTINVERTED
670
 
674
 
671
 // The RepRapDiscount Smart Controller (white PCB)
675
 // The RepRapDiscount Smart Controller (white PCB)
672
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
676
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
703
 
707
 
704
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
708
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
705
 //#define LCD_I2C_VIKI
709
 //#define LCD_I2C_VIKI
710
+  
711
+// SSD1306 OLED generic display support
712
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
713
+//#define U8GLIB_SSD1306
706
 
714
 
707
 // Shift register panels
715
 // Shift register panels
708
 // ---------------------
716
 // ---------------------
709
 // 2 wire Non-latching LCD SR from:
717
 // 2 wire Non-latching LCD SR from:
710
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
718
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
711
-
719
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
712
 //#define SAV_3DLCD
720
 //#define SAV_3DLCD
713
 
721
 
714
 // @section extras
722
 // @section extras

+ 48
- 46
Marlin/example_configurations/delta/biv2.5/Configuration.h 查看文件

97
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
98
 
98
 
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
100
-// #define PS_DEFAULT_OFF
100
+//#define PS_DEFAULT_OFF
101
 
101
 
102
 // @section temperature
102
 // @section temperature
103
 
103
 
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
206
   #define K1 0.95 //smoothing factor within the PID
206
   #define K1 0.95 //smoothing factor within the PID
207
 
207
 
208
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
-// Ultimaker
210
-    #define  DEFAULT_Kp 22.2
211
-    #define  DEFAULT_Ki 1.08
212
-    #define  DEFAULT_Kd 114
213
-
214
-// MakerGear
215
-//    #define  DEFAULT_Kp 7.0
216
-//    #define  DEFAULT_Ki 0.1
217
-//    #define  DEFAULT_Kd 12
218
-
219
-// Mendel Parts V9 on 12V
220
-//    #define  DEFAULT_Kp 63.0
221
-//    #define  DEFAULT_Ki 2.25
222
-//    #define  DEFAULT_Kd 440
208
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
+  // Ultimaker
210
+  #define  DEFAULT_Kp 22.2
211
+  #define  DEFAULT_Ki 1.08
212
+  #define  DEFAULT_Kd 114
213
+
214
+  // MakerGear
215
+  //#define  DEFAULT_Kp 7.0
216
+  //#define  DEFAULT_Ki 0.1
217
+  //#define  DEFAULT_Kd 12
218
+
219
+  // Mendel Parts V9 on 12V
220
+  //#define  DEFAULT_Kp 63.0
221
+  //#define  DEFAULT_Ki 2.25
222
+  //#define  DEFAULT_Kd 440
223
+
223
 #endif // PIDTEMP
224
 #endif // PIDTEMP
224
 
225
 
225
 //===========================================================================
226
 //===========================================================================
247
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 
249
 
249
 #ifdef PIDTEMPBED
250
 #ifdef PIDTEMPBED
250
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
251
 
251
 
252
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
253
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
254
-    #define  DEFAULT_bedKp 10.00
255
-    #define  DEFAULT_bedKi .023
256
-    #define  DEFAULT_bedKd 305.4
252
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
253
+
254
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
255
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
256
+  #define  DEFAULT_bedKp 10.00
257
+  #define  DEFAULT_bedKi .023
258
+  #define  DEFAULT_bedKd 305.4
257
 
259
 
258
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
259
-//from pidautotune
260
-//    #define  DEFAULT_bedKp 97.1
261
-//    #define  DEFAULT_bedKi 1.41
262
-//    #define  DEFAULT_bedKd 1675.16
260
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
261
+  //from pidautotune
262
+  //#define  DEFAULT_bedKp 97.1
263
+  //#define  DEFAULT_bedKi 1.41
264
+  //#define  DEFAULT_bedKd 1675.16
263
 
265
 
264
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
266
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
265
 #endif // PIDTEMPBED
267
 #endif // PIDTEMPBED
266
 
268
 
267
 // @section extruder
269
 // @section extruder
312
 
314
 
313
 #ifdef DELTA
315
 #ifdef DELTA
314
 
316
 
315
-// Make delta curves from many straight lines (linear interpolation).
316
-// This is a trade-off between visible corners (not enough segments)
317
-// and processor overload (too many expensive sqrt calls).
318
-#define DELTA_SEGMENTS_PER_SECOND 100
317
+  // Make delta curves from many straight lines (linear interpolation).
318
+  // This is a trade-off between visible corners (not enough segments)
319
+  // and processor overload (too many expensive sqrt calls).
320
+  #define DELTA_SEGMENTS_PER_SECOND 100
319
 
321
 
320
-// NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them
322
+  // NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them
321
 
323
 
322
-// Center-to-center distance of the holes in the diagonal push rods.
323
-#define DELTA_DIAGONAL_ROD 440.0 // mm
324
+  // Center-to-center distance of the holes in the diagonal push rods.
325
+  #define DELTA_DIAGONAL_ROD 440.0 // mm
324
 
326
 
325
-// Horizontal offset from middle of printer to smooth rod center.
326
-#define DELTA_SMOOTH_ROD_OFFSET 330.0 // mm
327
+  // Horizontal offset from middle of printer to smooth rod center.
328
+  #define DELTA_SMOOTH_ROD_OFFSET 330.0 // mm
327
 
329
 
328
-// Horizontal offset of the universal joints on the end effector.
329
-#define DELTA_EFFECTOR_OFFSET 50.0 // mm
330
+  // Horizontal offset of the universal joints on the end effector.
331
+  #define DELTA_EFFECTOR_OFFSET 50.0 // mm
330
 
332
 
331
-// Horizontal offset of the universal joints on the carriages.
332
-#define DELTA_CARRIAGE_OFFSET 20.0 // mm
333
+  // Horizontal offset of the universal joints on the carriages.
334
+  #define DELTA_CARRIAGE_OFFSET 20.0 // mm
333
 
335
 
334
-// Horizontal distance bridged by diagonal push rods when effector is centered.
335
-#define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
336
+  // Horizontal distance bridged by diagonal push rods when effector is centered.
337
+  #define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
336
 
338
 
337
-// Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).
338
-#define DELTA_PRINTABLE_RADIUS 160
339
+  // Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).
340
+  #define DELTA_PRINTABLE_RADIUS 160
339
 
341
 
340
 #endif
342
 #endif
341
 
343
 
342
 // Enable this option for Toshiba steppers
344
 // Enable this option for Toshiba steppers
343
-// #define CONFIG_STEPPERS_TOSHIBA
345
+//#define CONFIG_STEPPERS_TOSHIBA
344
 
346
 
345
 // @section homing
347
 // @section homing
346
 
348
 

+ 48
- 46
Marlin/example_configurations/delta/generic/Configuration.h 查看文件

97
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
98
 
98
 
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
100
-// #define PS_DEFAULT_OFF
100
+//#define PS_DEFAULT_OFF
101
 
101
 
102
 // @section temperature
102
 // @section temperature
103
 
103
 
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
206
   #define K1 0.95 //smoothing factor within the PID
206
   #define K1 0.95 //smoothing factor within the PID
207
 
207
 
208
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
-// Ultimaker
210
-    #define  DEFAULT_Kp 22.2
211
-    #define  DEFAULT_Ki 1.08
212
-    #define  DEFAULT_Kd 114
213
-
214
-// MakerGear
215
-//    #define  DEFAULT_Kp 7.0
216
-//    #define  DEFAULT_Ki 0.1
217
-//    #define  DEFAULT_Kd 12
218
-
219
-// Mendel Parts V9 on 12V
220
-//    #define  DEFAULT_Kp 63.0
221
-//    #define  DEFAULT_Ki 2.25
222
-//    #define  DEFAULT_Kd 440
208
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
+  // Ultimaker
210
+  #define  DEFAULT_Kp 22.2
211
+  #define  DEFAULT_Ki 1.08
212
+  #define  DEFAULT_Kd 114
213
+
214
+  // MakerGear
215
+  //#define  DEFAULT_Kp 7.0
216
+  //#define  DEFAULT_Ki 0.1
217
+  //#define  DEFAULT_Kd 12
218
+
219
+  // Mendel Parts V9 on 12V
220
+  //#define  DEFAULT_Kp 63.0
221
+  //#define  DEFAULT_Ki 2.25
222
+  //#define  DEFAULT_Kd 440
223
+
223
 #endif // PIDTEMP
224
 #endif // PIDTEMP
224
 
225
 
225
 //===========================================================================
226
 //===========================================================================
247
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 
249
 
249
 #ifdef PIDTEMPBED
250
 #ifdef PIDTEMPBED
250
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
251
 
251
 
252
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
253
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
254
-    #define  DEFAULT_bedKp 10.00
255
-    #define  DEFAULT_bedKi .023
256
-    #define  DEFAULT_bedKd 305.4
252
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
253
+
254
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
255
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
256
+  #define  DEFAULT_bedKp 10.00
257
+  #define  DEFAULT_bedKi .023
258
+  #define  DEFAULT_bedKd 305.4
257
 
259
 
258
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
259
-//from pidautotune
260
-//    #define  DEFAULT_bedKp 97.1
261
-//    #define  DEFAULT_bedKi 1.41
262
-//    #define  DEFAULT_bedKd 1675.16
260
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
261
+  //from pidautotune
262
+  //#define  DEFAULT_bedKp 97.1
263
+  //#define  DEFAULT_bedKi 1.41
264
+  //#define  DEFAULT_bedKd 1675.16
263
 
265
 
264
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
266
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
265
 #endif // PIDTEMPBED
267
 #endif // PIDTEMPBED
266
 
268
 
267
 // @section extruder
269
 // @section extruder
312
 
314
 
313
 #ifdef DELTA
315
 #ifdef DELTA
314
 
316
 
315
-// Make delta curves from many straight lines (linear interpolation).
316
-// This is a trade-off between visible corners (not enough segments)
317
-// and processor overload (too many expensive sqrt calls).
318
-#define DELTA_SEGMENTS_PER_SECOND 200
317
+  // Make delta curves from many straight lines (linear interpolation).
318
+  // This is a trade-off between visible corners (not enough segments)
319
+  // and processor overload (too many expensive sqrt calls).
320
+  #define DELTA_SEGMENTS_PER_SECOND 200
319
 
321
 
320
-// NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them
322
+  // NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them
321
 
323
 
322
-// Center-to-center distance of the holes in the diagonal push rods.
323
-#define DELTA_DIAGONAL_ROD 250.0 // mm
324
+  // Center-to-center distance of the holes in the diagonal push rods.
325
+  #define DELTA_DIAGONAL_ROD 250.0 // mm
324
 
326
 
325
-// Horizontal offset from middle of printer to smooth rod center.
326
-#define DELTA_SMOOTH_ROD_OFFSET 175.0 // mm
327
+  // Horizontal offset from middle of printer to smooth rod center.
328
+  #define DELTA_SMOOTH_ROD_OFFSET 175.0 // mm
327
 
329
 
328
-// Horizontal offset of the universal joints on the end effector.
329
-#define DELTA_EFFECTOR_OFFSET 33.0 // mm
330
+  // Horizontal offset of the universal joints on the end effector.
331
+  #define DELTA_EFFECTOR_OFFSET 33.0 // mm
330
 
332
 
331
-// Horizontal offset of the universal joints on the carriages.
332
-#define DELTA_CARRIAGE_OFFSET 18.0 // mm
333
+  // Horizontal offset of the universal joints on the carriages.
334
+  #define DELTA_CARRIAGE_OFFSET 18.0 // mm
333
 
335
 
334
-// Horizontal distance bridged by diagonal push rods when effector is centered.
335
-#define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
336
+  // Horizontal distance bridged by diagonal push rods when effector is centered.
337
+  #define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
336
 
338
 
337
-// Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).
338
-#define DELTA_PRINTABLE_RADIUS 140
339
+  // Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).
340
+  #define DELTA_PRINTABLE_RADIUS 140
339
 
341
 
340
 #endif
342
 #endif
341
 
343
 
342
 // Enable this option for Toshiba steppers
344
 // Enable this option for Toshiba steppers
343
-// #define CONFIG_STEPPERS_TOSHIBA
345
+//#define CONFIG_STEPPERS_TOSHIBA
344
 
346
 
345
 // @section homing
347
 // @section homing
346
 
348
 

+ 99
- 48
Marlin/example_configurations/delta/kossel_mini/Configuration.h 查看文件

97
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
98
 
98
 
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
100
-// #define PS_DEFAULT_OFF
100
+//#define PS_DEFAULT_OFF
101
 
101
 
102
 // @section temperature
102
 // @section temperature
103
 
103
 
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
206
   #define K1 0.95 //smoothing factor within the PID
206
   #define K1 0.95 //smoothing factor within the PID
207
 
207
 
208
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
-// Ultimaker
210
-    #define  DEFAULT_Kp 22.2
211
-    #define  DEFAULT_Ki 1.08
212
-    #define  DEFAULT_Kd 114
213
-
214
-// MakerGear
215
-//    #define  DEFAULT_Kp 7.0
216
-//    #define  DEFAULT_Ki 0.1
217
-//    #define  DEFAULT_Kd 12
218
-
219
-// Mendel Parts V9 on 12V
220
-//    #define  DEFAULT_Kp 63.0
221
-//    #define  DEFAULT_Ki 2.25
222
-//    #define  DEFAULT_Kd 440
208
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
+  // Ultimaker
210
+  #define  DEFAULT_Kp 22.2
211
+  #define  DEFAULT_Ki 1.08
212
+  #define  DEFAULT_Kd 114
213
+
214
+  // MakerGear
215
+  //#define  DEFAULT_Kp 7.0
216
+  //#define  DEFAULT_Ki 0.1
217
+  //#define  DEFAULT_Kd 12
218
+
219
+  // Mendel Parts V9 on 12V
220
+  //#define  DEFAULT_Kp 63.0
221
+  //#define  DEFAULT_Ki 2.25
222
+  //#define  DEFAULT_Kd 440
223
+
223
 #endif // PIDTEMP
224
 #endif // PIDTEMP
224
 
225
 
225
 //===========================================================================
226
 //===========================================================================
247
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
248
 
249
 
249
 #ifdef PIDTEMPBED
250
 #ifdef PIDTEMPBED
250
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
251
 
251
 
252
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
253
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
254
-    #define  DEFAULT_bedKp 10.00
255
-    #define  DEFAULT_bedKi .023
256
-    #define  DEFAULT_bedKd 305.4
252
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
257
 
253
 
258
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
259
-//from pidautotune
260
-//    #define  DEFAULT_bedKp 97.1
261
-//    #define  DEFAULT_bedKi 1.41
262
-//    #define  DEFAULT_bedKd 1675.16
254
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
255
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
256
+  #define  DEFAULT_bedKp 10.00
257
+  #define  DEFAULT_bedKi .023
258
+  #define  DEFAULT_bedKd 305.4
263
 
259
 
264
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
260
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
261
+  //from pidautotune
262
+  //#define  DEFAULT_bedKp 97.1
263
+  //#define  DEFAULT_bedKi 1.41
264
+  //#define  DEFAULT_bedKd 1675.16
265
+
266
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
265
 #endif // PIDTEMPBED
267
 #endif // PIDTEMPBED
266
 
268
 
267
 // @section extruder
269
 // @section extruder
312
 
314
 
313
 #ifdef DELTA
315
 #ifdef DELTA
314
 
316
 
315
-// Make delta curves from many straight lines (linear interpolation).
316
-// This is a trade-off between visible corners (not enough segments)
317
-// and processor overload (too many expensive sqrt calls).
318
-#define DELTA_SEGMENTS_PER_SECOND 200
317
+  // Make delta curves from many straight lines (linear interpolation).
318
+  // This is a trade-off between visible corners (not enough segments)
319
+  // and processor overload (too many expensive sqrt calls).
320
+  #define DELTA_SEGMENTS_PER_SECOND 200
319
 
321
 
320
-// NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them
322
+  // NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them
321
 
323
 
322
-// Center-to-center distance of the holes in the diagonal push rods.
323
-#define DELTA_DIAGONAL_ROD 215.0 // mm
324
+  // Center-to-center distance of the holes in the diagonal push rods.
325
+  #define DELTA_DIAGONAL_ROD 215.0 // mm
324
 
326
 
325
-// Horizontal offset from middle of printer to smooth rod center.
326
-#define DELTA_SMOOTH_ROD_OFFSET 145.0 // mm
327
+  // Horizontal offset from middle of printer to smooth rod center.
328
+  #define DELTA_SMOOTH_ROD_OFFSET 145.0 // mm
327
 
329
 
328
-// Horizontal offset of the universal joints on the end effector.
329
-#define DELTA_EFFECTOR_OFFSET 19.9 // mm
330
+  // Horizontal offset of the universal joints on the end effector.
331
+  #define DELTA_EFFECTOR_OFFSET 19.9 // mm
330
 
332
 
331
-// Horizontal offset of the universal joints on the carriages.
332
-#define DELTA_CARRIAGE_OFFSET 19.5 // mm
333
+  // Horizontal offset of the universal joints on the carriages.
334
+  #define DELTA_CARRIAGE_OFFSET 19.5 // mm
333
 
335
 
334
-// Horizontal distance bridged by diagonal push rods when effector is centered.
335
-#define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
336
+  // Horizontal distance bridged by diagonal push rods when effector is centered.
337
+  #define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
336
 
338
 
337
-// Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).
338
-#define DELTA_PRINTABLE_RADIUS 90
339
+  // Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).
340
+  #define DELTA_PRINTABLE_RADIUS 90
339
 
341
 
340
 #endif
342
 #endif
341
 
343
 
342
 // Enable this option for Toshiba steppers
344
 // Enable this option for Toshiba steppers
343
-// #define CONFIG_STEPPERS_TOSHIBA
345
+//#define CONFIG_STEPPERS_TOSHIBA
344
 
346
 
345
 // @section homing
347
 // @section homing
346
 
348
 
471
 // @section bedlevel
473
 // @section bedlevel
472
 
474
 
473
 #define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
475
 #define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
474
-// #define Z_PROBE_REPEATABILITY_TEST // Z-Probe Repeatability test is not supported in Deltas yet.
476
+//#define Z_PROBE_REPEATABILITY_TEST // Z-Probe Repeatability test is not supported in Deltas yet.
475
 
477
 
476
 #ifdef ENABLE_AUTO_BED_LEVELING
478
 #ifdef ENABLE_AUTO_BED_LEVELING
477
 
479
 
544
   // Allen key retractable z-probe as seen on many Kossel delta printers - http://reprap.org/wiki/Kossel#Automatic_bed_leveling_probe
546
   // Allen key retractable z-probe as seen on many Kossel delta printers - http://reprap.org/wiki/Kossel#Automatic_bed_leveling_probe
545
   // Deploys by touching z-axis belt. Retracts by pushing the probe down. Uses Z_MIN_PIN.
547
   // Deploys by touching z-axis belt. Retracts by pushing the probe down. Uses Z_MIN_PIN.
546
   #define Z_PROBE_ALLEN_KEY
548
   #define Z_PROBE_ALLEN_KEY
549
+
547
   #ifdef Z_PROBE_ALLEN_KEY
550
   #ifdef Z_PROBE_ALLEN_KEY
548
     // 2 or 3 sets of coordinates for deploying and retracting the spring loaded touch probe on G29,
551
     // 2 or 3 sets of coordinates for deploying and retracting the spring loaded touch probe on G29,
549
     // if servo actuated touch probe is not defined. Uncomment as appropriate for your printer/probe.
552
     // if servo actuated touch probe is not defined. Uncomment as appropriate for your printer/probe.
550
 
553
 
554
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_1_X 30.0
555
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_1_Y DELTA_PRINTABLE_RADIUS
556
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_1_Z 100.0
557
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_1_FEEDRATE HOMING_FEEDRATE_X
558
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_2_X 0.0
559
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_2_Y DELTA_PRINTABLE_RADIUS
560
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_2_Z 100.0
561
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_2_FEEDRATE (HOMING_FEEDRATE_X/10)
562
+
563
+    //#define Z_PROBE_ALLEN_KEY_STOW_1_X -64.0 // Move the probe into position
564
+    //#define Z_PROBE_ALLEN_KEY_STOW_1_Y 56.0
565
+    //#define Z_PROBE_ALLEN_KEY_STOW_1_Z 23.0
566
+    //#define Z_PROBE_ALLEN_KEY_STOW_1_FEEDRATE HOMING_FEEDRATE_X
567
+    //#define Z_PROBE_ALLEN_KEY_STOW_2_X -64.0 // Push it down
568
+    //#define Z_PROBE_ALLEN_KEY_STOW_2_Y 56.0
569
+    //#define Z_PROBE_ALLEN_KEY_STOW_2_Z 3.0
570
+    //#define Z_PROBE_ALLEN_KEY_STOW_2_FEEDRATE (HOMING_FEEDRATE_X/10)
571
+    //#define Z_PROBE_ALLEN_KEY_STOW_3_X -64.0 // Move it up to clear
572
+    //#define Z_PROBE_ALLEN_KEY_STOW_3_Y 56.0
573
+    //#define Z_PROBE_ALLEN_KEY_STOW_3_Z 50.0
574
+    //#define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE HOMING_FEEDRATE_X
575
+
551
     // Kossel Mini
576
     // Kossel Mini
552
     #define Z_PROBE_ALLEN_KEY_DEPLOY_1_X 30.0
577
     #define Z_PROBE_ALLEN_KEY_DEPLOY_1_X 30.0
553
     #define Z_PROBE_ALLEN_KEY_DEPLOY_1_Y DELTA_PRINTABLE_RADIUS
578
     #define Z_PROBE_ALLEN_KEY_DEPLOY_1_Y DELTA_PRINTABLE_RADIUS
575
     #define Z_PROBE_ALLEN_KEY_STOW_3_Z  (Z_PROBE_ALLEN_KEY_STOW_1_Z+Z_PROBE_ALLEN_KEY_STOW_DEPTH)
600
     #define Z_PROBE_ALLEN_KEY_STOW_3_Z  (Z_PROBE_ALLEN_KEY_STOW_1_Z+Z_PROBE_ALLEN_KEY_STOW_DEPTH)
576
     #define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE (XY_TRAVEL_SPEED/2)
601
     #define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE (XY_TRAVEL_SPEED/2)
577
 
602
 
603
+    // Kossel Pro
604
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_1_X -105.00 // Move left but not quite so far that we'll bump the belt
605
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_1_Y 0.00
606
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_1_Z 100.0
607
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_1_FEEDRATE HOMING_FEEDRATE_X
608
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_2_X -110.00 // Move outward to position deploy pin to the left of the arm
609
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_2_Y -125.00
610
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_2_Z 100.0
611
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_2_FEEDRATE HOMING_FEEDRATE_X
612
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_3_X 45.00 // Move right to trigger deploy pin
613
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_3_Y -125.00
614
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_3_Z 100.0
615
+    //#define Z_PROBE_ALLEN_KEY_DEPLOY_3_FEEDRATE (HOMING_FEEDRATE_X/2)
616
+
617
+    //#define Z_PROBE_ALLEN_KEY_STOW_1_X 36.00 // Line up with bed retaining clip
618
+    //#define Z_PROBE_ALLEN_KEY_STOW_1_Y -122.00
619
+    //#define Z_PROBE_ALLEN_KEY_STOW_1_Z 75.0
620
+    //#define Z_PROBE_ALLEN_KEY_STOW_1_FEEDRATE HOMING_FEEDRATE_X
621
+    //#define Z_PROBE_ALLEN_KEY_STOW_2_X 36.00 // move down to retract probe
622
+    //#define Z_PROBE_ALLEN_KEY_STOW_2_Y -122.00
623
+    //#define Z_PROBE_ALLEN_KEY_STOW_2_Z 25.0
624
+    //#define Z_PROBE_ALLEN_KEY_STOW_2_FEEDRATE (HOMING_FEEDRATE_Z/2)
625
+    //#define Z_PROBE_ALLEN_KEY_STOW_3_X 0.0  // return to 0,0,100
626
+    //#define Z_PROBE_ALLEN_KEY_STOW_3_Y 0.0
627
+    //#define Z_PROBE_ALLEN_KEY_STOW_3_Z 100.0
628
+    //#define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE HOMING_FEEDRATE_Z
578
   #endif
629
   #endif
579
 
630
 
580
   //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
631
   //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
654
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
705
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
655
 #define DEFAULT_XYJERK                20.0    // (mm/sec)
706
 #define DEFAULT_XYJERK                20.0    // (mm/sec)
656
 #define DEFAULT_ZJERK                 20.0    // (mm/sec) Must be same as XY for delta
707
 #define DEFAULT_ZJERK                 20.0    // (mm/sec) Must be same as XY for delta
657
-#define DEFAULT_EJERK                 5.0    // (mm/sec)
708
+#define DEFAULT_EJERK                 5.0     // (mm/sec)
658
 
709
 
659
 
710
 
660
 //=============================================================================
711
 //=============================================================================

+ 68
- 64
Marlin/example_configurations/delta/kossel_pro/Configuration.h 查看文件

101
 #define POWER_SUPPLY 1
101
 #define POWER_SUPPLY 1
102
 
102
 
103
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
103
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
104
-// #define PS_DEFAULT_OFF
104
+//#define PS_DEFAULT_OFF
105
 
105
 
106
 // @section temperature
106
 // @section temperature
107
 
107
 
209
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
209
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
210
   #define K1 0.95 //smoothing factor within the PID
210
   #define K1 0.95 //smoothing factor within the PID
211
 
211
 
212
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
213
-// Ultimaker
214
-//    #define  DEFAULT_Kp 22.2
215
-//    #define  DEFAULT_Ki 1.08
216
-//    #define  DEFAULT_Kd 114
217
-
218
-// Kossel Pro
219
-      #define  DEFAULT_Kp 19.30
220
-      #define  DEFAULT_Ki 3.51
221
-      #define  DEFAULT_Kd 26.56
222
-
223
-// MakerGear
224
-//    #define  DEFAULT_Kp 7.0
225
-//    #define  DEFAULT_Ki 0.1
226
-//    #define  DEFAULT_Kd 12
227
-
228
-// Mendel Parts V9 on 12V
229
-//    #define  DEFAULT_Kp 63.0
230
-//    #define  DEFAULT_Ki 2.25
231
-//    #define  DEFAULT_Kd 440
212
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
213
+  // Ultimaker
214
+  //#define  DEFAULT_Kp 22.2
215
+  //#define  DEFAULT_Ki 1.08
216
+  //#define  DEFAULT_Kd 114
217
+
218
+  // Kossel Pro
219
+  #define  DEFAULT_Kp 19.30
220
+  #define  DEFAULT_Ki 3.51
221
+  #define  DEFAULT_Kd 26.56
222
+
223
+  // MakerGear
224
+  //#define  DEFAULT_Kp 7.0
225
+  //#define  DEFAULT_Ki 0.1
226
+  //#define  DEFAULT_Kd 12
227
+
228
+  // Mendel Parts V9 on 12V
229
+  //#define  DEFAULT_Kp 63.0
230
+  //#define  DEFAULT_Ki 2.25
231
+  //#define  DEFAULT_Kd 440
232
+
232
 #endif // PIDTEMP
233
 #endif // PIDTEMP
233
 
234
 
234
 //===========================================================================
235
 //===========================================================================
256
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
257
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
257
 
258
 
258
 #ifdef PIDTEMPBED
259
 #ifdef PIDTEMPBED
259
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
260
-
261
-//Kossel Pro heated bed plate with borosilicate glass
262
-//from pidautotune (M303 E-1 S60 C8)
263
-    #define  DEFAULT_bedKp 370.25
264
-    #define  DEFAULT_bedKi 62.77
265
-    #define  DEFAULT_bedKd 545.98
266
-
267
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
268
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
269
-//    #define  DEFAULT_bedKp 10.00
270
-//    #define  DEFAULT_bedKi .023
271
-//    #define  DEFAULT_bedKd 305.4
272
-
273
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
274
-//from pidautotune
275
-//    #define  DEFAULT_bedKp 97.1
276
-//    #define  DEFAULT_bedKi 1.41
277
-//    #define  DEFAULT_bedKd 1675.16
278
-
279
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
260
+
261
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
262
+
263
+  //Kossel Pro heated bed plate with borosilicate glass
264
+  //from pidautotune (M303 E-1 S60 C8)
265
+  #define  DEFAULT_bedKp 370.25
266
+  #define  DEFAULT_bedKi 62.77
267
+  #define  DEFAULT_bedKd 545.98
268
+
269
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
270
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
271
+  //#define  DEFAULT_bedKp 10.00
272
+  //#define  DEFAULT_bedKi .023
273
+  //#define  DEFAULT_bedKd 305.4
274
+
275
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
276
+  //from pidautotune
277
+  //#define  DEFAULT_bedKp 97.1
278
+  //#define  DEFAULT_bedKi 1.41
279
+  //#define  DEFAULT_bedKd 1675.16
280
+
281
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
280
 #endif // PIDTEMPBED
282
 #endif // PIDTEMPBED
281
 
283
 
282
 // @section extruder
284
 // @section extruder
327
 
329
 
328
 #ifdef DELTA
330
 #ifdef DELTA
329
 
331
 
330
-// Make delta curves from many straight lines (linear interpolation).
331
-// This is a trade-off between visible corners (not enough segments)
332
-// and processor overload (too many expensive sqrt calls).
333
-#define DELTA_SEGMENTS_PER_SECOND 160
332
+  // Make delta curves from many straight lines (linear interpolation).
333
+  // This is a trade-off between visible corners (not enough segments)
334
+  // and processor overload (too many expensive sqrt calls).
335
+  #define DELTA_SEGMENTS_PER_SECOND 160
334
 
336
 
335
-// NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them
337
+  // NOTE NB all values for DELTA_* values MUST be floating point, so always have a decimal point in them
336
 
338
 
337
-// Center-to-center distance of the holes in the diagonal push rods.
338
-#define DELTA_DIAGONAL_ROD 301.0 // mm
339
+  // Center-to-center distance of the holes in the diagonal push rods.
340
+  #define DELTA_DIAGONAL_ROD 301.0 // mm
339
 
341
 
340
-// Horizontal offset from middle of printer to smooth rod center.
341
-#define DELTA_SMOOTH_ROD_OFFSET 212.357 // mm
342
+  // Horizontal offset from middle of printer to smooth rod center.
343
+  #define DELTA_SMOOTH_ROD_OFFSET 212.357 // mm
342
 
344
 
343
-// Horizontal offset of the universal joints on the end effector.
344
-#define DELTA_EFFECTOR_OFFSET 30.0 // mm
345
+  // Horizontal offset of the universal joints on the end effector.
346
+  #define DELTA_EFFECTOR_OFFSET 30.0 // mm
345
 
347
 
346
-// Horizontal offset of the universal joints on the carriages.
347
-#define DELTA_CARRIAGE_OFFSET 30.0 // mm
348
+  // Horizontal offset of the universal joints on the carriages.
349
+  #define DELTA_CARRIAGE_OFFSET 30.0 // mm
348
 
350
 
349
-// Horizontal distance bridged by diagonal push rods when effector is centered.
350
-#define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
351
+  // Horizontal distance bridged by diagonal push rods when effector is centered.
352
+  #define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET)
351
 
353
 
352
-// Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).
353
-#define DELTA_PRINTABLE_RADIUS 127
354
+  // Print surface diameter/2 minus unreachable space (avoid collisions with vertical towers).
355
+  #define DELTA_PRINTABLE_RADIUS 127
354
 
356
 
355
 #endif
357
 #endif
356
 
358
 
357
 // Enable this option for Toshiba steppers
359
 // Enable this option for Toshiba steppers
358
-// #define CONFIG_STEPPERS_TOSHIBA
360
+//#define CONFIG_STEPPERS_TOSHIBA
359
 
361
 
360
 // @section homing
362
 // @section homing
361
 
363
 
486
 // @section bedlevel
488
 // @section bedlevel
487
 
489
 
488
 #define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
490
 #define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
489
-// #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
491
+//#define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
490
 
492
 
491
 #ifdef ENABLE_AUTO_BED_LEVELING
493
 #ifdef ENABLE_AUTO_BED_LEVELING
492
 
494
 
516
 
518
 
517
     #define MIN_PROBE_EDGE 10 // The probe square sides can be no smaller than this
519
     #define MIN_PROBE_EDGE 10 // The probe square sides can be no smaller than this
518
 
520
 
519
-    // Set the number of grid points per dimension
520
-    // You probably don't need more than 3 (squared=9)
521
+    // Non-linear bed leveling will be used.
522
+    // Compensate by interpolating between the nearest four Z probe values for each point.
523
+    // Useful for deltas where the print surface may appear like a bowl or dome shape.
524
+    // Works best with ACCURATE_BED_LEVELING_POINTS 5 or higher.
521
     #define AUTO_BED_LEVELING_GRID_POINTS 7
525
     #define AUTO_BED_LEVELING_GRID_POINTS 7
522
 
526
 
523
   #else  // !AUTO_BED_LEVELING_GRID
527
   #else  // !AUTO_BED_LEVELING_GRID
698
  * MOVEMENT SETTINGS
702
  * MOVEMENT SETTINGS
699
  */
703
  */
700
 
704
 
701
-/// delta homing speeds must be the same on xyz
705
+// delta homing speeds must be the same on xyz
702
 #define HOMING_FEEDRATE_X (200*60)
706
 #define HOMING_FEEDRATE_X (200*60)
703
 #define HOMING_FEEDRATE_Y (200*60)
707
 #define HOMING_FEEDRATE_Y (200*60)
704
 #define HOMING_FEEDRATE_Z (200*60)
708
 #define HOMING_FEEDRATE_Z (200*60)

+ 90
- 44
Marlin/example_configurations/makibox/Configuration.h 查看文件

59
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
60
 
60
 
61
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer
62
+// :[2400,9600,19200,38400,57600,115200,250000]
62
 #define BAUDRATE 250000
63
 #define BAUDRATE 250000
63
 
64
 
64
 // This enables the serial port associated to the Bluetooth interface
65
 // This enables the serial port associated to the Bluetooth interface
79
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
80
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
80
 
81
 
81
 // This defines the number of extruders
82
 // This defines the number of extruders
83
+// :[1,2,3,4]
82
 #define EXTRUDERS 1
84
 #define EXTRUDERS 1
83
 
85
 
86
+// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
87
+// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
88
+// For the other hotends it is their distance from the extruder 0 hotend.
89
+//#define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
90
+//#define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
91
+
84
 //// The following define selects which power supply you have. Please choose the one that matches your setup
92
 //// The following define selects which power supply you have. Please choose the one that matches your setup
85
 // 1 = ATX
93
 // 1 = ATX
86
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
94
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
95
+// :{1:'ATX',2:'X-Box 360'}
87
 
96
 
88
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
89
 
98
 
90
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
91
-// #define PS_DEFAULT_OFF
100
+//#define PS_DEFAULT_OFF
101
+
102
+// @section temperature
92
 
103
 
93
 //===========================================================================
104
 //===========================================================================
94
 //============================= Thermal Settings ============================
105
 //============================= Thermal Settings ============================
194
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
195
   #define K1 0.95 //smoothing factor within the PID
206
   #define K1 0.95 //smoothing factor within the PID
196
 
207
 
197
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
198
-// Ultimaker
199
-    #define  DEFAULT_Kp 22.2
200
-    #define  DEFAULT_Ki 1.08
201
-    #define  DEFAULT_Kd 114
202
-
203
-// MakerGear
204
-//    #define  DEFAULT_Kp 7.0
205
-//    #define  DEFAULT_Ki 0.1
206
-//    #define  DEFAULT_Kd 12
207
-
208
-// Mendel Parts V9 on 12V
209
-//    #define  DEFAULT_Kp 63.0
210
-//    #define  DEFAULT_Ki 2.25
211
-//    #define  DEFAULT_Kd 440
208
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
+  // Ultimaker
210
+  #define  DEFAULT_Kp 22.2
211
+  #define  DEFAULT_Ki 1.08
212
+  #define  DEFAULT_Kd 114
213
+
214
+  // MakerGear
215
+  //#define  DEFAULT_Kp 7.0
216
+  //#define  DEFAULT_Ki 0.1
217
+  //#define  DEFAULT_Kd 12
218
+
219
+  // Mendel Parts V9 on 12V
220
+  //#define  DEFAULT_Kp 63.0
221
+  //#define  DEFAULT_Ki 2.25
222
+  //#define  DEFAULT_Kd 440
223
+
212
 #endif // PIDTEMP
224
 #endif // PIDTEMP
213
 
225
 
214
 //===========================================================================
226
 //===========================================================================
239
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
251
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
240
 
252
 
241
 #ifdef PIDTEMPBED
253
 #ifdef PIDTEMPBED
242
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
243
 
254
 
244
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
245
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
246
-    #define  DEFAULT_bedKp 10.00
247
-    #define  DEFAULT_bedKi .023
248
-    #define  DEFAULT_bedKd 305.4
255
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
256
+
257
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
258
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
259
+  #define  DEFAULT_bedKp 10.00
260
+  #define  DEFAULT_bedKi .023
261
+  #define  DEFAULT_bedKd 305.4
249
 
262
 
250
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
251
-//from pidautotune
252
-//    #define  DEFAULT_bedKp 97.1
253
-//    #define  DEFAULT_bedKi 1.41
254
-//    #define  DEFAULT_bedKd 1675.16
263
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
264
+  //from pidautotune
265
+  //#define  DEFAULT_bedKp 97.1
266
+  //#define  DEFAULT_bedKi 1.41
267
+  //#define  DEFAULT_bedKd 1675.16
255
 
268
 
256
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
269
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
257
 #endif // PIDTEMPBED
270
 #endif // PIDTEMPBED
258
 
271
 
272
+// @section extruder
259
 
273
 
260
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
274
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
261
 //can be software-disabled for whatever purposes by
275
 //can be software-disabled for whatever purposes by
296
 // #define COREXY
310
 // #define COREXY
297
 
311
 
298
 // Enable this option for Toshiba steppers
312
 // Enable this option for Toshiba steppers
299
-// #define CONFIG_STEPPERS_TOSHIBA
313
+//#define CONFIG_STEPPERS_TOSHIBA
300
 
314
 
301
 // @section homing
315
 // @section homing
302
 
316
 
311
   // #define ENDSTOPPULLUP_XMIN
325
   // #define ENDSTOPPULLUP_XMIN
312
   // #define ENDSTOPPULLUP_YMIN
326
   // #define ENDSTOPPULLUP_YMIN
313
   // #define ENDSTOPPULLUP_ZMIN
327
   // #define ENDSTOPPULLUP_ZMIN
328
+  // #define ENDSTOPPULLUP_ZPROBE
314
 #endif
329
 #endif
315
 
330
 
316
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
331
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
324
 //#define DISABLE_MAX_ENDSTOPS
339
 //#define DISABLE_MAX_ENDSTOPS
325
 //#define DISABLE_MIN_ENDSTOPS
340
 //#define DISABLE_MIN_ENDSTOPS
326
 
341
 
342
+// If you want to enable the Z Probe pin, but disable its use, uncomment the line below.
343
+// This only affects a Z Probe Endstop if you have separate Z min endstop as well and have
344
+// activated Z_PROBE_ENDSTOP below. If you are using the Z Min endstop on your Z Probe,
345
+// this has no effect.
346
+//#define DISABLE_Z_PROBE_ENDSTOP
347
+
327
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
348
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
349
+// :{0:'Low',1:'High'}
328
 #define X_ENABLE_ON 0
350
 #define X_ENABLE_ON 0
329
 #define Y_ENABLE_ON 0
351
 #define Y_ENABLE_ON 0
330
 #define Z_ENABLE_ON 0
352
 #define Z_ENABLE_ON 0
335
 #define DISABLE_X false
357
 #define DISABLE_X false
336
 #define DISABLE_Y false
358
 #define DISABLE_Y false
337
 #define DISABLE_Z false
359
 #define DISABLE_Z false
360
+
361
+// @section extruder
362
+
338
 #define DISABLE_E false // For all extruders
363
 #define DISABLE_E false // For all extruders
339
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
364
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
340
 
365
 
366
+// @section machine
367
+
341
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
368
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
342
 #define INVERT_X_DIR false
369
 #define INVERT_X_DIR false
343
 #define INVERT_Y_DIR false
370
 #define INVERT_Y_DIR false
344
 #define INVERT_Z_DIR false
371
 #define INVERT_Z_DIR false
345
 
372
 
373
+// @section extruder
374
+
375
+// For direct drive extruder v9 set to true, for geared extruder set to false.
346
 #define INVERT_E0_DIR true
376
 #define INVERT_E0_DIR true
347
 #define INVERT_E1_DIR false
377
 #define INVERT_E1_DIR false
348
 #define INVERT_E2_DIR false
378
 #define INVERT_E2_DIR false
349
 #define INVERT_E3_DIR false
379
 #define INVERT_E3_DIR false
350
 
380
 
381
+// @section homing
382
+
351
 // ENDSTOP SETTINGS:
383
 // ENDSTOP SETTINGS:
352
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
384
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
385
+// :[-1,1]
353
 #define X_HOME_DIR -1
386
 #define X_HOME_DIR -1
354
 #define Y_HOME_DIR -1
387
 #define Y_HOME_DIR -1
355
 #define Z_HOME_DIR -1
388
 #define Z_HOME_DIR -1
357
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
390
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
358
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
391
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
359
 
392
 
393
+// @section machine
394
+
360
 // Travel limits after homing (units are in mm)
395
 // Travel limits after homing (units are in mm)
361
 #define X_MIN_POS 0
396
 #define X_MIN_POS 0
362
 #define Y_MIN_POS 0
397
 #define Y_MIN_POS 0
377
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
412
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
378
   #define FILAMENT_RUNOUT_SCRIPT "M600"
413
   #define FILAMENT_RUNOUT_SCRIPT "M600"
379
 #endif
414
 #endif
415
+
380
 //===========================================================================
416
 //===========================================================================
381
 //=========================== Manual Bed Leveling ===========================
417
 //=========================== Manual Bed Leveling ===========================
382
 //===========================================================================
418
 //===========================================================================
385
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
421
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
386
 
422
 
387
 #ifdef MANUAL_BED_LEVELING
423
 #ifdef MANUAL_BED_LEVELING
388
-  #define MBL_Z_STEP 0.025
424
+  #define MBL_Z_STEP 0.025  // Step size while manually probing Z axis
389
 #endif  // MANUAL_BED_LEVELING
425
 #endif  // MANUAL_BED_LEVELING
390
 
426
 
391
 #ifdef MESH_BED_LEVELING
427
 #ifdef MESH_BED_LEVELING
402
 //============================ Bed Auto Leveling ============================
438
 //============================ Bed Auto Leveling ============================
403
 //===========================================================================
439
 //===========================================================================
404
 
440
 
441
+// @section bedlevel
442
+
405
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
443
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
406
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
444
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
407
 
445
 
465
 
503
 
466
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
504
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
467
                                                                             //Useful to retract a deployable probe.
505
                                                                             //Useful to retract a deployable probe.
468
-                                                                           
506
+
469
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
507
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
470
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
508
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
471
 
509
 
510
 #endif // ENABLE_AUTO_BED_LEVELING
548
 #endif // ENABLE_AUTO_BED_LEVELING
511
 
549
 
512
 
550
 
551
+// @section homing
552
+
513
 // The position of the homing switches
553
 // The position of the homing switches
514
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
554
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
515
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
555
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
523
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
563
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
524
 #endif
564
 #endif
525
 
565
 
566
+// @section movement
567
+
526
 /**
568
 /**
527
  * MOVEMENT SETTINGS
569
  * MOVEMENT SETTINGS
528
  */
570
  */
536
 #define DEFAULT_MAX_ACCELERATION      {2000,2000,30,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for skeinforge 40+, for older versions raise them a lot.
578
 #define DEFAULT_MAX_ACCELERATION      {2000,2000,30,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for skeinforge 40+, for older versions raise them a lot.
537
 
579
 
538
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
580
 #define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
539
-#define DEFAULT_RETRACT_ACCELERATION  3000   // E acceleration in mm/s^2 for retracts
581
+#define DEFAULT_RETRACT_ACCELERATION  3000    // E acceleration in mm/s^2 for retracts
540
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
582
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
541
 
583
 
542
-// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
543
-// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
544
-// For the other hotends it is their distance from the extruder 0 hotend.
545
-// #define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
546
-// #define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
547
-
548
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
584
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
549
 #define DEFAULT_XYJERK                20.0    // (mm/sec)
585
 #define DEFAULT_XYJERK                20.0    // (mm/sec)
550
 #define DEFAULT_ZJERK                 0.4     // (mm/sec)
586
 #define DEFAULT_ZJERK                 0.4     // (mm/sec)
555
 //============================= Additional Features ===========================
591
 //============================= Additional Features ===========================
556
 //=============================================================================
592
 //=============================================================================
557
 
593
 
594
+// @section more
595
+
558
 // Custom M code points
596
 // Custom M code points
559
 #define CUSTOM_M_CODES
597
 #define CUSTOM_M_CODES
560
 #ifdef CUSTOM_M_CODES
598
 #ifdef CUSTOM_M_CODES
565
   #endif
603
   #endif
566
 #endif
604
 #endif
567
 
605
 
606
+// @section extras
568
 
607
 
569
 // EEPROM
608
 // EEPROM
570
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
609
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
576
 
615
 
577
 #ifdef EEPROM_SETTINGS
616
 #ifdef EEPROM_SETTINGS
578
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
617
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
579
-  #define EEPROM_CHITCHAT // please keep turned on if you can.
618
+  #define EEPROM_CHITCHAT // Please keep turned on if you can.
580
 #endif
619
 #endif
581
 
620
 
621
+// @section temperature
622
+
582
 // Preheat Constants
623
 // Preheat Constants
583
 #define PLA_PREHEAT_HOTEND_TEMP 180
624
 #define PLA_PREHEAT_HOTEND_TEMP 180
584
 #define PLA_PREHEAT_HPB_TEMP 70
625
 #define PLA_PREHEAT_HPB_TEMP 70
589
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
630
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
590
 
631
 
591
 //==============================LCD and SD support=============================
632
 //==============================LCD and SD support=============================
633
+// @section lcd
592
 
634
 
593
 // Define your display language below. Replace (en) with your language code and uncomment.
635
 // Define your display language below. Replace (en) with your language code and uncomment.
594
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
636
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
595
-
596
 // See also language.h
637
 // See also language.h
597
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
638
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
598
 
639
 
615
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
656
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
616
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
657
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
617
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
658
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
618
-
619
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
659
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
620
 // http://reprap.org/wiki/PanelOne
660
 // http://reprap.org/wiki/PanelOne
621
 //#define PANEL_ONE
661
 //#define PANEL_ONE
671
 
711
 
672
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
712
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
673
 //#define LCD_I2C_VIKI
713
 //#define LCD_I2C_VIKI
714
+  
715
+// SSD1306 OLED generic display support
716
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
717
+//#define U8GLIB_SSD1306
674
 
718
 
675
 // Shift register panels
719
 // Shift register panels
676
 // ---------------------
720
 // ---------------------
677
 // 2 wire Non-latching LCD SR from:
721
 // 2 wire Non-latching LCD SR from:
678
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
722
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
679
-
723
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
680
 //#define SAV_3DLCD
724
 //#define SAV_3DLCD
681
 
725
 
726
+// @section extras
727
+
682
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
728
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
683
 //#define FAST_PWM_FAN
729
 //#define FAST_PWM_FAN
684
 
730
 
702
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
748
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
703
 // #define PHOTOGRAPH_PIN     23
749
 // #define PHOTOGRAPH_PIN     23
704
 
750
 
705
-// SF send wrong arc g-codes when using Arc Point as fillet procedure
751
+// SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
706
 //#define SF_ARC_FIX
752
 //#define SF_ARC_FIX
707
 
753
 
708
 // Support for the BariCUDA Paste Extruder.
754
 // Support for the BariCUDA Paste Extruder.
756
 #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
802
 #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
757
 
803
 
758
 //defines used in the code
804
 //defines used in the code
759
-#define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially 
805
+#define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
760
 
806
 
761
 //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
807
 //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
762
 //#define FILAMENT_LCD_DISPLAY
808
 //#define FILAMENT_LCD_DISPLAY

+ 93
- 47
Marlin/example_configurations/tvrrug/Round2/Configuration.h 查看文件

59
 #define SERIAL_PORT 0
59
 #define SERIAL_PORT 0
60
 
60
 
61
 // This determines the communication speed of the printer
61
 // This determines the communication speed of the printer
62
+// :[2400,9600,19200,38400,57600,115200,250000]
62
 #define BAUDRATE 250000
63
 #define BAUDRATE 250000
63
 
64
 
64
 // This enables the serial port associated to the Bluetooth interface
65
 // This enables the serial port associated to the Bluetooth interface
79
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
80
 // #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
80
 
81
 
81
 // This defines the number of extruders
82
 // This defines the number of extruders
83
+// :[1,2,3,4]
82
 #define EXTRUDERS 1
84
 #define EXTRUDERS 1
83
 
85
 
86
+// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
87
+// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
88
+// For the other hotends it is their distance from the extruder 0 hotend.
89
+//#define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
90
+//#define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
91
+
84
 //// The following define selects which power supply you have. Please choose the one that matches your setup
92
 //// The following define selects which power supply you have. Please choose the one that matches your setup
85
 // 1 = ATX
93
 // 1 = ATX
86
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
94
 // 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
95
+// :{1:'ATX',2:'X-Box 360'}
87
 
96
 
88
 #define POWER_SUPPLY 1
97
 #define POWER_SUPPLY 1
89
 
98
 
90
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
99
 // Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
91
-// #define PS_DEFAULT_OFF
100
+//#define PS_DEFAULT_OFF
101
+
102
+// @section temperature
92
 
103
 
93
 //===========================================================================
104
 //===========================================================================
94
 //============================= Thermal Settings ============================
105
 //============================= Thermal Settings ============================
194
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
205
   #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
195
   #define K1 0.95 //smoothing factor within the PID
206
   #define K1 0.95 //smoothing factor within the PID
196
 
207
 
197
-// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
198
-// J-Head Mk V-B
199
-    #define  DEFAULT_Kp 25.05
200
-    #define  DEFAULT_Ki 2.30
201
-    #define  DEFAULT_Kd 68.15
202
-
203
-// Ultimaker
204
-//    #define  DEFAULT_Kp 22.2
205
-//    #define  DEFAULT_Ki 1.08
206
-//    #define  DEFAULT_Kd 114
207
-
208
-// MakerGear
209
-//    #define  DEFAULT_Kp 7.0
210
-//    #define  DEFAULT_Ki 0.1
211
-//    #define  DEFAULT_Kd 12
212
-
213
-// Mendel Parts V9 on 12V
214
-//    #define  DEFAULT_Kp 63.0
215
-//    #define  DEFAULT_Ki 2.25
216
-//    #define  DEFAULT_Kd 440
208
+  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
209
+  // J-Head Mk V-B
210
+  #define  DEFAULT_Kp 25.05
211
+  #define  DEFAULT_Ki 2.30
212
+  #define  DEFAULT_Kd 68.15
213
+
214
+  // Ultimaker
215
+  //#define  DEFAULT_Kp 22.2
216
+  //#define  DEFAULT_Ki 1.08
217
+  //#define  DEFAULT_Kd 114
218
+
219
+  // MakerGear
220
+  //#define  DEFAULT_Kp 7.0
221
+  //#define  DEFAULT_Ki 0.1
222
+  //#define  DEFAULT_Kd 12
223
+
224
+  // Mendel Parts V9 on 12V
225
+  //#define  DEFAULT_Kp 63.0
226
+  //#define  DEFAULT_Ki 2.25
227
+  //#define  DEFAULT_Kd 440
228
+
217
 #endif // PIDTEMP
229
 #endif // PIDTEMP
218
 
230
 
219
 //===========================================================================
231
 //===========================================================================
241
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
253
 //#define PID_BED_DEBUG // Sends debug data to the serial port.
242
 
254
 
243
 #ifdef PIDTEMPBED
255
 #ifdef PIDTEMPBED
244
-    #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
245
 
256
 
246
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
247
-//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
248
-    #define  DEFAULT_bedKp 10.00
249
-    #define  DEFAULT_bedKi .023
250
-    #define  DEFAULT_bedKd 305.4
257
+  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
258
+
259
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
260
+  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
261
+  #define  DEFAULT_bedKp 10.00
262
+  #define  DEFAULT_bedKi .023
263
+  #define  DEFAULT_bedKd 305.4
251
 
264
 
252
-//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
253
-//from pidautotune
254
-//    #define  DEFAULT_bedKp 97.1
255
-//    #define  DEFAULT_bedKi 1.41
256
-//    #define  DEFAULT_bedKd 1675.16
265
+  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
266
+  //from pidautotune
267
+  //#define  DEFAULT_bedKp 97.1
268
+  //#define  DEFAULT_bedKi 1.41
269
+  //#define  DEFAULT_bedKd 1675.16
257
 
270
 
258
-// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
271
+  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
259
 #endif // PIDTEMPBED
272
 #endif // PIDTEMPBED
260
 
273
 
274
+// @section extruder
261
 
275
 
262
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
276
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
263
 //can be software-disabled for whatever purposes by
277
 //can be software-disabled for whatever purposes by
313
   // #define ENDSTOPPULLUP_XMIN
327
   // #define ENDSTOPPULLUP_XMIN
314
   // #define ENDSTOPPULLUP_YMIN
328
   // #define ENDSTOPPULLUP_YMIN
315
   // #define ENDSTOPPULLUP_ZMIN
329
   // #define ENDSTOPPULLUP_ZMIN
330
+  // #define ENDSTOPPULLUP_ZPROBE
316
 #endif
331
 #endif
317
 
332
 
318
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
333
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
326
 //#define DISABLE_MAX_ENDSTOPS
341
 //#define DISABLE_MAX_ENDSTOPS
327
 //#define DISABLE_MIN_ENDSTOPS
342
 //#define DISABLE_MIN_ENDSTOPS
328
 
343
 
344
+// If you want to enable the Z Probe pin, but disable its use, uncomment the line below.
345
+// This only affects a Z Probe Endstop if you have separate Z min endstop as well and have
346
+// activated Z_PROBE_ENDSTOP below. If you are using the Z Min endstop on your Z Probe,
347
+// this has no effect.
348
+//#define DISABLE_Z_PROBE_ENDSTOP
349
+
329
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
350
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
351
+// :{0:'Low',1:'High'}
330
 #define X_ENABLE_ON 1
352
 #define X_ENABLE_ON 1
331
 #define Y_ENABLE_ON 1
353
 #define Y_ENABLE_ON 1
332
 #define Z_ENABLE_ON 1
354
 #define Z_ENABLE_ON 1
337
 #define DISABLE_X false
359
 #define DISABLE_X false
338
 #define DISABLE_Y false
360
 #define DISABLE_Y false
339
 #define DISABLE_Z false
361
 #define DISABLE_Z false
362
+
363
+// @section extruder
364
+
340
 #define DISABLE_E false // For all extruders
365
 #define DISABLE_E false // For all extruders
341
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
366
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
342
 
367
 
368
+// @section machine
369
+
343
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
370
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
344
 #define INVERT_X_DIR false
371
 #define INVERT_X_DIR false
345
 #define INVERT_Y_DIR false
372
 #define INVERT_Y_DIR false
346
 #define INVERT_Z_DIR true
373
 #define INVERT_Z_DIR true
374
+
375
+// @section extruder
376
+
377
+// For direct drive extruder v9 set to true, for geared extruder set to false.
347
 #define INVERT_E0_DIR false
378
 #define INVERT_E0_DIR false
348
 #define INVERT_E1_DIR false
379
 #define INVERT_E1_DIR false
349
 #define INVERT_E2_DIR false
380
 #define INVERT_E2_DIR false
350
 #define INVERT_E3_DIR false
381
 #define INVERT_E3_DIR false
351
 
382
 
383
+// @section homing
384
+
352
 // ENDSTOP SETTINGS:
385
 // ENDSTOP SETTINGS:
353
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
386
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
387
+// :[-1,1]
354
 #define X_HOME_DIR -1
388
 #define X_HOME_DIR -1
355
 #define Y_HOME_DIR -1
389
 #define Y_HOME_DIR -1
356
 #define Z_HOME_DIR -1
390
 #define Z_HOME_DIR -1
358
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
392
 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
359
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
393
 #define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
360
 
394
 
395
+// @section machine
396
+
361
 // Travel limits after homing (units are in mm)
397
 // Travel limits after homing (units are in mm)
362
 #define X_MIN_POS 0
398
 #define X_MIN_POS 0
363
 #define Y_MIN_POS 0
399
 #define Y_MIN_POS 0
387
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
423
 // #define MESH_BED_LEVELING    // Enable mesh bed leveling
388
 
424
 
389
 #ifdef MANUAL_BED_LEVELING
425
 #ifdef MANUAL_BED_LEVELING
390
-  #define MBL_Z_STEP 0.025
426
+  #define MBL_Z_STEP 0.025  // Step size while manually probing Z axis
391
 #endif  // MANUAL_BED_LEVELING
427
 #endif  // MANUAL_BED_LEVELING
392
 
428
 
393
 #ifdef MESH_BED_LEVELING
429
 #ifdef MESH_BED_LEVELING
404
 //============================ Bed Auto Leveling ============================
440
 //============================ Bed Auto Leveling ============================
405
 //===========================================================================
441
 //===========================================================================
406
 
442
 
443
+// @section bedlevel
444
+
407
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
445
 //#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
408
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
446
 #define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
409
 
447
 
467
 
505
 
468
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
506
 //   #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
469
                                                                             //Useful to retract a deployable probe.
507
                                                                             //Useful to retract a deployable probe.
470
-                                                                           
508
+
471
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
509
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
472
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
510
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
473
 
511
 
512
 #endif // ENABLE_AUTO_BED_LEVELING
550
 #endif // ENABLE_AUTO_BED_LEVELING
513
 
551
 
514
 
552
 
553
+// @section homing
554
+
515
 // The position of the homing switches
555
 // The position of the homing switches
516
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
556
 //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
517
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
557
 //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
525
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
565
   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
526
 #endif
566
 #endif
527
 
567
 
568
+// @section movement
569
+
528
 /**
570
 /**
529
  * MOVEMENT SETTINGS
571
  * MOVEMENT SETTINGS
530
  */
572
  */
545
 #define DEFAULT_RETRACT_ACCELERATION  3000   // E acceleration in mm/s^2 for retracts
587
 #define DEFAULT_RETRACT_ACCELERATION  3000   // E acceleration in mm/s^2 for retracts
546
 #define DEFAULT_TRAVEL_ACCELERATION   500    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
588
 #define DEFAULT_TRAVEL_ACCELERATION   500    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
547
 
589
 
548
-// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
549
-// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
550
-// For the other hotends it is their distance from the extruder 0 hotend.
551
-// #define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
552
-// #define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
553
-
554
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
590
 // The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
555
 #define DEFAULT_XYJERK                20.0    // (mm/sec)
591
 #define DEFAULT_XYJERK                20.0    // (mm/sec)
556
 #define DEFAULT_ZJERK                 0.4     // (mm/sec)
592
 #define DEFAULT_ZJERK                 0.4     // (mm/sec)
561
 //============================= Additional Features ===========================
597
 //============================= Additional Features ===========================
562
 //=============================================================================
598
 //=============================================================================
563
 
599
 
600
+// @section more
601
+
564
 // Custom M code points
602
 // Custom M code points
565
 #define CUSTOM_M_CODES
603
 #define CUSTOM_M_CODES
566
 #ifdef CUSTOM_M_CODES
604
 #ifdef CUSTOM_M_CODES
571
   #endif
609
   #endif
572
 #endif
610
 #endif
573
 
611
 
612
+// @section extras
574
 
613
 
575
 // EEPROM
614
 // EEPROM
576
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
615
 // The microcontroller can store settings in the EEPROM, e.g. max velocity...
582
 
621
 
583
 #ifdef EEPROM_SETTINGS
622
 #ifdef EEPROM_SETTINGS
584
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
623
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
585
-  #define EEPROM_CHITCHAT // please keep turned on if you can.
624
+  #define EEPROM_CHITCHAT // Please keep turned on if you can.
586
 #endif
625
 #endif
587
 
626
 
627
+// @section temperature
628
+
588
 // Preheat Constants
629
 // Preheat Constants
589
 #define PLA_PREHEAT_HOTEND_TEMP 180
630
 #define PLA_PREHEAT_HOTEND_TEMP 180
590
 #define PLA_PREHEAT_HPB_TEMP 70
631
 #define PLA_PREHEAT_HPB_TEMP 70
595
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
636
 #define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255
596
 
637
 
597
 //==============================LCD and SD support=============================
638
 //==============================LCD and SD support=============================
639
+// @section lcd
598
 
640
 
599
 // Define your display language below. Replace (en) with your language code and uncomment.
641
 // Define your display language below. Replace (en) with your language code and uncomment.
600
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
642
 // en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
601
-
602
 // See also language.h
643
 // See also language.h
603
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
644
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
604
 
645
 
621
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
662
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
622
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
663
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
623
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
664
                                                  // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
624
-
625
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
665
 // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
626
 // http://reprap.org/wiki/PanelOne
666
 // http://reprap.org/wiki/PanelOne
627
 //#define PANEL_ONE
667
 //#define PANEL_ONE
677
 
717
 
678
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
718
 // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
679
 //#define LCD_I2C_VIKI
719
 //#define LCD_I2C_VIKI
720
+  
721
+// SSD1306 OLED generic display support
722
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
723
+//#define U8GLIB_SSD1306
680
 
724
 
681
 // Shift register panels
725
 // Shift register panels
682
 // ---------------------
726
 // ---------------------
683
 // 2 wire Non-latching LCD SR from:
727
 // 2 wire Non-latching LCD SR from:
684
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
728
 // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
685
-
729
+// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
686
 //#define SAV_3DLCD
730
 //#define SAV_3DLCD
687
 
731
 
732
+// @section extras
733
+
688
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
734
 // Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
689
 //#define FAST_PWM_FAN
735
 //#define FAST_PWM_FAN
690
 
736
 
708
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
754
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
709
 // #define PHOTOGRAPH_PIN     23
755
 // #define PHOTOGRAPH_PIN     23
710
 
756
 
711
-// SF send wrong arc g-codes when using Arc Point as fillet procedure
757
+// SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
712
 //#define SF_ARC_FIX
758
 //#define SF_ARC_FIX
713
 
759
 
714
 // Support for the BariCUDA Paste Extruder.
760
 // Support for the BariCUDA Paste Extruder.
762
 #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
808
 #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
763
 
809
 
764
 //defines used in the code
810
 //defines used in the code
765
-#define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially 
811
+#define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
766
 
812
 
767
 //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
813
 //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
768
 //#define FILAMENT_LCD_DISPLAY
814
 //#define FILAMENT_LCD_DISPLAY

正在加载...
取消
保存