Browse Source

Merge branch 'Marlin_v1' of https://github.com/ErikZalm/Marlin into Marlin_v1

Neil Darlow 11 years ago
parent
commit
73b380d8d2
7 changed files with 48 additions and 33 deletions
  1. 1
    1
      Marlin/Configuration.h
  2. 2
    2
      Marlin/Configuration_adv.h
  3. 15
    8
      Marlin/Marlin_main.cpp
  4. 18
    18
      Marlin/language.h
  5. 1
    1
      Marlin/pins.h
  6. 8
    0
      Marlin/thermistortables.h
  7. 3
    3
      README.md

+ 1
- 1
Marlin/Configuration.h View File

@@ -116,7 +116,7 @@
116 116
 // 9 is 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)
117 117
 // 10 is 100k RS thermistor 198-961 (4.7k pullup)
118 118
 // 20 is the PT100 circuit found in the Ultimainboard V2.x
119
-// 60 is 100k Maker's Tool Works Kapton Bed Thermistor
119
+// 60 is 100k Maker's Tool Works Kapton Bed Thermistor beta=3950
120 120
 //
121 121
 //    1k ohm pullup tables - This is not normal, you would have to have changed out your 4.7k for 1k
122 122
 //                          (but gives greater accuracy and more stable PID)

+ 2
- 2
Marlin/Configuration_adv.h View File

@@ -410,10 +410,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
410 410
 #ifdef FWRETRACT
411 411
   #define MIN_RETRACT 0.1                //minimum extruded mm to accept a automatic gcode retraction attempt
412 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 414
   #define RETRACT_ZLIFT 0                //default retract Z-lift
415 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 417
 #endif
418 418
 
419 419
 //adds support for experimental filament exchange support M600; requires display

+ 15
- 8
Marlin/Marlin_main.cpp View File

@@ -1119,7 +1119,7 @@ void refresh_cmd_timeout(void)
1119 1119
       current_position[E_AXIS]+=retract_length/volumetric_multiplier[active_extruder];
1120 1120
       plan_set_e_position(current_position[E_AXIS]);
1121 1121
       float oldFeedrate = feedrate;
1122
-      feedrate=retract_feedrate;
1122
+      feedrate=retract_feedrate*60;
1123 1123
       retracted=true;
1124 1124
       prepare_move();
1125 1125
       current_position[Z_AXIS]-=retract_zlift;
@@ -1137,7 +1137,7 @@ void refresh_cmd_timeout(void)
1137 1137
       current_position[E_AXIS]-=(retract_length+retract_recover_length)/volumetric_multiplier[active_extruder]; 
1138 1138
       plan_set_e_position(current_position[E_AXIS]);
1139 1139
       float oldFeedrate = feedrate;
1140
-      feedrate=retract_recover_feedrate;
1140
+      feedrate=retract_recover_feedrate*60;
1141 1141
       retracted=false;
1142 1142
       prepare_move();
1143 1143
       feedrate = oldFeedrate;
@@ -2270,8 +2270,6 @@ void process_commands()
2270 2270
             SERIAL_ECHO_START;
2271 2271
             SERIAL_ECHO(MSG_M200_INVALID_EXTRUDER);
2272 2272
           }
2273
-          SERIAL_ECHOLN(tmp_extruder);
2274
-          break;
2275 2273
         }
2276 2274
         volumetric_multiplier[tmp_extruder] = 1 / area;
2277 2275
       }
@@ -2343,7 +2341,7 @@ void process_commands()
2343 2341
       break;
2344 2342
     #endif
2345 2343
     #ifdef FWRETRACT
2346
-    case 207: //M207 - set retract length S[positive mm] F[feedrate mm/sec] Z[additional zlift/hop]
2344
+    case 207: //M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop]
2347 2345
     {
2348 2346
       if(code_seen('S'))
2349 2347
       {
@@ -2351,14 +2349,14 @@ void process_commands()
2351 2349
       }
2352 2350
       if(code_seen('F'))
2353 2351
       {
2354
-        retract_feedrate = code_value() ;
2352
+        retract_feedrate = code_value()/60 ;
2355 2353
       }
2356 2354
       if(code_seen('Z'))
2357 2355
       {
2358 2356
         retract_zlift = code_value() ;
2359 2357
       }
2360 2358
     }break;
2361
-    case 208: // M208 - set retract recover length S[positive mm surplus to the M207 S*] F[feedrate mm/sec]
2359
+    case 208: // M208 - set retract recover length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
2362 2360
     {
2363 2361
       if(code_seen('S'))
2364 2362
       {
@@ -2366,7 +2364,7 @@ void process_commands()
2366 2364
       }
2367 2365
       if(code_seen('F'))
2368 2366
       {
2369
-        retract_recover_feedrate = code_value() ;
2367
+        retract_recover_feedrate = code_value()/60 ;
2370 2368
       }
2371 2369
     }break;
2372 2370
     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.
@@ -3053,7 +3051,16 @@ void process_commands()
3053 3051
         // Set the new active extruder and position
3054 3052
         active_extruder = tmp_extruder;
3055 3053
       #endif //else DUAL_X_CARRIAGE
3054
+#ifdef DELTA 
3055
+
3056
+  calculate_delta(current_position); // change cartesian kinematic  to  delta kinematic;
3057
+   //sent position to plan_set_position();
3058
+  plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS],current_position[E_AXIS]);
3059
+            
3060
+#else
3056 3061
         plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
3062
+
3063
+#endif
3057 3064
         // Move to the old position if 'F' was in the parameters
3058 3065
         if(make_move && Stopped == false) {
3059 3066
            prepare_move();

+ 18
- 18
Marlin/language.h View File

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

+ 1
- 1
Marlin/pins.h View File

@@ -502,7 +502,7 @@
502 502
   #endif
503 503
 
504 504
   #if MOTHERBOARD == 35
505
-    #define CONTROLLERFAN_PIN  10 //Pin used for the fan to cool controller
505
+    #define CONTROLLERFAN_PIN  -1 //Pin used for the fan to cool controller
506 506
   #endif
507 507
 
508 508
   #define PS_ON_PIN          12

+ 8
- 0
Marlin/thermistortables.h View File

@@ -781,6 +781,14 @@ const short temptable_55[][2] PROGMEM = {
781 781
 #endif
782 782
 
783 783
 #if (THERMISTORHEATER_0 == 60) || (THERMISTORHEATER_1 == 60) || (THERMISTORHEATER_2 == 60) || (THERMISTORBED == 60) // Maker's Tool Works Kapton Bed Thermister
784
+// ./createTemperatureLookup.py --r0=100000 --t0=25 --r1=0 --r2=4700 --beta=3950 
785
+// r0: 100000
786
+// t0: 25
787
+// r1: 0 (parallel with rTherm)
788
+// r2: 4700 (series with rTherm)
789
+// beta: 3950
790
+// min adc: 1 at 0.0048828125 V
791
+// max adc: 1023 at 4.9951171875 V
784 792
 const short temptable_60[][2] PROGMEM = {
785 793
    {51*OVERSAMPLENR, 272},
786 794
    {61*OVERSAMPLENR, 258},

+ 3
- 3
README.md View File

@@ -204,15 +204,15 @@ M Codes
204 204
 *  M140 - Set bed target temp
205 205
 *  M190 - Sxxx Wait for bed current temp to reach target temp. Waits only when heating
206 206
 *         Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling
207
-*  M200 - Set filament diameter
207
+*  M200 D<millimeters>- set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters).
208 208
 *  M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
209 209
 *  M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!!
210 210
 *  M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec
211 211
 *  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
212 212
 *  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
213 213
 *  M206 - set additional homeing offset
214
-*  M207 - set retract length S[positive mm] F[feedrate mm/sec] Z[additional zlift/hop]
215
-*  M208 - set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/sec]
214
+*  M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting
215
+*  M208 - set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
216 216
 *  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.
217 217
 *  M218 - set hotend offset (in mm): T<extruder_number> X<offset_on_X> Y<offset_on_Y>
218 218
 *  M220 S<factor in percent>- set speed factor override percentage

Loading…
Cancel
Save