Explorar el Código

Merge pull request #1 from ErikDeBruijn/Marlin_v1_Ultimaker-rc3

Marlin v1 ultimaker rc3
daid hace 13 años
padre
commit
830972ce3c
Se han modificado 4 ficheros con 26 adiciones y 9 borrados
  1. 3
    0
      Marlin/Configuration.h
  2. 18
    9
      Marlin/language.h
  3. 2
    0
      Marlin/planner.cpp
  4. 3
    0
      Marlin/ultralcd.pde

+ 3
- 0
Marlin/Configuration.h Ver fichero

@@ -108,6 +108,9 @@
108 108
 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
109 109
 //can be software-disabled for whatever purposes by
110 110
 #define PREVENT_DANGEROUS_EXTRUDE
111
+//if PREVENT_DANGEROUS_EXTRUDE is on, you can still disable (uncomment) very long bits of extrusion separately.
112
+#define PREVENT_LENGTHY_EXTRUDE
113
+
111 114
 #define EXTRUDE_MINTEMP 170
112 115
 #define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
113 116
 

+ 18
- 9
Marlin/language.h Ver fichero

@@ -10,11 +10,20 @@
10 10
 
11 11
 #define LANGUAGE_CHOICE 1  // Pick your language from the list above
12 12
 
13
+#define PROTOCOL_VERSION "1.0"
14
+
15
+#ifdef MOTHERBOARD == 7
16
+	#define MACHINE_NAME "Ultimaker"
17
+	#define FIRMWARE_URL "http://firmware.ultimaker.com"
18
+#else
19
+	#define MACHINE_NAME "Mendel"
20
+	#define FIRMWARE_URL "http://www.mendel-parts.com"
21
+#endif
22
+
13 23
 #if LANGUAGE_CHOICE == 1
14 24
 
15 25
 // LCD Menu Messages
16
-
17
-	#define WELCOME_MSG "Printer Ready."
26
+	#define WELCOME_MSG MACHINE_NAME " Ready."
18 27
 	#define MSG_SD_INSERTED "Card inserted"
19 28
 	#define MSG_SD_REMOVED "Card removed"
20 29
 	#define MSG_MAIN " Main \003"
@@ -63,8 +72,8 @@
63 72
 	#define MSG_MAIN_WIDE " Main        \003"
64 73
 	#define MSG_TEMPERATURE_WIDE " Temperature \x7E"
65 74
 	#define MSG_MOTION_WIDE " Motion      \x7E"
66
-	#define MSG_STORE_EPROM " Store EPROM"
67
-	#define MSG_LOAD_EPROM " Load EPROM"
75
+	#define MSG_STORE_EPROM " Store memory"
76
+	#define MSG_LOAD_EPROM " Load memory"
68 77
 	#define MSG_RESTORE_FAILSAFE " Restore Failsafe"
69 78
 	#define MSG_REFRESH "\004Refresh"
70 79
 	#define MSG_WATCH " Watch   \003"
@@ -76,7 +85,7 @@
76 85
 	#define MSG_CARD_MENU " Card Menu    \x7E"
77 86
 	#define MSG_NO_CARD " No Card"
78 87
 	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
79
-	#define MSG_DWELL "DWELL..."		
88
+	#define MSG_DWELL "Sleep..."
80 89
 	#define MSG_NO_MOVE "No move."
81 90
 	#define MSG_PART_RELEASE "Partial Release"
82 91
 	#define MSG_KILLED "KILLED. "
@@ -94,7 +103,7 @@
94 103
 	#define MSG_BROWNOUT_RESET " Brown out Reset"
95 104
 	#define MSG_WATCHDOG_RESET " Watchdog Reset"
96 105
 	#define MSG_SOFTWARE_RESET " Software Reset"
97
-	#define MSG_MARLIN "Marlin: "
106
+	#define MSG_MARLIN "Marlin "
98 107
 	#define MSG_AUTHOR " | Author: "
99 108
 	#define MSG_CONFIGURATION_VER " Last Updated: "
100 109
 	#define MSG_FREE_MEMORY " Free Memory: "
@@ -116,7 +125,7 @@
116 125
 	#define MSG_HEATING_COMPLETE "Heating done."
117 126
 	#define MSG_BED_HEATING "Bed Heating."
118 127
 	#define MSG_BED_DONE "Bed done."
119
-	#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1; Sprinter/grbl mashup for gen6 FIRMWARE_URL:http://www.mendel-parts.com PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1\n"
128
+	#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:1\n"
120 129
 	#define MSG_COUNT_X " Count X:"
121 130
 	#define MSG_ERR_KILLED "Printer halted. kill() called !!"
122 131
 	#define MSG_ERR_STOPPED "Printer stopped deu to errors. Fix the error and use M999 to restart!. (Temperature is reset. Set it before restarting)"
@@ -157,7 +166,7 @@
157 166
 
158 167
 // LCD Menu Messages
159 168
 
160
-	#define WELCOME_MSG "UltiMARLIN Ready."
169
+	#define WELCOME_MSG MACHINE_NAME " Ready."
161 170
 
162 171
 	#define MSG_SD_INSERTED "Card inserted"
163 172
 	#define MSG_SD_REMOVED "Card removed"
@@ -263,7 +272,7 @@
263 272
 	#define MSG_HEATING_COMPLETE "Heating done."
264 273
 	#define MSG_BED_HEATING "Bed Heating."
265 274
 	#define MSG_BED_DONE "Bed done."
266
-	#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1; Sprinter/grbl mashup for gen6 FIRMWARE_URL:http://www.mendel-parts.com PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1\n"
275
+	#define MSG_M115_REPORT "FIRMWARE_NAME:Marlin V1; Sprinter/grbl mashup for gen6 FIRMWARE_URL:" FIRMWARE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:\n"
267 276
 	#define MSG_COUNT_X " Count X:"
268 277
 	#define MSG_ERR_KILLED "Printer halted. kill() called !!"
269 278
 	#define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart!"

+ 2
- 0
Marlin/planner.cpp Ver fichero

@@ -495,12 +495,14 @@ void plan_buffer_line(const float &x, const float &y, const float &z, const floa
495 495
       SERIAL_ECHO_START;
496 496
       SERIAL_ECHOLNPGM(MSG_ERR_COLD_EXTRUDE_STOP);
497 497
     }
498
+    #ifdef PREVENT_LENGTHY_EXTRUDE
498 499
     if(labs(target[E_AXIS]-position[E_AXIS])>axis_steps_per_unit[E_AXIS]*EXTRUDE_MAXLENGTH)
499 500
     {
500 501
       position[E_AXIS]=target[E_AXIS]; //behave as if the move really took place, but ignore E part
501 502
       SERIAL_ECHO_START;
502 503
       SERIAL_ECHOLNPGM(MSG_ERR_LONG_EXTRUDE_STOP);
503 504
     }
505
+    #endif
504 506
   #endif
505 507
   
506 508
   // Prepare to set up new block

+ 3
- 0
Marlin/ultralcd.pde Ver fichero

@@ -1,3 +1,5 @@
1
+#include "language.h"
2
+#include "temperature.h"
1 3
 #include "ultralcd.h"
2 4
 #ifdef ULTRA_LCD
3 5
 #include "Marlin.h"
@@ -708,6 +710,7 @@ void MainMenu::showAxisMove()
708 710
           }
709 711
           break;
710 712
           case ItemAM_E:
713
+          // ErikDB: TODO: this length should be changed for volumetric.
711 714
           MENUITEM(  lcdprintPGM(MSG_EXTRUDE)  ,  BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E5");beepshort(); ) ;
712 715
           break;
713 716
           default:

Loading…
Cancelar
Guardar