Welcome! Log In Create A New Profile

Advanced

M119 Gcode changes

Posted by RepRot 
M119 Gcode changes
January 07, 2016 08:28PM
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 "- - -"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Re: M119 Gcode changes
January 08, 2016 08:30AM
About 9 months ago, the Triggered and Open messages were changed to be more clear. The terminology used is clumsy for another reason. The switches can be configured to be active wither with a closed or open state. They had to be changed back. The problem is it broke all the client programs that were looking for specific text. Getting these messages changed to something more clear is going to be a slow process.

Edited 1 time(s). Last edit at 01/08/2016 08:31AM by Roxy.
Sorry, only registered users may post in this forum.

Click here to login