Added spindle speed min/max values; added spindle mode; Separated spindle into its own group (SP); Made spindle standalone from canonical machine

This commit is contained in:
Alden Hart
2017-01-13 14:36:48 -05:00
parent fb10abfff8
commit c456b5ce88
10 changed files with 339 additions and 193 deletions
+3 -3
View File
@@ -733,14 +733,14 @@ static stat_t _execute_gcode_block(char *active_comment)
cm_set_model_linenum(gv.linenum);
EXEC_FUNC(cm_set_feed_rate_mode, feed_rate_mode); // G93, G94
EXEC_FUNC(cm_set_feed_rate, F_word); // F
EXEC_FUNC(cm_set_spindle_speed, S_word); // S
EXEC_FUNC(spindle_queue_speed, S_word); // S
if (gf.sso_control) { // spindle speed override
ritorno(cm_sso_control(gv.P_word, gf.P_word));
ritorno(spindle_override_control(gv.P_word, gf.P_word));
}
EXEC_FUNC(cm_select_tool, tool_select); // tool_select is where it's written
EXEC_FUNC(cm_change_tool, tool_change); // M6
EXEC_FUNC(cm_spindle_control, spindle_control); // spindle CW, CCW, OFF
EXEC_FUNC(spindle_queue_control, spindle_control); // spindle CW, CCW, OFF
EXEC_FUNC(cm_mist_coolant_control, mist_coolant); // M7, M9
EXEC_FUNC(cm_flood_coolant_control, flood_coolant); // M8, M9 also disables mist coolant if OFF