Browse Source

Added documentation to the README.md for the sled Z probe option. CAB

Charles Bell 11 years ago
parent
commit
0a8dc0e96b
2 changed files with 77 additions and 30 deletions
  1. 2
    0
      Marlin/Configuration.h
  2. 75
    30
      README.md

+ 2
- 0
Marlin/Configuration.h View File

436
   #define Z_RAISE_BEFORE_PROBING 15    //How much the extruder will be raised before traveling to the first probing point.
436
   #define Z_RAISE_BEFORE_PROBING 15    //How much the extruder will be raised before traveling to the first probing point.
437
   #define Z_RAISE_BETWEEN_PROBINGS 5  //How much the extruder will be raised when traveling from between next probing points
437
   #define Z_RAISE_BETWEEN_PROBINGS 5  //How much the extruder will be raised when traveling from between next probing points
438
 
438
 
439
+  #define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
440
+  #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.
439
 
441
 
440
   //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
442
   //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
441
   //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
443
   //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.

+ 75
- 30
README.md View File

1
 ==========================
1
 ==========================
2
 Marlin 3D Printer Firmware
2
 Marlin 3D Printer Firmware
3
 ==========================
3
 ==========================
4
-[![Coverity Scan Build Status](https://scan.coverity.com/projects/2224/badge.svg)](https://scan.coverity.com/projects/2224)
5
-
4
+[![Coverity Scan Build Status](https://scan.coverity.com/projects/2224/badge.svg)](https://scan.coverity.com/projects/2224)
5
+
6
 Marlin has a GPL license because I believe in open development.
6
 Marlin has a GPL license because I believe in open development.
7
 Please do not use this code in products (3D printers, CNC etc) that are closed source or are crippled by a patent.
7
 Please do not use this code in products (3D printers, CNC etc) that are closed source or are crippled by a patent.
8
 
8
 
159
 *  G28 - Home all Axis
159
 *  G28 - Home all Axis
160
 *  G29 - Detailed Z-Probe, probes the bed at 3 points.  You must de at the home position for this to work correctly.
160
 *  G29 - Detailed Z-Probe, probes the bed at 3 points.  You must de at the home position for this to work correctly.
161
 *  G30 - Single Z Probe, probes bed at current XY location.
161
 *  G30 - Single Z Probe, probes bed at current XY location.
162
+*  G31 - Dock Z Probe sled (if enabled)
163
+*  G32 - Undock Z Probe sled (if enabled)
162
 *  G90 - Use Absolute Coordinates
164
 *  G90 - Use Absolute Coordinates
163
 *  G91 - Use Relative Coordinates
165
 *  G91 - Use Relative Coordinates
164
 *  G92 - Set current position to cordinates given
166
 *  G92 - Set current position to cordinates given
207
 *  M140 - Set bed target temp
209
 *  M140 - Set bed target temp
208
 *  M190 - Sxxx Wait for bed current temp to reach target temp. Waits only when heating
210
 *  M190 - Sxxx Wait for bed current temp to reach target temp. Waits only when heating
209
 *         Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling
211
 *         Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling
210
-*  M200 D<millimeters>- set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters).
212
+*  M200 D<millimeters>- set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters).
211
 *  M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
213
 *  M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
212
 *  M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!!
214
 *  M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!!
213
 *  M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec
215
 *  M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec
214
 *  M204 - Set default acceleration: S normal moves T filament only moves (M204 S3000 T7000) im mm/sec^2  also sets minimum segment time in ms (B20000) to prevent buffer underruns and M20 minimum feedrate
216
 *  M204 - Set default acceleration: S normal moves T filament only moves (M204 S3000 T7000) im mm/sec^2  also sets minimum segment time in ms (B20000) to prevent buffer underruns and M20 minimum feedrate
215
 *  M205 -  advanced settings:  minimum travel speed S=while printing T=travel only,  B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk
217
 *  M205 -  advanced settings:  minimum travel speed S=while printing T=travel only,  B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk
216
 *  M206 - set additional homeing offset
218
 *  M206 - set additional homeing offset
217
-*  M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting
218
-*  M208 - set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
219
+*  M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting
220
+*  M208 - set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
219
 *  M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction.
221
 *  M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction.
220
 *  M218 - set hotend offset (in mm): T<extruder_number> X<offset_on_X> Y<offset_on_Y>
222
 *  M218 - set hotend offset (in mm): T<extruder_number> X<offset_on_X> Y<offset_on_Y>
221
 *  M220 S<factor in percent>- set speed factor override percentage
223
 *  M220 S<factor in percent>- set speed factor override percentage
272
 ===============================================
274
 ===============================================
273
 Instructions for configuring Bed Auto Leveling
275
 Instructions for configuring Bed Auto Leveling
274
 ===============================================
276
 ===============================================
277
+There are two options for this feature. You may choose to use a servo mounted on the X carriage or you may use a sled that mounts on the X axis and can be docked when not in use.
278
+See the section for each option below for specifics about installation and configuration. Also included are instructions that apply to both options.
279
+
280
+Note for RAMPS users:
281
+---------------------
282
+
283
+By default, RAMPS have no power on servo bus (if you happen to have a multimeter, check the voltage on servo power pins).
284
+In order to get the servo working, you need to supply 5V to 5V pin.. You can do it using your power supply (if it has a 5V output) or jumping the "Vcc" from Arduino to the 5V RAMPS rail.
285
+These 2 pins are located just between the Reset Button and the yellow fuses... There are marks in the board showing 5V and VCC.. just connect them..
286
+If jumping the arduino Vcc do RAMPS 5V rail, take care to not use a power hungry servo, otherwise you will cause a blackout in the arduino board ;-)
287
+
288
+Instructions for Both Options
289
+-----------------------------
290
+
275
 Uncomment the "ENABLE_AUTO_BED_LEVELING" define (commented by default)
291
 Uncomment the "ENABLE_AUTO_BED_LEVELING" define (commented by default)
276
 
292
 
293
+The following options define the probing positions. These are good starting values.
294
+I recommend to keep a better clearance from borders in the first run and then make the probes as close as possible to borders:
295
+
296
+* \#define LEFT_PROBE_BED_POSITION 30
297
+* \#define RIGHT_PROBE_BED_POSITION 140
298
+* \#define BACK_PROBE_BED_POSITION 140
299
+* \#define FRONT_PROBE_BED_POSITION 30
300
+
301
+A few more options:
302
+
303
+* \#define XY_TRAVEL_SPEED 6000
304
+
305
+X and Y axis travel speed between probes, in mm/min.
306
+Bear in mind that really fast moves may render step skipping. 6000 mm/min (100mm/s) is a good value.
307
+
308
+* \#define Z_RAISE_BEFORE_PROBING 10
309
+* \#define Z_RAISE_BETWEEN_PROBINGS 10
310
+
311
+The Z axis is lifted when traveling to the first probe point by Z_RAISE_BEFORE_PROBING value
312
+and then lifted when traveling from first to second and second to third point by Z_RAISE_BETWEEN_PROBINGS.
313
+All values are in mm as usual.
314
+
315
+Servo Option Notes
316
+------------------
277
 You will probably need a swivel Z-MIN endstop in the extruder. A rc servo do a great job.
317
 You will probably need a swivel Z-MIN endstop in the extruder. A rc servo do a great job.
278
 Check the system working here: http://www.youtube.com/watch?v=3IKMeOYz-1Q (Enable English subtitles)
318
 Check the system working here: http://www.youtube.com/watch?v=3IKMeOYz-1Q (Enable English subtitles)
279
 Teasing ;-) video: http://www.youtube.com/watch?v=x8eqSQNAyro
319
 Teasing ;-) video: http://www.youtube.com/watch?v=x8eqSQNAyro
286
 
326
 
287
 * \#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 165,60} // X,Y,Z Axis Extend and Retract angles
327
 * \#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 165,60} // X,Y,Z Axis Extend and Retract angles
288
 
328
 
289
-
290
 The first define tells firmware how many servos you have.
329
 The first define tells firmware how many servos you have.
291
 The second tells what axis this servo will be attached to. In the example above, we have a servo in Z axis.
330
 The second tells what axis this servo will be attached to. In the example above, we have a servo in Z axis.
292
 The third one tells the angle in 2 situations: Probing (165º) and resting (60º). Check this with command M280 P0 S{angle} (example: M280 P0 S60 moves the servo to 60º)
331
 The third one tells the angle in 2 situations: Probing (165º) and resting (60º). Check this with command M280 P0 S{angle} (example: M280 P0 S60 moves the servo to 60º)
293
 
332
 
294
-For RAMPS users:
295
-----------------
296
-
297
-By default, RAMPS have no power on servo bus (if you happen to have a multimeter, check the voltage on servo power pins).
298
-In order to get the servo working, you need to supply 5V to 5V pin.. You can do it using your power supply (if it has a 5V output) or jumping the "Vcc" from Arduino to the 5V RAMPS rail.
299
-These 2 pins are located just between the Reset Button and the yellow fuses... There are marks in the board showing 5V and VCC.. just connect them..
300
-If jumping the arduino Vcc do RAMPS 5V rail, take care to not use a power hungry servo, otherwise you will cause a blackout in the arduino board ;-)
301
-
302
-
303
 Next you need to define the Z endstop (probe) offset from hotend.
333
 Next you need to define the Z endstop (probe) offset from hotend.
304
 My preferred method:
334
 My preferred method:
305
 
335
 
317
 * \#define Z_PROBE_OFFSET_FROM_EXTRUDER -5.1
347
 * \#define Z_PROBE_OFFSET_FROM_EXTRUDER -5.1
318
 
348
 
319
 
349
 
320
-The following options define the probing positions. These are good starting values.
321
-I recommend to keep a better clearance from borders in the first run and then make the probes as close as possible to borders:
350
+Sled Option Notes
351
+-----------------
352
+The sled option uses an electromagnet to attach and detach to/from the X carriage. See http://www.thingiverse.com/thing:396692 for more details on how to print and install this feature. It uses the same connections as the servo option.
322
 
353
 
323
-* \#define LEFT_PROBE_BED_POSITION 30
324
-* \#define RIGHT_PROBE_BED_POSITION 140
325
-* \#define BACK_PROBE_BED_POSITION 140
326
-* \#define FRONT_PROBE_BED_POSITION 30
354
+To use the sled option, you must define two additional things in Configuration.h:
327
 
355
 
328
-A few more options:
356
+* \#define Z_PROBE_SLED
357
+* \#define SLED_DOCKING_OFFSET 5
329
 
358
 
330
-* \#define XY_TRAVEL_SPEED 6000
359
+Uncomment the Z_PROBE_SLED to define to enable the sled (commented out by default).
331
 
360
 
332
-X and Y axis travel speed between probes, in mm/min.
333
-Bear in mind that really fast moves may render step skipping. 6000 mm/min (100mm/s) is a good value.
361
+Uncomment the SLED_DOCKING_OFFSET to set the extra distance the X axis must travel to dock the sled. This value can be found by moving the X axis to its maximum position then measure the distance to the right X end and subtract the width of the sled (23mm if you printed the sled from Thingiverse).
334
 
362
 
335
-* \#define Z_RAISE_BEFORE_PROBING 10
336
-* \#define Z_RAISE_BETWEEN_PROBINGS 10
363
+Next you need to define the Z endstop (probe) offset from hotend.
364
+My preferred method:
337
 
365
 
338
-The Z axis is lifted when traveling to the first probe point by Z_RAISE_BEFORE_PROBING value
339
-and then lifted when traveling from first to second and second to third point by Z_RAISE_BETWEEN_PROBINGS.
340
-All values are in mm as usual. 
366
+* a) Home the X and Y axes.
367
+* b) Move the X axis to about the center of the print bed. Make a mark on the print bed.
368
+* c) Move the Y axis to the maximum position. Make another mark.
369
+* d) Home the X axis and use a straight edge to make a line between the two points.
370
+* e) Repeat (b)-(d) reversing the X and Y. When you are done you will have two lines on the print bed. We will use these to measure the offset for the Z probe endstop.
371
+* f) Move the nozzle so that it is positioned on the center point of the two lines. You can use fine movement of 0.1mm to get it as close as possible. Note the position of X and Y.
372
+* g) Zero the Z axis with the G92 Z0 command.
373
+* h) Raise the Z axis about 20mmm.
374
+* i) Use the G32 command to retrieve the sled.
375
+* j) Now more the X and Y axis to the position recorded in (f).
376
+* k) Lower the Z axis in 0.1mm steps until you hear the "click" meaning the mechanical endstop was trigged. You can confirm with the M119 command. Note the position of the Z axis.
377
+* l) Make a mark on the print bed where the endstop lever has touched the print bed. Raise the Z-axis about 30mm to give yourself some room.
378
+* m) Now measure the distance from the center point to the endstop impact site along the X and Y axis using the lines drawn previously.
379
+* n) Fill in the values below. If the endstop mark is in front of the line running left-to-right, use positive values. If it is behind, use negative values. For the Z axis use the value from (k) and subtract 0.1mm.
380
+
381
+For example, suppose you measured the endstop position and it was 20mm to the right of the line running front-to-back, 10mm toward the front of the line running left-to-right, and the value from (k) was 2.85. The values for the defines would be:
382
+
383
+* \#define X_PROBE_OFFSET_FROM_EXTRUDER 20
384
+* \#define Y_PROBE_OFFSET_FROM_EXTRUDER 10
385
+* \#define Z_PROBE_OFFSET_FROM_EXTRUDER 2.75
341
 
386
 
342
 That's it.. enjoy never having to calibrate your Z endstop neither leveling your bed by hand anymore ;-)
387
 That's it.. enjoy never having to calibrate your Z endstop neither leveling your bed by hand anymore ;-)
343
 
388
 

Loading…
Cancel
Save