Browse Source

Merge pull request #220 from MaikStohn/1d224cc031

Implemented support for KILL_PIN / Fixed compilation errors for incomplete/bad translations
ErikZalm 13 years ago
parent
commit
825adbd67b
7 changed files with 148 additions and 112 deletions
  1. 1
    1
      Marlin/Marlin.h
  2. 30
    18
      Marlin/Marlin.pde
  3. 103
    88
      Marlin/language.h
  4. 1
    1
      Marlin/planner.cpp
  5. 1
    1
      Marlin/stepper.cpp
  6. 3
    0
      Marlin/ultralcd.h
  7. 9
    3
      Marlin/ultralcd.pde

+ 1
- 1
Marlin/Marlin.h View File

107
 void get_command();
107
 void get_command();
108
 void process_commands();
108
 void process_commands();
109
 
109
 
110
-void manage_inactivity(byte debug);
110
+void manage_inactivity();
111
 
111
 
112
 #if X_ENABLE_PIN > -1
112
 #if X_ENABLE_PIN > -1
113
   #define  enable_x() WRITE(X_ENABLE_PIN, X_ENABLE_ON)
113
   #define  enable_x() WRITE(X_ENABLE_PIN, X_ENABLE_ON)

+ 30
- 18
Marlin/Marlin.pde View File

245
   }
245
   }
246
 }
246
 }
247
 
247
 
248
+void setup_killpin()
249
+{
250
+  #if( KILL_PIN>-1 )
251
+    pinMode(KILL_PIN,INPUT);
252
+    WRITE(KILL_PIN,HIGH);
253
+  #endif
254
+}
255
+    
248
 void setup_photpin()
256
 void setup_photpin()
249
 {
257
 {
250
   #ifdef PHOTOGRAPH_PIN
258
   #ifdef PHOTOGRAPH_PIN
276
 }
284
 }
277
 
285
 
278
 void setup()
286
 void setup()
279
-{ 
287
+{
288
+  setup_killpin(); 
280
   setup_powerhold();
289
   setup_powerhold();
281
   MYSERIAL.begin(BAUDRATE);
290
   MYSERIAL.begin(BAUDRATE);
282
   SERIAL_PROTOCOLLNPGM("start");
291
   SERIAL_PROTOCOLLNPGM("start");
365
   }
374
   }
366
   //check heater every n milliseconds
375
   //check heater every n milliseconds
367
   manage_heater();
376
   manage_heater();
368
-  manage_inactivity(1);
377
+  manage_inactivity();
369
   checkHitEndstops();
378
   checkHitEndstops();
370
   LCD_STATUS;
379
   LCD_STATUS;
371
 }
380
 }
653
       previous_millis_cmd = millis();
662
       previous_millis_cmd = millis();
654
       while(millis()  < codenum ){
663
       while(millis()  < codenum ){
655
         manage_heater();
664
         manage_heater();
656
-        manage_inactivity(1);
657
-		LCD_STATUS;
665
+        manage_inactivity();
666
+        LCD_STATUS;
658
       }
667
       }
659
       break;
668
       break;
660
       #ifdef FWRETRACT  
669
       #ifdef FWRETRACT  
816
       
825
       
817
       st_synchronize();
826
       st_synchronize();
818
       previous_millis_cmd = millis();
827
       previous_millis_cmd = millis();
819
-	  if (codenum > 0)
820
-	  {
828
+      if (codenum > 0){
821
         codenum += millis();  // keep track of when we started waiting
829
         codenum += millis();  // keep track of when we started waiting
822
         while(millis()  < codenum && !CLICKED){
830
         while(millis()  < codenum && !CLICKED){
823
           manage_heater();
831
           manage_heater();
824
-          manage_inactivity(1);
825
-		  LCD_STATUS;
826
-		}
832
+          manage_inactivity();
833
+          LCD_STATUS;
834
+        }
827
       }else{
835
       }else{
828
-        while(!CLICKED) {
836
+        while(!CLICKED){
829
           manage_heater();
837
           manage_heater();
830
-          manage_inactivity(1);
831
-		  LCD_STATUS;
832
-		}
833
-	  }
838
+          manage_inactivity();
839
+          LCD_STATUS;
840
+        }
841
+      }
834
     }
842
     }
835
     break;
843
     break;
836
 #endif
844
 #endif
1064
             codenum = millis();
1072
             codenum = millis();
1065
           }
1073
           }
1066
           manage_heater();
1074
           manage_heater();
1067
-          manage_inactivity(1);
1075
+          manage_inactivity();
1068
           LCD_STATUS;
1076
           LCD_STATUS;
1069
         #ifdef TEMP_RESIDENCY_TIME
1077
         #ifdef TEMP_RESIDENCY_TIME
1070
             /* start/restart the TEMP_RESIDENCY_TIME timer whenever we reach target temp for the first time
1078
             /* start/restart the TEMP_RESIDENCY_TIME timer whenever we reach target temp for the first time
1102
             codenum = millis(); 
1110
             codenum = millis(); 
1103
           }
1111
           }
1104
           manage_heater();
1112
           manage_heater();
1105
-          manage_inactivity(1);
1113
+          manage_inactivity();
1106
           LCD_STATUS;
1114
           LCD_STATUS;
1107
         }
1115
         }
1108
         LCD_MESSAGEPGM(MSG_BED_DONE);
1116
         LCD_MESSAGEPGM(MSG_BED_DONE);
1664
 }
1672
 }
1665
 #endif
1673
 #endif
1666
 
1674
 
1667
-void manage_inactivity(byte debug) 
1675
+void manage_inactivity() 
1668
 { 
1676
 { 
1669
   if( (millis() - previous_millis_cmd) >  max_inactive_time ) 
1677
   if( (millis() - previous_millis_cmd) >  max_inactive_time ) 
1670
     if(max_inactive_time) 
1678
     if(max_inactive_time) 
1682
       }
1690
       }
1683
     }
1691
     }
1684
   }
1692
   }
1693
+  #if( KILL_PIN>-1 )
1694
+    if( 0 == READ(KILL_PIN) )
1695
+      kill();
1696
+  #endif
1685
   #ifdef CONTROLLERFAN_PIN
1697
   #ifdef CONTROLLERFAN_PIN
1686
     controllerFan(); //Check if fan should be turned on to cool stepper drivers down
1698
     controllerFan(); //Check if fan should be turned on to cool stepper drivers down
1687
   #endif
1699
   #endif
1722
   if(PS_ON_PIN > -1) pinMode(PS_ON_PIN,INPUT);
1734
   if(PS_ON_PIN > -1) pinMode(PS_ON_PIN,INPUT);
1723
   SERIAL_ERROR_START;
1735
   SERIAL_ERROR_START;
1724
   SERIAL_ERRORLNPGM(MSG_ERR_KILLED);
1736
   SERIAL_ERRORLNPGM(MSG_ERR_KILLED);
1725
-  LCD_MESSAGEPGM(MSG_KILLED);
1737
+  LCD_ALERTMESSAGEPGM(MSG_KILLED);
1726
   suicide();
1738
   suicide();
1727
   while(1); // Wait for reset
1739
   while(1); // Wait for reset
1728
 }
1740
 }

+ 103
- 88
Marlin/language.h View File

1
 #ifndef LANGUAGE_H
1
 #ifndef LANGUAGE_H
2
 #define LANGUAGE_H
2
 #define LANGUAGE_H
3
 
3
 
4
+// NOTE: IF YOU CHANGE THIS FILE / MERGE THIS FILE WITH CHANGES
5
+//
6
+//   ==> ALWAYS TRY TO COMPILE MARLIN WITH/WITHOUT "ULTIPANEL" / "ULTRALCD" / "SDSUPPORT" #define IN "Configuration.h" 
7
+//   ==> ALSO TRY ALL AVAILABLE "LANGUAGE_CHOICE" OPTIONS
8
+
4
 // Languages
9
 // Languages
5
-// 1  Custom (For you to add your own messages)
6
-// 2  English 
10
+// 1  English
11
+// 2  -
7
 // 3  French	(Waiting translation)
12
 // 3  French	(Waiting translation)
8
-// 4  German	(Waiting translation)
13
+// 4  German
9
 // 5  Spanish
14
 // 5  Spanish
10
 // 6  Etc
15
 // 6  Etc
11
 
16
 
35
 	#define MSG_DISABLE_STEPPERS " Disable Steppers"
40
 	#define MSG_DISABLE_STEPPERS " Disable Steppers"
36
 	#define MSG_AUTO_HOME " Auto Home"
41
 	#define MSG_AUTO_HOME " Auto Home"
37
 	#define MSG_SET_ORIGIN " Set Origin"
42
 	#define MSG_SET_ORIGIN " Set Origin"
43
+	#define MSG_PREHEAT_PLA " Preheat PLA"
44
+	#define MSG_PREHEAT_PLA_SETTINGS " Preheat PLA Setting"
45
+	#define MSG_PREHEAT_ABS " Preheat ABS"
46
+	#define MSG_PREHEAT_ABS_SETTINGS " Preheat ABS Setting"
38
 	#define MSG_COOLDOWN " Cooldown"
47
 	#define MSG_COOLDOWN " Cooldown"
39
 	#define MSG_EXTRUDE " Extrude"
48
 	#define MSG_EXTRUDE " Extrude"
40
-	#define MSG_RETRACT " Extract"
49
+	#define MSG_RETRACT " Retract"
41
 	#define MSG_PREHEAT_PLA " Preheat PLA"
50
 	#define MSG_PREHEAT_PLA " Preheat PLA"
42
 	#define MSG_PREHEAT_ABS " Preheat ABS"
51
 	#define MSG_PREHEAT_ABS " Preheat ABS"
43
 	#define MSG_MOVE_AXIS " Move Axis      \x7E"
52
 	#define MSG_MOVE_AXIS " Move Axis      \x7E"
87
 	#define MSG_PREPARE " Prepare \x7E"
96
 	#define MSG_PREPARE " Prepare \x7E"
88
 	#define MSG_PREPARE_ALT " Prepare \003"
97
 	#define MSG_PREPARE_ALT " Prepare \003"
89
 	#define MSG_CONTROL_ARROW " Control \x7E"
98
 	#define MSG_CONTROL_ARROW " Control \x7E"
90
-	#define MSG_RETRACT_ARROW " Control \x7E"
99
+	#define MSG_RETRACT_ARROW " Retract \x7E"
91
 	#define MSG_TUNE " Tune    \x7E"
100
 	#define MSG_TUNE " Tune    \x7E"
92
 	#define MSG_PAUSE_PRINT " Pause Print \x7E"
101
 	#define MSG_PAUSE_PRINT " Pause Print \x7E"
93
 	#define MSG_RESUME_PRINT " Resume Print \x7E"
102
 	#define MSG_RESUME_PRINT " Resume Print \x7E"
94
 	#define MSG_STOP_PRINT " Stop Print   \x7E"
103
 	#define MSG_STOP_PRINT " Stop Print   \x7E"
95
 	#define MSG_CARD_MENU " Card Menu    \x7E"
104
 	#define MSG_CARD_MENU " Card Menu    \x7E"
96
 	#define MSG_NO_CARD " No Card"
105
 	#define MSG_NO_CARD " No Card"
97
-	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
98
 	#define MSG_DWELL "Sleep..."
106
 	#define MSG_DWELL "Sleep..."
99
 	#define MSG_USERWAIT "Wait for user..."
107
 	#define MSG_USERWAIT "Wait for user..."
100
 	#define MSG_NO_MOVE "No move."
108
 	#define MSG_NO_MOVE "No move."
101
 	#define MSG_PART_RELEASE "Partial Release"
109
 	#define MSG_PART_RELEASE "Partial Release"
102
 	#define MSG_KILLED "KILLED. "
110
 	#define MSG_KILLED "KILLED. "
103
 	#define MSG_STOPPED "STOPPED. "
111
 	#define MSG_STOPPED "STOPPED. "
104
-	#define MSG_PREHEAT_PLA " Preheat PLA"
105
-	#define MSG_PREHEAT_PLA_SETTINGS " Preheat PLA Setting"
106
-	#define MSG_PREHEAT_ABS_SETTINGS " Preheat ABS Setting"
107
-	#define MSG_PREHEAT_ABS " Preheat ABS"
108
 	#define MSG_STEPPER_RELEASED "Released."
112
 	#define MSG_STEPPER_RELEASED "Released."
109
 	#define MSG_CONTROL_RETRACT  " Retract mm:"
113
 	#define MSG_CONTROL_RETRACT  " Retract mm:"
110
 	#define MSG_CONTROL_RETRACTF " Retract  F:"
114
 	#define MSG_CONTROL_RETRACTF " Retract  F:"
112
 	#define MSG_CONTROL_RETRACT_RECOVER " UnRet +mm:"
116
 	#define MSG_CONTROL_RETRACT_RECOVER " UnRet +mm:"
113
 	#define MSG_CONTROL_RETRACT_RECOVERF " UnRet  F:"
117
 	#define MSG_CONTROL_RETRACT_RECOVERF " UnRet  F:"
114
 	#define MSG_AUTORETRACT " AutoRetr.:"
118
 	#define MSG_AUTORETRACT " AutoRetr.:"
119
+        #define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
115
 
120
 
116
 // Serial Console Messages
121
 // Serial Console Messages
117
 
122
 
184
 
189
 
185
 // LCD Menu Messages
190
 // LCD Menu Messages
186
 
191
 
187
-	#define WELCOME_MSG MACHINE_NAME " Ready."
192
+	#define WELCOME_MSG MACHINE_NAME " Bereit."
188
 
193
 
189
-	#define MSG_SD_INSERTED "Card inserted"
190
-	#define MSG_SD_REMOVED "Card removed"
191
-	#define MSG_MAIN " Main \003"
192
-	#define MSG_AUTOSTART " Autostart"
194
+	#define MSG_SD_INSERTED      "SDKarte erkannt"
195
+	#define MSG_SD_REMOVED       "SDKarte entfernt"
196
+	#define MSG_MAIN             " Hauptmneü \003"
197
+	#define MSG_AUTOSTART        " Autostart"
193
 	#define MSG_DISABLE_STEPPERS " Stepper abschalten"
198
 	#define MSG_DISABLE_STEPPERS " Stepper abschalten"
194
-	#define MSG_AUTO_HOME " Auto Heim"
195
-	#define MSG_SET_ORIGIN " Position setzen"
196
-	#define MSG_PREHEAT_PLA " Aufheizen PLA"
197
-	#define MSG_PREHEAT_ABS " Aufheizen ABS"
198
-	#define MSG_COOLDOWN " Abkuehlen"
199
-	#define MSG_EXTRUDE " Extrude"
200
-	#define MSG_PREHEAT_PLA " Preheat PLA"
201
-	#define MSG_PREHEAT_ABS " Preheat ABS"
202
-	#define MSG_MOVE_AXIS " Move Axis      \x7E"
203
-	#define MSG_MOVE_AXIS " Achsen verfahren   \x7E"
204
-	#define MSG_SPEED " Geschw:"
205
-	#define MSG_NOZZLE " \002Duese:"
206
-	#define MSG_NOZZLE1 " \002Duese2:"
207
-	#define MSG_NOZZLE2 " \002Duese3:"
208
-	#define MSG_BED " \002Bett:"
209
-	#define MSG_FAN_SPEED " Luefter geschw.:"
210
-	#define MSG_FLOW " Fluss:"
211
-	#define MSG_CONTROL " Kontrolle \003"
212
-	#define MSG_MIN " \002 Min:"
213
-	#define MSG_MAX " \002 Max:"
214
-	#define MSG_FACTOR " \002 Faktor:"
215
-	#define MSG_AUTOTEMP " AutoTemp:"
216
-	#define MSG_ON "Ein "
217
-	#define MSG_OFF "Aus "
218
-	#define MSG_PID_P " PID-P: "
219
-	#define MSG_PID_I " PID-I: "
220
-	#define MSG_PID_D " PID-D: "
221
-	#define MSG_PID_C " PID-C: "
222
-	#define MSG_ACC  " Acc:"
223
-	#define MSG_VXY_JERK " Vxy-jerk: "
224
-	#define MSG_VMAX " Vmax "
225
-	#define MSG_X "x:"
226
-	#define MSG_Y "y:"
227
-	#define MSG_Z "z:"
228
-	#define MSG_E "e:"
229
-	#define MSG_VMIN " Vmin:"
230
-	#define MSG_VTRAV_MIN " VTrav min:"
231
-	#define MSG_AMAX " Amax "
232
-	#define MSG_A_RETRACT " A-retract:"
233
-	#define MSG_XSTEPS " Xsteps/mm:"
234
-	#define MSG_YSTEPS " Ysteps/mm:"
235
-	#define MSG_ZSTEPS " Zsteps/mm:"
236
-	#define MSG_ESTEPS " Esteps/mm:"
237
-	#define MSG_MAIN_WIDE " Main        \003"
238
-	#define MSG_TEMPERATURE_WIDE " Temperatur \x7E"
239
-	#define MSG_MOTION_WIDE " Motion      \x7E"
240
-	#define MSG_STORE_EPROM " EPROM speichern"
241
-	#define MSG_LOAD_EPROM "  EPROM laden"
242
-	#define MSG_RESTORE_FAILSAFE " Standard Konfig."
243
-	#define MSG_REFRESH "\004Refresh"
244
-	#define MSG_WATCH " Beobachten   \003"
245
-	#define MSG_PREPARE " Prepare \x7E"
246
-	#define MSG_PREPARE_ALT " Prepare \003"
247
-	#define MSG_CONTROL_ARROW " Control \x7E"
199
+	#define MSG_AUTO_HOME        " Auto Nullpunkt"
200
+	#define MSG_SET_ORIGIN       " Setze Nullpunkt"
201
+	#define MSG_PREHEAT_PLA      " Vorwärmen PLA"
202
+	#define MSG_PREHEAT_PLA_SETTINGS " Vorwärmen PLA Einstellungen"
203
+	#define MSG_PREHEAT_ABS      " Vorwärmen ABS"
204
+	#define MSG_PREHEAT_ABS_SETTINGS "  Vorwärmen ABS Einstellungen"
205
+	#define MSG_COOLDOWN         " Abkühlen"
206
+	#define MSG_EXTRUDE          " Extrude"
207
+	#define MSG_RETRACT          " Retract"
208
+	#define MSG_MOVE_AXIS        " Achsen bewegen\x7E"
209
+	#define MSG_SPEED            " Geschw:"
210
+	#define MSG_NOZZLE           " \002Düse:"
211
+	#define MSG_NOZZLE1          " \002Düse2:"
212
+	#define MSG_NOZZLE2          " \002Düse3:"
213
+	#define MSG_BED              " \002Bett:"
214
+	#define MSG_FAN_SPEED        " Lüftergeschw.:"
215
+	#define MSG_FLOW             " Fluß:"
216
+	#define MSG_CONTROL          " Einstellungen \003"
217
+	#define MSG_MIN              " \002 Min:"
218
+	#define MSG_MAX              " \002 Max:"
219
+	#define MSG_FACTOR           " \002 Faktor:"
220
+	#define MSG_AUTOTEMP         " AutoTemp:"
221
+	#define MSG_ON               "Ein "
222
+	#define MSG_OFF              "Aus "
223
+	#define MSG_PID_P            " PID-P: "
224
+	#define MSG_PID_I            " PID-I: "
225
+	#define MSG_PID_D            " PID-D: "
226
+	#define MSG_PID_C            " PID-C: "
227
+	#define MSG_ACC              " Acc:"
228
+	#define MSG_VXY_JERK         " Vxy-jerk: "
229
+	#define MSG_VMAX             " Vmax "
230
+	#define MSG_X                "x:"
231
+	#define MSG_Y                "y:"
232
+	#define MSG_Z                "z:"
233
+	#define MSG_E                "e:"
234
+	#define MSG_VMIN             " Vmin:"
235
+	#define MSG_VTRAV_MIN        " VTrav min:"
236
+	#define MSG_AMAX             " Amax "
237
+	#define MSG_A_RETRACT        " A-Retract:"
238
+	#define MSG_XSTEPS           " Xsteps/mm:"
239
+	#define MSG_YSTEPS           " Ysteps/mm:"
240
+	#define MSG_ZSTEPS           " Zsteps/mm:"
241
+	#define MSG_ESTEPS           " Esteps/mm:"
242
+	#define MSG_MAIN_WIDE        " Hauptmenü     \003"
243
+	#define MSG_RECTRACT_WIDE    " Rectract      \x7E"
244
+	#define MSG_WATCH            " Beobachten    \003"
245
+	#define MSG_TEMPERATURE_WIDE " Temperatur    \x7E"
246
+        #define MSG_TEMPERATURE_RTN  " Temperatur    \003"
247
+	#define MSG_MOTION_WIDE      " Bewegung      \x7E"
248
+	#define MSG_STORE_EPROM      " EPROM speichern"
249
+	#define MSG_LOAD_EPROM       " EPROM laden"
250
+	#define MSG_RESTORE_FAILSAFE " Standardkonfig."
251
+	#define MSG_REFRESH          "\004Aktualisieren"
252
+	#define MSG_PREPARE          " Vorbereitung  \x7E"
253
+	#define MSG_PREPARE_ALT      " Vorbereitung  \003"
254
+	#define MSG_CONTROL_ARROW    " Einstellungen \x7E"
255
+	#define MSG_TUNE             " Justierung    \x7E"
256
+	#define MSG_PAUSE_PRINT      " Druck anhalten\x7E"
257
+	#define MSG_RESUME_PRINT     " Druck fortsetz\x7E"
258
+	#define MSG_STOP_PRINT       " Druck stoppen \x7E"
259
+	#define MSG_CARD_MENU        " SDKarten Menü \x7E"
260
+	#define MSG_NO_CARD          " Keine SDKarte"
261
+	#define MSG_DWELL            "Warten..."		
262
+	#define MSG_USERWAIT         "Warte auf Nutzer..."
263
+	#define MSG_NO_MOVE          "Kein Zug."
264
+	#define MSG_PART_RELEASE     "Stepper tlw frei"
265
+	#define MSG_KILLED           "KILLED"
266
+	#define MSG_STOPPED          "GESTOPPT"
267
+	#define MSG_STEPPER_RELEASED "Stepper frei"
268
+        #define MSG_CONTROL_RETRACT  " Retract mm:"
269
+        #define MSG_CONTROL_RETRACTF " Retract  F:"
270
+        #define MSG_CONTROL_RETRACT_ZLIFT " Hop mm:"
271
+        #define MSG_CONTROL_RETRACT_RECOVER " UnRet +mm:"
272
+        #define MSG_CONTROL_RETRACT_RECOVERF " UnRet  F:"
273
+        #define MSG_AUTORETRACT      " AutoRetr.:"
274
+	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Fehler in Menüstruktur."
248
 	
275
 	
249
-	#define MSG_TUNE " Tune    \x7E"
250
-	#define MSG_STOP_PRINT " Druck stoppen   \x7E"
251
-	#define MSG_CARD_MENU " SDKarten Menue    \x7E"
252
-	#define MSG_NO_CARD " Keine SDKarte"
253
-	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Fehler in der  Menuestruktur."
254
-	#define MSG_DWELL "DWELL..."		
255
-	#define MSG_NO_MOVE "No move."
256
-	#define MSG_PART_RELEASE "Partial Release"
257
-	#define MSG_KILLED "KILLED. "
258
-	#define MSG_STOPPED "STOPPED. "
259
-	#define MSG_PREHEAT_PLA " Preheat PLA"
260
-	#define MSG_PREHEAT_ABS " Preheat ABS"
261
-	#define MSG_STEPPER_RELEASED "Released."
262
-	
263
-
264
-
265
 // Serial Console Messages
276
 // Serial Console Messages
266
 
277
 
267
 	#define MSG_Enqueing "enqueing \""
278
 	#define MSG_Enqueing "enqueing \""
343
 #define MSG_SET_ORIGIN " Establecer Cero"
354
 #define MSG_SET_ORIGIN " Establecer Cero"
344
 #define MSG_COOLDOWN " Enfriar"
355
 #define MSG_COOLDOWN " Enfriar"
345
 #define MSG_EXTRUDE " Extruir"
356
 #define MSG_EXTRUDE " Extruir"
357
+#define MSG_RETRACT " Retract"
346
 #define MSG_PREHEAT_PLA " Precalentar PLA"
358
 #define MSG_PREHEAT_PLA " Precalentar PLA"
359
+#define MSG_PREHEAT_PLA_SETTINGS " Precalentar PLA Setting"
347
 #define MSG_PREHEAT_ABS " Precalentar ABS"
360
 #define MSG_PREHEAT_ABS " Precalentar ABS"
361
+#define MSG_PREHEAT_ABS_SETTINGS " Precalentar ABS Setting"
348
 #define MSG_MOVE_AXIS " Mover Ejes      \x7E"
362
 #define MSG_MOVE_AXIS " Mover Ejes      \x7E"
349
 #define MSG_SPEED " Velocidad:"
363
 #define MSG_SPEED " Velocidad:"
350
 #define MSG_NOZZLE " \002Nozzle:"
364
 #define MSG_NOZZLE " \002Nozzle:"
382
 #define MSG_MAIN_WIDE " Menu Principal  \003"
396
 #define MSG_MAIN_WIDE " Menu Principal  \003"
383
 #define MSG_RECTRACT_WIDE " Retraer         \x7E"
397
 #define MSG_RECTRACT_WIDE " Retraer         \x7E"
384
 #define MSG_TEMPERATURE_WIDE " Temperatura     \x7E"
398
 #define MSG_TEMPERATURE_WIDE " Temperatura     \x7E"
399
+#define MSG_TEMPERATURE_RTN  " Temperatura     \003"
385
 #define MSG_MOTION_WIDE " Movimiento      \x7E"
400
 #define MSG_MOTION_WIDE " Movimiento      \x7E"
386
 #define MSG_STORE_EPROM " Guardar Memoria"
401
 #define MSG_STORE_EPROM " Guardar Memoria"
387
 #define MSG_LOAD_EPROM " Cargar Memoria"
402
 #define MSG_LOAD_EPROM " Cargar Memoria"
393
 #define MSG_CONTROL_ARROW " Control  \x7E"
408
 #define MSG_CONTROL_ARROW " Control  \x7E"
394
 #define MSG_RETRACT_ARROW " Control  \x7E"
409
 #define MSG_RETRACT_ARROW " Control  \x7E"
395
 #define MSG_TUNE " Ajustar \x7E"
410
 #define MSG_TUNE " Ajustar \x7E"
411
+#define MSG_PAUSE_PRINT " Pause Print \x7E"
412
+#define MSG_RESUME_PRINT " Resume Print \x7E"
396
 #define MSG_STOP_PRINT " Detener Impresion \x7E"
413
 #define MSG_STOP_PRINT " Detener Impresion \x7E"
397
 #define MSG_CARD_MENU " Menu de SD    \x7E"
414
 #define MSG_CARD_MENU " Menu de SD    \x7E"
398
 #define MSG_NO_CARD " No hay Tarjeta SD"
415
 #define MSG_NO_CARD " No hay Tarjeta SD"
399
-#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Hay un error en la estructura del menu"
400
 #define MSG_DWELL "Reposo..."
416
 #define MSG_DWELL "Reposo..."
401
 #define MSG_USERWAIT "Esperando Ordenes..."
417
 #define MSG_USERWAIT "Esperando Ordenes..."
402
 #define MSG_NO_MOVE "Sin movimiento"
418
 #define MSG_NO_MOVE "Sin movimiento"
403
 #define MSG_PART_RELEASE "Desacople Parcial"
419
 #define MSG_PART_RELEASE "Desacople Parcial"
404
 #define MSG_KILLED "PARADA DE EMERGENCIA. "
420
 #define MSG_KILLED "PARADA DE EMERGENCIA. "
405
 #define MSG_STOPPED "PARADA. "
421
 #define MSG_STOPPED "PARADA. "
406
-#define MSG_PREHEAT_PLA " Precalentar PLA"
407
-#define MSG_PREHEAT_ABS " Precalentar ABS"
408
 #define MSG_STEPPER_RELEASED "Desacoplada."
422
 #define MSG_STEPPER_RELEASED "Desacoplada."
409
 #define MSG_CONTROL_RETRACT  " Retraer mm:"
423
 #define MSG_CONTROL_RETRACT  " Retraer mm:"
410
 #define MSG_CONTROL_RETRACTF " Retraer  F:"
424
 #define MSG_CONTROL_RETRACTF " Retraer  F:"
412
 #define MSG_CONTROL_RETRACT_RECOVER " DesRet +mm:"
426
 #define MSG_CONTROL_RETRACT_RECOVER " DesRet +mm:"
413
 #define MSG_CONTROL_RETRACT_RECOVERF " DesRet F:"
427
 #define MSG_CONTROL_RETRACT_RECOVERF " DesRet F:"
414
 #define MSG_AUTORETRACT " AutoRetr.:"
428
 #define MSG_AUTORETRACT " AutoRetr.:"
429
+#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Hay un error en la estructura del menu"
415
 
430
 
416
 // Serial Console Messages
431
 // Serial Console Messages
417
 
432
 

+ 1
- 1
Marlin/planner.cpp View File

501
   // Rest here until there is room in the buffer.
501
   // Rest here until there is room in the buffer.
502
   while(block_buffer_tail == next_buffer_head) { 
502
   while(block_buffer_tail == next_buffer_head) { 
503
     manage_heater(); 
503
     manage_heater(); 
504
-    manage_inactivity(1); 
504
+    manage_inactivity(); 
505
     LCD_STATUS;
505
     LCD_STATUS;
506
   }
506
   }
507
 
507
 

+ 1
- 1
Marlin/stepper.cpp View File

899
 {
899
 {
900
     while( blocks_queued()) {
900
     while( blocks_queued()) {
901
     manage_heater();
901
     manage_heater();
902
-    manage_inactivity(1);
902
+    manage_inactivity();
903
     LCD_STATUS;
903
     LCD_STATUS;
904
   }
904
   }
905
 }
905
 }

+ 3
- 0
Marlin/ultralcd.h View File

144
   #define LCD_INIT lcd_init();
144
   #define LCD_INIT lcd_init();
145
   #define LCD_MESSAGE(x) lcd_status(x);
145
   #define LCD_MESSAGE(x) lcd_status(x);
146
   #define LCD_MESSAGEPGM(x) lcd_statuspgm(MYPGM(x));
146
   #define LCD_MESSAGEPGM(x) lcd_statuspgm(MYPGM(x));
147
+  #define LCD_ALERTMESSAGEPGM(x) lcd_alertstatuspgm(MYPGM(x));
147
   #define LCD_STATUS lcd_status()
148
   #define LCD_STATUS lcd_status()
148
 #else //no lcd
149
 #else //no lcd
149
   #define LCD_INIT
150
   #define LCD_INIT
150
   #define LCD_STATUS
151
   #define LCD_STATUS
151
   #define LCD_MESSAGE(x)
152
   #define LCD_MESSAGE(x)
152
   #define LCD_MESSAGEPGM(x)
153
   #define LCD_MESSAGEPGM(x)
154
+  #define LCD_ALERTMESSAGEPGM(x)
153
   FORCE_INLINE void lcd_status() {};
155
   FORCE_INLINE void lcd_status() {};
154
 
156
 
155
   #define CLICKED false
157
   #define CLICKED false
157
 #endif 
159
 #endif 
158
   
160
   
159
 void lcd_statuspgm(const char* message);
161
 void lcd_statuspgm(const char* message);
162
+void lcd_alertstatuspgm(const char* message);
160
   
163
   
161
 char *ftostr3(const float &x);
164
 char *ftostr3(const float &x);
162
 char *itostr2(const uint8_t &x);
165
 char *itostr2(const uint8_t &x);

+ 9
- 3
Marlin/ultralcd.pde View File

92
   *target=0;
92
   *target=0;
93
 }
93
 }
94
 
94
 
95
+void lcd_alertstatuspgm(const char* message)
96
+{
97
+  lcd_statuspgm(message); 
98
+  menu.showStatus(); 
99
+}
100
+
95
 FORCE_INLINE void clear()
101
 FORCE_INLINE void clear()
96
 {
102
 {
97
   lcd.clear();
103
   lcd.clear();
2922
 
2928
 
2923
 char *ftostr32(const float &x)
2929
 char *ftostr32(const float &x)
2924
 {
2930
 {
2925
-  int xx=x*100;
2931
+  long xx=x*100;
2926
   conv[0]=(xx>=0)?'+':'-';
2932
   conv[0]=(xx>=0)?'+':'-';
2927
   xx=abs(xx);
2933
   xx=abs(xx);
2928
   conv[1]=(xx/100)%10+'0';
2934
   conv[1]=(xx/100)%10+'0';
2967
 //  convert float to string with +1234.5 format
2973
 //  convert float to string with +1234.5 format
2968
 char *ftostr51(const float &x)
2974
 char *ftostr51(const float &x)
2969
 {
2975
 {
2970
-  int xx=x*10;
2976
+  long xx=x*10;
2971
   conv[0]=(xx>=0)?'+':'-';
2977
   conv[0]=(xx>=0)?'+':'-';
2972
   xx=abs(xx);
2978
   xx=abs(xx);
2973
   conv[1]=(xx/10000)%10+'0';
2979
   conv[1]=(xx/10000)%10+'0';
2983
 //  convert float to string with +123.45 format
2989
 //  convert float to string with +123.45 format
2984
 char *ftostr52(const float &x)
2990
 char *ftostr52(const float &x)
2985
 {
2991
 {
2986
-  int xx=x*100;
2992
+  long xx=x*100;
2987
   conv[0]=(xx>=0)?'+':'-';
2993
   conv[0]=(xx>=0)?'+':'-';
2988
   xx=abs(xx);
2994
   xx=abs(xx);
2989
   conv[1]=(xx/10000)%10+'0';
2995
   conv[1]=(xx/10000)%10+'0';

Loading…
Cancel
Save