Quellcode durchsuchen

Merge branch 'Development' into manual-bed-leveling+mesh-bed-level

Edward Patel vor 10 Jahren
Ursprung
Commit
240b5cfe04
2 geänderte Dateien mit 9 neuen und 2 gelöschten Zeilen
  1. 1
    1
      Documentation/GCodes.md
  2. 8
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Documentation/GCodes.md Datei anzeigen

@@ -66,7 +66,7 @@
66 66
 *  M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
67 67
 *  M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!!
68 68
 *  M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec
69
-*  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
69
+*  M204 - Set default acceleration: P for Printing moves, R for Retract only (no X, Y, Z) moves and T for Travel (non printing) moves (ex. M204 P800 T3000 R9000) in mm/sec^2
70 70
 *  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
71 71
 *  M206 - set additional homing offset
72 72
 *  M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting

+ 8
- 1
Marlin/Marlin_main.cpp Datei anzeigen

@@ -147,7 +147,7 @@
147 147
 // M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
148 148
 // M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!!
149 149
 // M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec
150
-// M204 - Set default acceleration: S normal moves T filament only moves (M204 S3000 T7000) in mm/sec^2  also sets minimum segment time in ms (B20000) to prevent buffer under-runs and M20 minimum feedrate
150
+// M204 - Set default acceleration: P for Printing moves, R for Retract only (no X, Y, Z) moves and T for Travel (non printing) moves (ex. M204 P800 T3000 R9000) in mm/sec^2
151 151
 // 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
152 152
 // M206 - Set additional homing offset
153 153
 // M207 - Set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting
@@ -3551,6 +3551,13 @@ inline void gcode_M203() {
3551 3551
  *  Also sets minimum segment time in ms (B20000) to prevent buffer under-runs and M20 minimum feedrate
3552 3552
  */
3553 3553
 inline void gcode_M204() {
3554
+  if (code_seen('S'))   // Kept for legacy compatibility. Should NOT BE USED for new developments.
3555
+  {
3556
+    acceleration = code_value();
3557
+    travel_acceleration = acceleration;
3558
+    SERIAL_ECHOPAIR("Setting Printing and Travelling Acceleration: ", acceleration );
3559
+    SERIAL_EOL;
3560
+  }
3554 3561
   if (code_seen('P'))
3555 3562
   {
3556 3563
     acceleration = code_value();

Laden…
Abbrechen
Speichern