Browse Source

Merge pull request #837 from whosawhatsis/fwretract

FWRETRACT in mm/s
nothinman 10 years ago
parent
commit
c23376f2e7
3 changed files with 26 additions and 26 deletions
  1. 2
    2
      Marlin/Configuration_adv.h
  2. 6
    6
      Marlin/Marlin_main.cpp
  3. 18
    18
      Marlin/language.h

+ 2
- 2
Marlin/Configuration_adv.h View File

410
 #ifdef FWRETRACT
410
 #ifdef FWRETRACT
411
   #define MIN_RETRACT 0.1                //minimum extruded mm to accept a automatic gcode retraction attempt
411
   #define MIN_RETRACT 0.1                //minimum extruded mm to accept a automatic gcode retraction attempt
412
   #define RETRACT_LENGTH 3               //default retract length (positive mm)
412
   #define RETRACT_LENGTH 3               //default retract length (positive mm)
413
-  #define RETRACT_FEEDRATE 80*60         //default feedrate for retracting
413
+  #define RETRACT_FEEDRATE 45            //default feedrate for retracting (mm/s)
414
   #define RETRACT_ZLIFT 0                //default retract Z-lift
414
   #define RETRACT_ZLIFT 0                //default retract Z-lift
415
   #define RETRACT_RECOVER_LENGTH 0       //default additional recover length (mm, added to retract length when recovering)
415
   #define RETRACT_RECOVER_LENGTH 0       //default additional recover length (mm, added to retract length when recovering)
416
-  #define RETRACT_RECOVER_FEEDRATE 8*60  //default feedrate for recovering from retraction
416
+  #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
417
 #endif
417
 #endif
418
 
418
 
419
 //adds support for experimental filament exchange support M600; requires display
419
 //adds support for experimental filament exchange support M600; requires display

+ 6
- 6
Marlin/Marlin_main.cpp View File

1119
       current_position[E_AXIS]+=retract_length/volumetric_multiplier[active_extruder];
1119
       current_position[E_AXIS]+=retract_length/volumetric_multiplier[active_extruder];
1120
       plan_set_e_position(current_position[E_AXIS]);
1120
       plan_set_e_position(current_position[E_AXIS]);
1121
       float oldFeedrate = feedrate;
1121
       float oldFeedrate = feedrate;
1122
-      feedrate=retract_feedrate;
1122
+      feedrate=retract_feedrate*60;
1123
       retracted=true;
1123
       retracted=true;
1124
       prepare_move();
1124
       prepare_move();
1125
       current_position[Z_AXIS]-=retract_zlift;
1125
       current_position[Z_AXIS]-=retract_zlift;
1137
       current_position[E_AXIS]-=(retract_length+retract_recover_length)/volumetric_multiplier[active_extruder]; 
1137
       current_position[E_AXIS]-=(retract_length+retract_recover_length)/volumetric_multiplier[active_extruder]; 
1138
       plan_set_e_position(current_position[E_AXIS]);
1138
       plan_set_e_position(current_position[E_AXIS]);
1139
       float oldFeedrate = feedrate;
1139
       float oldFeedrate = feedrate;
1140
-      feedrate=retract_recover_feedrate;
1140
+      feedrate=retract_recover_feedrate*60;
1141
       retracted=false;
1141
       retracted=false;
1142
       prepare_move();
1142
       prepare_move();
1143
       feedrate = oldFeedrate;
1143
       feedrate = oldFeedrate;
2339
       break;
2339
       break;
2340
     #endif
2340
     #endif
2341
     #ifdef FWRETRACT
2341
     #ifdef FWRETRACT
2342
-    case 207: //M207 - set retract length S[positive mm] F[feedrate mm/sec] Z[additional zlift/hop]
2342
+    case 207: //M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop]
2343
     {
2343
     {
2344
       if(code_seen('S'))
2344
       if(code_seen('S'))
2345
       {
2345
       {
2347
       }
2347
       }
2348
       if(code_seen('F'))
2348
       if(code_seen('F'))
2349
       {
2349
       {
2350
-        retract_feedrate = code_value() ;
2350
+        retract_feedrate = code_value()/60 ;
2351
       }
2351
       }
2352
       if(code_seen('Z'))
2352
       if(code_seen('Z'))
2353
       {
2353
       {
2354
         retract_zlift = code_value() ;
2354
         retract_zlift = code_value() ;
2355
       }
2355
       }
2356
     }break;
2356
     }break;
2357
-    case 208: // M208 - set retract recover length S[positive mm surplus to the M207 S*] F[feedrate mm/sec]
2357
+    case 208: // M208 - set retract recover length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
2358
     {
2358
     {
2359
       if(code_seen('S'))
2359
       if(code_seen('S'))
2360
       {
2360
       {
2362
       }
2362
       }
2363
       if(code_seen('F'))
2363
       if(code_seen('F'))
2364
       {
2364
       {
2365
-        retract_recover_feedrate = code_value() ;
2365
+        retract_recover_feedrate = code_value()/60 ;
2366
       }
2366
       }
2367
     }break;
2367
     }break;
2368
     case 209: // 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.
2368
     case 209: // 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.

+ 18
- 18
Marlin/language.h View File

164
 	#define MSG_KILLED "KILLED. "
164
 	#define MSG_KILLED "KILLED. "
165
 	#define MSG_STOPPED "STOPPED. "
165
 	#define MSG_STOPPED "STOPPED. "
166
 	#define MSG_CONTROL_RETRACT  "Retract mm"
166
 	#define MSG_CONTROL_RETRACT  "Retract mm"
167
-	#define MSG_CONTROL_RETRACTF "Retract  F"
167
+	#define MSG_CONTROL_RETRACTF "Retract  V"
168
 	#define MSG_CONTROL_RETRACT_ZLIFT "Hop mm"
168
 	#define MSG_CONTROL_RETRACT_ZLIFT "Hop mm"
169
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
169
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
170
-	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet  F"
170
+	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet  V"
171
 	#define MSG_AUTORETRACT "AutoRetr."
171
 	#define MSG_AUTORETRACT "AutoRetr."
172
 	#define MSG_FILAMENTCHANGE "Change filament"
172
 	#define MSG_FILAMENTCHANGE "Change filament"
173
 	#define MSG_INIT_SDCARD "Init. SD card"
173
 	#define MSG_INIT_SDCARD "Init. SD card"
362
 	#define MSG_STOPPED "Zatrzymany. "
362
 	#define MSG_STOPPED "Zatrzymany. "
363
 	#define MSG_STEPPER_RELEASED "Zwolniony."
363
 	#define MSG_STEPPER_RELEASED "Zwolniony."
364
 	#define MSG_CONTROL_RETRACT  "Wycofaj mm"
364
 	#define MSG_CONTROL_RETRACT  "Wycofaj mm"
365
-	#define MSG_CONTROL_RETRACTF "Wycofaj  F"
365
+	#define MSG_CONTROL_RETRACTF "Wycofaj  V"
366
 	#define MSG_CONTROL_RETRACT_ZLIFT "Skok Z mm:"
366
 	#define MSG_CONTROL_RETRACT_ZLIFT "Skok Z mm:"
367
 	#define MSG_CONTROL_RETRACT_RECOVER "Cof. wycof. +mm"
367
 	#define MSG_CONTROL_RETRACT_RECOVER "Cof. wycof. +mm"
368
-	#define MSG_CONTROL_RETRACT_RECOVERF "Cof. wycof.  F"
368
+	#define MSG_CONTROL_RETRACT_RECOVERF "Cof. wycof.  V"
369
 	#define MSG_AUTORETRACT "Auto. wycofanie"
369
 	#define MSG_AUTORETRACT "Auto. wycofanie"
370
 	#define MSG_FILAMENTCHANGE "Zmien filament"
370
 	#define MSG_FILAMENTCHANGE "Zmien filament"
371
 	#define MSG_INIT_SDCARD "Inicjal. karty SD"
371
 	#define MSG_INIT_SDCARD "Inicjal. karty SD"
561
 	#define MSG_STOPPED "STOPPE."
561
 	#define MSG_STOPPED "STOPPE."
562
 	#define MSG_STEPPER_RELEASED "RELACHE."
562
 	#define MSG_STEPPER_RELEASED "RELACHE."
563
 	#define MSG_CONTROL_RETRACT "Retraction mm"
563
 	#define MSG_CONTROL_RETRACT "Retraction mm"
564
-	#define MSG_CONTROL_RETRACTF "Retraction F"
564
+	#define MSG_CONTROL_RETRACTF "Retraction V"
565
 	#define MSG_CONTROL_RETRACT_ZLIFT "Hop mm"
565
 	#define MSG_CONTROL_RETRACT_ZLIFT "Hop mm"
566
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
566
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
567
-	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet F"
567
+	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet V"
568
 	#define MSG_AUTORETRACT "Retract. Auto."
568
 	#define MSG_AUTORETRACT "Retract. Auto."
569
 	#define MSG_FILAMENTCHANGE "Changer filament"
569
 	#define MSG_FILAMENTCHANGE "Changer filament"
570
 	#define MSG_INIT_SDCARD "Init. la carte SD"
570
 	#define MSG_INIT_SDCARD "Init. la carte SD"
761
 	#define MSG_STOPPED          "GESTOPPT"
761
 	#define MSG_STOPPED          "GESTOPPT"
762
 	#define MSG_STEPPER_RELEASED "Stepper frei"
762
 	#define MSG_STEPPER_RELEASED "Stepper frei"
763
 	#define MSG_CONTROL_RETRACT  "Retract mm"
763
 	#define MSG_CONTROL_RETRACT  "Retract mm"
764
-	#define MSG_CONTROL_RETRACTF "Retract  F"
764
+	#define MSG_CONTROL_RETRACTF "Retract  V"
765
 	#define MSG_CONTROL_RETRACT_ZLIFT "Hop mm"
765
 	#define MSG_CONTROL_RETRACT_ZLIFT "Hop mm"
766
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
766
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
767
-	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet  F"
767
+	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet  V"
768
 	#define MSG_AUTORETRACT      "AutoRetr."
768
 	#define MSG_AUTORETRACT      "AutoRetr."
769
 	#define MSG_FILAMENTCHANGE "Filament wechseln"
769
 	#define MSG_FILAMENTCHANGE "Filament wechseln"
770
 	#define MSG_INIT_SDCARD "Init. SD-Card"
770
 	#define MSG_INIT_SDCARD "Init. SD-Card"
957
 	#define MSG_KILLED "PARADA DE EMERG."
957
 	#define MSG_KILLED "PARADA DE EMERG."
958
 	#define MSG_STOPPED "PARADA"
958
 	#define MSG_STOPPED "PARADA"
959
 	#define MSG_CONTROL_RETRACT  "Retraer mm"
959
 	#define MSG_CONTROL_RETRACT  "Retraer mm"
960
-	#define MSG_CONTROL_RETRACTF "Retraer  F"
960
+	#define MSG_CONTROL_RETRACTF "Retraer  V"
961
 	#define MSG_CONTROL_RETRACT_ZLIFT "Levantar mm"
961
 	#define MSG_CONTROL_RETRACT_ZLIFT "Levantar mm"
962
 	#define MSG_CONTROL_RETRACT_RECOVER "DesRet +mm"
962
 	#define MSG_CONTROL_RETRACT_RECOVER "DesRet +mm"
963
-	#define MSG_CONTROL_RETRACT_RECOVERF "DesRet F"
963
+	#define MSG_CONTROL_RETRACT_RECOVERF "DesRet V"
964
 	#define MSG_AUTORETRACT "AutoRetr."
964
 	#define MSG_AUTORETRACT "AutoRetr."
965
 	#define MSG_FILAMENTCHANGE "Change filament"
965
 	#define MSG_FILAMENTCHANGE "Change filament"
966
 	#define MSG_INIT_SDCARD "Iniciando tarjeta"
966
 	#define MSG_INIT_SDCARD "Iniciando tarjeta"
1162
 	#define MSG_KILLED							"УБИТО."
1162
 	#define MSG_KILLED							"УБИТО."
1163
 	#define MSG_STOPPED							"ОСТАНОВЛЕНО."
1163
 	#define MSG_STOPPED							"ОСТАНОВЛЕНО."
1164
 	#define MSG_CONTROL_RETRACT					"Откат mm:"
1164
 	#define MSG_CONTROL_RETRACT					"Откат mm:"
1165
-	#define MSG_CONTROL_RETRACTF				"Откат  F:"
1165
+	#define MSG_CONTROL_RETRACTF				"Откат  V:"
1166
 	#define MSG_CONTROL_RETRACT_ZLIFT			"Прыжок mm:"
1166
 	#define MSG_CONTROL_RETRACT_ZLIFT			"Прыжок mm:"
1167
 	#define MSG_CONTROL_RETRACT_RECOVER			"Возврат +mm:"
1167
 	#define MSG_CONTROL_RETRACT_RECOVER			"Возврат +mm:"
1168
-	#define MSG_CONTROL_RETRACT_RECOVERF		"Возврат  F:"
1168
+	#define MSG_CONTROL_RETRACT_RECOVERF		"Возврат  V:"
1169
 	#define MSG_AUTORETRACT						"АвтоОткат:"
1169
 	#define MSG_AUTORETRACT						"АвтоОткат:"
1170
 	#define MSG_FILAMENTCHANGE 					"Change filament"
1170
 	#define MSG_FILAMENTCHANGE 					"Change filament"
1171
 	#define MSG_INIT_SDCARD 					"Init. SD-Card"
1171
 	#define MSG_INIT_SDCARD 					"Init. SD-Card"
1357
 	#define MSG_KILLED               "UCCISO. "
1357
 	#define MSG_KILLED               "UCCISO. "
1358
 	#define MSG_STOPPED              "ARRESTATO. "
1358
 	#define MSG_STOPPED              "ARRESTATO. "
1359
 	#define MSG_CONTROL_RETRACT      "Ritrai mm"
1359
 	#define MSG_CONTROL_RETRACT      "Ritrai mm"
1360
-	#define MSG_CONTROL_RETRACTF     "Ritrai  F"
1360
+	#define MSG_CONTROL_RETRACTF     "Ritrai  V"
1361
 	#define MSG_CONTROL_RETRACT_ZLIFT "Salta mm"
1361
 	#define MSG_CONTROL_RETRACT_ZLIFT "Salta mm"
1362
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
1362
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
1363
-	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet  F"
1363
+	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet  V"
1364
 	#define MSG_AUTORETRACT          "AutoArretramento"
1364
 	#define MSG_AUTORETRACT          "AutoArretramento"
1365
 	#define MSG_FILAMENTCHANGE       "Cambia filamento"
1365
 	#define MSG_FILAMENTCHANGE       "Cambia filamento"
1366
 	#define MSG_INIT_SDCARD          "Iniz. SD-Card"
1366
 	#define MSG_INIT_SDCARD          "Iniz. SD-Card"
1560
 	#define MSG_STOPPED "PARADA. "
1560
 	#define MSG_STOPPED "PARADA. "
1561
 	#define MSG_STEPPER_RELEASED "Lancado."
1561
 	#define MSG_STEPPER_RELEASED "Lancado."
1562
 	#define MSG_CONTROL_RETRACT  " Retrair mm:"
1562
 	#define MSG_CONTROL_RETRACT  " Retrair mm:"
1563
-	#define MSG_CONTROL_RETRACTF " Retrair  F:"
1563
+	#define MSG_CONTROL_RETRACTF " Retrair  V:"
1564
 	#define MSG_CONTROL_RETRACT_ZLIFT " Levantar mm:"
1564
 	#define MSG_CONTROL_RETRACT_ZLIFT " Levantar mm:"
1565
 	#define MSG_CONTROL_RETRACT_RECOVER " DesRet +mm:"
1565
 	#define MSG_CONTROL_RETRACT_RECOVER " DesRet +mm:"
1566
-	#define MSG_CONTROL_RETRACT_RECOVERF " DesRet  F:"
1566
+	#define MSG_CONTROL_RETRACT_RECOVERF " DesRet  V:"
1567
 	#define MSG_AUTORETRACT " AutoRetr.:"
1567
 	#define MSG_AUTORETRACT " AutoRetr.:"
1568
 	#define MSG_FILAMENTCHANGE "Change filament"
1568
 	#define MSG_FILAMENTCHANGE "Change filament"
1569
 	#define MSG_INIT_SDCARD "Init. SD-Card"
1569
 	#define MSG_INIT_SDCARD "Init. SD-Card"
1758
 	#define MSG_KILLED "KILLED. "
1758
 	#define MSG_KILLED "KILLED. "
1759
 	#define MSG_STOPPED "STOPPED. "
1759
 	#define MSG_STOPPED "STOPPED. "
1760
 	#define MSG_CONTROL_RETRACT  "Veda mm"
1760
 	#define MSG_CONTROL_RETRACT  "Veda mm"
1761
-	#define MSG_CONTROL_RETRACTF "Veda F"
1761
+	#define MSG_CONTROL_RETRACTF "Veda V"
1762
 	#define MSG_CONTROL_RETRACT_ZLIFT "Z mm"
1762
 	#define MSG_CONTROL_RETRACT_ZLIFT "Z mm"
1763
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
1763
 	#define MSG_CONTROL_RETRACT_RECOVER "UnRet +mm"
1764
-	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet  F"
1764
+	#define MSG_CONTROL_RETRACT_RECOVERF "UnRet  V"
1765
 	#define MSG_AUTORETRACT "AutoVeto."
1765
 	#define MSG_AUTORETRACT "AutoVeto."
1766
 	#define MSG_FILAMENTCHANGE "Change filament"
1766
 	#define MSG_FILAMENTCHANGE "Change filament"
1767
 	#define MSG_INIT_SDCARD "Init. SD-Card"
1767
 	#define MSG_INIT_SDCARD "Init. SD-Card"

Loading…
Cancel
Save