M119 Gcode changes
Description: .......................... M119 is used to report status of endstop switches. It can be edited to report additional switches like the filament present switch.
Marlin Sketch: ........................Marlin_main.cpp
Line: ........................................3887
Default
Change added......................... #if HAS_FILRUNOUT
................................................ SERIAL_PROTOCOLPGM(MSG_FILAMENT); SERIAL_PROTOCOLLN(((READ(FILRUNOUT_PIN)^FIL_RUNOUT_INVERTING)?MSG_FILRUNOUT:MSG_FILRUNIN));
................................................ #endif
Marlin Sketch: .........................language.h
Line: ........................................145
Change added.......................... #define MSG_FILAMENT "Filament: "
.................................................. #define MSG_FILRUNOUT "Out "
.................................................. #define MSG_FILRUNIN "Present “
Description: ........................... If using another language, will need to be added to it.
Marlin Sketch: ........................ language_en.h
---- or select the language that you are using
Line: ....................................... 24
Change added........................ #ifndef MSG_FILAMENT
................................................. #define MSG_FILAMENT "Filament: "
................................................. #endif
................................................. #ifndef MSG_FILRUNOUT
................................................. #define MSG_FILRUNOUT "Out "
................................................. #endif
................................................. #ifndef MSG_FILRUNIN
................................................. #define MSG_FILRUNIN "Present: "
................................................. #endif
-------------------------------------------------------------------------------------------------------------------------------
Marlin M119 End Stop switch status change
Currently switch status is reported as either TRIGGERED or Open
I changed my Marlin End stop “Open” message from ‘Open” to “ - - - “ as I think “Open” is a bit confusing as if using a switch it may in fact be closed.
Using “ Un-triggered” is more correct but I found using ‘- - - “just looked better.
Better to have switches closed when away from home as less chance to get electrical noise that may cause a false home detect.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Description:............................... Changes message that is displayed for a M199 status
- If using another language you may need to change that as well.
Marlin Sketch: ............................ language.h
Line: .......................................... 155
Default ........................................ #define MSG_ENDSTOP_OPEN "Open"
Change......................................... #define MSG_ENDSTOP_OPEN "- - -"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------