Professional Documents
Culture Documents
CNC Lathe G Code
CNC Lathe G Code
set ci $mom_sys_control_in
MOM_set_seq_on
// PB_CMD_machine_time
MOM_set_seq_off
void settings_init() {
if(!read_global_settings()) {
report_status_message(STATUS_SETTING_READ_FAIL);
report_grbl_settings();
// NOTE: Checking paramater data, startup lines, and build info string should be done here,
// but it seems fairly redundant. Each of these can be manually checked and reset or
restored.
// Check all parameter data into a dummy variable. If error, reset to zero, otherwise do
nothing.
// float coord_data[N_AXIS];
// uint8_t i;
// if (!settings_read_coord_data(i, coord_data)) {
// report_status_message(STATUS_SETTING_READ_FAIL);
// }
// }
// NOTE: Startup lines are checked and executed by protocol_main_loop at the end of
initialization.
return((1<<Z_STEP_BIT));
}
// Returns direction pin mask according to Grbl internal axis indexing.
return((1<<Z_DIRECTION_BIT));
return((1<<Z_LIMIT_BIT));
}
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
You should have received a copy of the GNU General Public License
*/
#ifndef limits_h
#define limits_h
void limits_init();
void limits_disable();
uint8_t limits_get_state();
// Perform one portion of the homing cycle based on the input settings.
#endif