Debuging and Logging
Debug¶
M111 - Debug Level¶
There are several debug bits, to enable it is necessary add up the bits need it
| Mask | Name | Description |
|---|---|---|
| 1 | ECHO | Echo all commands sent to the parser. |
| 2 | INFO | Print extra informational messages. |
| 4 | ERRORS | Print extra error messages. |
| 8 | DRYRUN | Don’t extrude, don’t save leveling data, etc. |
| 16 | COMMUNICATION | Not currently used. |
| 32 | LEVELING | Detailed messages for homing, probing, and leveling. (Requires DEBUG_LEVELING_FEATURE.) |
| 64 | Reserved | Reserved for future usage |
| 128 | Reserved | Reserved for future usage |
Usage M111¶
[S<flags>]debug flag bits
Example:
Enable extra messages
M111 S38 ; LEVELING, ERRORS, INFO
Enable everything except dry-run mode
M111 S247 ; 255 - 8
Disable previously set extra debugging output.
M111 S0
source: M111
M280 - Servo Position¶
Set or get the position of a servo.
Using M280¶
-
P<index>Servo index to set or get -
S<pos>Servo position to set. Omit to read the current position.
source: M280
Logging¶
This are G-code to get the logs of the printer or the board.
M928 - Start SD Logging¶
Use this command to start logging all console and host input into the SD card
use
M29to stop logging
Usage M928¶
- filename File name of log file
Example:
M928 log.txt
source: M928
M28 - Start SD Write¶
This Commands start a file write, the firmware will log all commands, this command wont be execute until M29 closes the file.
Required
SDSUPPORTTo write file while printing useM928
Usage M28¶
Example:
M28 file.txt
source: M28
M29 - Stop SD Write¶
Stop Writing to file begun with M28 or M928
Require
SDSUPPORT
Usage M28¶
source: M29