/* * cm_set_spindle_speed() - queue the S parameter to the planner buffer * cm_exec_spindle_speed() - execute the S command (called from the planner buffer) * _exec_spindle_speed() - spindle speed callback from planner queue */ stat_t cm_set_spindle_speed(float speed) { // if (speed > cfg.max_spindle speed) // return (STAT_MAX_SPINDLE_SPEED_EXCEEDED); float value[AXES] = { speed, 0,0,0,0,0 }; mp_queue_command(_exec_spindle_speed, value, value); return (STAT_OK); }
stat_t cm_spindle_control(uint8_t spindle_mode) { float value[AXES] = { (float)spindle_mode, 0,0,0,0,0 }; mp_queue_command(_exec_spindle_control, value, value); return(STAT_OK); }
stat_t cm_spindle_control(uint8_t spindle_mode) { mp_queue_command(_exec_spindle_control, spindle_mode, 0); return(STAT_OK); }
//cm_pneumatic_z_control stat_t cm_pneumatic_z_control(uint8_t pneumatic_z) { float value[AXES] = { (float)pneumatic_z,0,0,0,0,0 }; mp_queue_command(_exec_pneumatic_z_control, value, value); return (STAT_OK); }
stat_t cm_set_spindle_speed(float speed) { // if (speed > cfg.max_spindle speed) { return (STAT_MAX_SPINDLE_SPEED_EXCEEDED);} mp_queue_command(_exec_spindle_speed, 0, speed); return (STAT_OK); }