Tweaks and minor bug fixes. Added purge buffer command.
- Added a purge buffer (and lock) command. This is an advanced option to clear any queued blocks in the buffer in the event of system position being lost or homed. These queued blocks will likely not move correctly if not purged. In typical use, the purging command releases the homing axes lock in case a user need to move the axes off their hard limit switches, but position is not guaranteed. Homing is advised immediately after. - Created a system-wide sync current position function. Cleans up some of the repetitive tasks in various places in the code that do the same thing. - Removed the clear all switches command '$S'. Not really needed and helped clean up a sync call. - Other minor tweaks. Readme updated slightly..
This commit is contained in:
16
report.c
16
report.c
@ -73,9 +73,11 @@ void report_status_message(uint8_t status_code)
|
||||
case STATUS_SETTING_READ_FAIL:
|
||||
printPgmString(PSTR("Failed to read EEPROM settings. Using defaults")); break;
|
||||
case STATUS_HOMING_ERROR:
|
||||
printPgmString(PSTR("Grbl must be idle to home")); break;
|
||||
printPgmString(PSTR("Must be idle to home")); break;
|
||||
case STATUS_ABORT_CYCLE:
|
||||
printPgmString(PSTR("Abort during cycle")); break;
|
||||
printPgmString(PSTR("Abort during cycle. Position may be lost")); break;
|
||||
case STATUS_PURGE_CYCLE:
|
||||
printPgmString(PSTR("Can't purge buffer during cycle")); break;
|
||||
}
|
||||
printPgmString(PSTR("\r\n"));
|
||||
}
|
||||
@ -95,15 +97,15 @@ void report_feedback_message(int8_t message_code)
|
||||
case MESSAGE_SYSTEM_ALARM:
|
||||
printPgmString(PSTR("ALARM: Check and reset Grbl")); break;
|
||||
case MESSAGE_POSITION_LOST:
|
||||
printPgmString(PSTR("Position unknown. '$H' to home")); break;
|
||||
printPgmString(PSTR("'$H' to home and enable axes")); break;
|
||||
case MESSAGE_HOMING_ENABLE:
|
||||
printPgmString(PSTR("WARNING: All limit switches must be installed before homing")); break;
|
||||
case MESSAGE_SWITCH_ON:
|
||||
printPgmString(PSTR("Switch enabled")); break;
|
||||
case MESSAGE_SWITCH_OFF:
|
||||
printPgmString(PSTR("Switch disabled")); break;
|
||||
case MESSAGE_SWITCHES_CLEARED:
|
||||
printPgmString(PSTR("Switches cleared")); break;
|
||||
case MESSAGE_PURGE_AXES_LOCK:
|
||||
printPgmString(PSTR("WARNING: Motion lock disabled. Position unknown.")); break;
|
||||
}
|
||||
printPgmString(PSTR("]\r\n"));
|
||||
}
|
||||
@ -124,13 +126,13 @@ void report_grbl_help() {
|
||||
"$N (print startup blocks)\r\n"
|
||||
"$x=value (store Grbl setting)\r\n"
|
||||
"$Nx=line (store startup block)\r\n"
|
||||
"$H (perform homing cycle)\r\n"
|
||||
"$S (clear all switches)\r\n"
|
||||
"$S0 (toggle check gcode)\r\n"
|
||||
"$S1 (toggle dry run)\r\n"
|
||||
"$S2 (toggle block delete)\r\n"
|
||||
"$S3 (toggle single block)\r\n"
|
||||
"$S4 (toggle optional stop)\r\n"
|
||||
"$P (purge buffer and locks)\r\n"
|
||||
"$H (perform homing cycle)\r\n"
|
||||
"~ (cycle start)\r\n"
|
||||
"! (feed hold)\r\n"
|
||||
"? (current position)\r\n"
|
||||
|
Reference in New Issue
Block a user