Skip to content

Commit

Permalink
V RF.01.11.X-4
Browse files Browse the repository at this point in the history
- BUGFIX (changelog-X4r3.txt)
- Filamentload Funktion
- G-code M4031
  • Loading branch information
X4r3 committed Jan 4, 2016
1 parent 99684e3 commit 04eea40
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
13 changes: 10 additions & 3 deletions RF1000/Repetier/RF.cpp
Expand Up @@ -7586,7 +7586,7 @@ void processCommand( GCode* pCommand )
break;
}
#endif // FEATURE_RGB_LIGHT_EFFECTS
case 4001: // M4001 S1000 - Load filament until F value > delta 1000
case 4001: // M4001 S1000 - Load filament until F value >< delta 1000
{
if( Extruder::current->tempControl.currentTemperatureC >= MIN_EXTRUDER_TEMP )
{
Expand All @@ -7596,11 +7596,15 @@ void processCommand( GCode* pCommand )
nTemp = pCommand->S;
float deltaF = nTemp;
float fwert = readStrainGauge( ACTIVE_STRAIN_GAUGE );

float saveFilamentPrinted = Printer::filamentPrinted;
//Com::printFLN( PSTR( "M4001: deltaF: " ), deltaF );
//Com::printFLN( PSTR( "M4001: fwert: " ), fwert );

while( 1 )
int i = 0;
while( i < 150 ) // nach 150 durchläufen (150mm) abbrechen
{
i++;
#if FEATURE_WATCHDOG
HAL::pingWatchdog();
#endif // FEATURE_WATCHDOG
Expand All @@ -7610,12 +7614,13 @@ void processCommand( GCode* pCommand )

float nCurrentPressure = readStrainGauge( ACTIVE_STRAIN_GAUGE );
//Com::printFLN( PSTR( "M4001: nCurrentPressure: " ), nCurrentPressure );
if( nCurrentPressure > fwert + deltaF )
if( nCurrentPressure > fwert + deltaF || nCurrentPressure < fwert - deltaF ) // auch für verdrehte messzellen
{
//Com::printFLN( PSTR( "M4001: break - nCurrentPressure > fwert + deltaF" ) );
break;
}
}
Printer::filamentPrinted = saveFilamentPrinted;
}
}
}
Expand All @@ -7626,6 +7631,7 @@ void processCommand( GCode* pCommand )
if( Printer::isHomed() )
{
g_allowIgnoreZMinEndswitch = 1;
g_allowIgnoreZMinEndswitchTimer = 0;
Com::printFLN( PSTR( "gcode: M4031, g_allowIgnoreZMinEndswitch: " ), g_allowIgnoreZMinEndswitch );
}
}
Expand All @@ -7638,6 +7644,7 @@ void processCommand( GCode* pCommand )
if( Printer::isHomed() )
{
g_allowIgnoreZMinEndswitch = 0;
g_allowIgnoreZMinEndswitchTimer = 0;
Com::printFLN( PSTR( "gcode: M4030, g_allowIgnoreZMinEndswitch: " ), g_allowIgnoreZMinEndswitch );
}
}
Expand Down
18 changes: 15 additions & 3 deletions changelog-X4r3.txt
@@ -1,7 +1,19 @@
V RF.01.11.X-4 (04.01.2016)

- BUGFIX
- Filamentload Funktion:
- Endlosschleife wurde geändert, nach 150 Schleifendurchläufen wird die Funktion abgebrochen (entpricht 150mm Förderweg).
- Die "Filament printed" Anzeige wird auf den Wert vor der Funktion zurückgesetzt.
- Falsch eingebaute oder verdrehte Messzellen werden nun berücksichtigt.
- G-code M4031:
- Den ZMinEnschalter zu überfahren war nur im 1. Druck nach dem Einschalten möglich. Ab jetzt auch im 2. ... n-ten Druck möglich.



V RF.01.11.X-3 (28.12.2015)

- ADD G-code M4031 der erlaubt beim n�chsten G1 Zx Befehl den ZMinEndschalter zu �berfahren
z.b. wenn im 1. Layer eine geringere H�he als die Startline gefordert wird.
- ADD G-code M4031 der erlaubt beim nächsten G1 Zx Befehl den ZMinEndschalter zu überfahren
z.b. wenn im 1. Layer eine geringere Höhe als die Startline gefordert wird.
motion.h
RF.cpp

Expand All @@ -10,7 +22,7 @@ V RF.01.11.X-3 (28.12.2015)
V RF.01.11.X-2 (28.12.2015)

- ADD Filamentload Funktion G-code: M4001 S1000
Das Filament wird in 1mm Schritten in den Extruder geschoben bis der F-Wert ein delta von 1000 �berschreitet.
Das Filament wird in 1mm Schritten in den Extruder geschoben bis der F-Wert ein delta von 1000 überschreitet.
Communication.cpp
Communication.h
RF.cpp
Expand Down

0 comments on commit 04eea40

Please sign in to comment.