Skip to content

Commit 830972c

Browse files
committed
Merge pull request daid#1 from ErikDeBruijn/Marlin_v1_Ultimaker-rc3
Marlin v1 ultimaker rc3
2 parents 1874cb7 + e3fe1f0 commit 830972c

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

Marlin/Configuration.h

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@
108108
//this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
109109
//can be software-disabled for whatever purposes by
110110
#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+
111114
#define EXTRUDE_MINTEMP 170
112115
#define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
113116

Marlin/language.h

+18-9
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@
1010

1111
#define LANGUAGE_CHOICE 1 // Pick your language from the list above
1212

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+
1323
#if LANGUAGE_CHOICE == 1
1424

1525
// LCD Menu Messages
16-
17-
#define WELCOME_MSG "Printer Ready."
26+
#define WELCOME_MSG MACHINE_NAME " Ready."
1827
#define MSG_SD_INSERTED "Card inserted"
1928
#define MSG_SD_REMOVED "Card removed"
2029
#define MSG_MAIN " Main \003"
@@ -63,8 +72,8 @@
6372
#define MSG_MAIN_WIDE " Main \003"
6473
#define MSG_TEMPERATURE_WIDE " Temperature \x7E"
6574
#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"
6877
#define MSG_RESTORE_FAILSAFE " Restore Failsafe"
6978
#define MSG_REFRESH "\004Refresh"
7079
#define MSG_WATCH " Watch \003"
@@ -76,7 +85,7 @@
7685
#define MSG_CARD_MENU " Card Menu \x7E"
7786
#define MSG_NO_CARD " No Card"
7887
#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
79-
#define MSG_DWELL "DWELL..."
88+
#define MSG_DWELL "Sleep..."
8089
#define MSG_NO_MOVE "No move."
8190
#define MSG_PART_RELEASE "Partial Release"
8291
#define MSG_KILLED "KILLED. "
@@ -94,7 +103,7 @@
94103
#define MSG_BROWNOUT_RESET " Brown out Reset"
95104
#define MSG_WATCHDOG_RESET " Watchdog Reset"
96105
#define MSG_SOFTWARE_RESET " Software Reset"
97-
#define MSG_MARLIN "Marlin: "
106+
#define MSG_MARLIN "Marlin "
98107
#define MSG_AUTHOR " | Author: "
99108
#define MSG_CONFIGURATION_VER " Last Updated: "
100109
#define MSG_FREE_MEMORY " Free Memory: "
@@ -116,7 +125,7 @@
116125
#define MSG_HEATING_COMPLETE "Heating done."
117126
#define MSG_BED_HEATING "Bed Heating."
118127
#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"
120129
#define MSG_COUNT_X " Count X:"
121130
#define MSG_ERR_KILLED "Printer halted. kill() called !!"
122131
#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 @@
157166

158167
// LCD Menu Messages
159168

160-
#define WELCOME_MSG "UltiMARLIN Ready."
169+
#define WELCOME_MSG MACHINE_NAME " Ready."
161170

162171
#define MSG_SD_INSERTED "Card inserted"
163172
#define MSG_SD_REMOVED "Card removed"
@@ -263,7 +272,7 @@
263272
#define MSG_HEATING_COMPLETE "Heating done."
264273
#define MSG_BED_HEATING "Bed Heating."
265274
#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"
267276
#define MSG_COUNT_X " Count X:"
268277
#define MSG_ERR_KILLED "Printer halted. kill() called !!"
269278
#define MSG_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart!"

Marlin/planner.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,14 @@ void plan_buffer_line(const float &x, const float &y, const float &z, const floa
495495
SERIAL_ECHO_START;
496496
SERIAL_ECHOLNPGM(MSG_ERR_COLD_EXTRUDE_STOP);
497497
}
498+
#ifdef PREVENT_LENGTHY_EXTRUDE
498499
if(labs(target[E_AXIS]-position[E_AXIS])>axis_steps_per_unit[E_AXIS]*EXTRUDE_MAXLENGTH)
499500
{
500501
position[E_AXIS]=target[E_AXIS]; //behave as if the move really took place, but ignore E part
501502
SERIAL_ECHO_START;
502503
SERIAL_ECHOLNPGM(MSG_ERR_LONG_EXTRUDE_STOP);
503504
}
505+
#endif
504506
#endif
505507

506508
// Prepare to set up new block

Marlin/ultralcd.pde

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include "language.h"
2+
#include "temperature.h"
13
#include "ultralcd.h"
24
#ifdef ULTRA_LCD
35
#include "Marlin.h"
@@ -708,6 +710,7 @@ void MainMenu::showAxisMove()
708710
}
709711
break;
710712
case ItemAM_E:
713+
// ErikDB: TODO: this length should be changed for volumetric.
711714
MENUITEM( lcdprintPGM(MSG_EXTRUDE) , BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E5");beepshort(); ) ;
712715
break;
713716
default:

0 commit comments

Comments
 (0)