Skip to content

Laser power set-point not restored following feed-hold with "Disable Laser during hold" set to False #991

Description

@engigeer

I encountered a potential bug where if the first bit of Feed hold actions $63 (i.e., Disable laser during hold) is false, the power set-point is not restored on resume and therefore the laser does not continue firing.

I have tested and the issue appears to be resolved by adding:

sys.step_control.update_spindle_rpm = On;

following line 694 in state_machine.c

core/state_machine.c

Lines 676 to 700 in b9a05f1

default:
if (!settings.flags.restore_after_feed_hold) {
if (!restore_condition.spindle[restore_condition.spindle_num].hal->get_state(restore_condition.spindle[restore_condition.spindle_num].hal).on)
gc_spindle_off();
sys.override.spindle_stop.value = 0; // Clear spindle stop override states
} else {
if (restore_condition.spindle[restore_condition.spindle_num].state.on != restore_condition.spindle[restore_condition.spindle_num].hal->get_state(restore_condition.spindle[restore_condition.spindle_num].hal).on) {
grbl.report.feedback_message(Message_SpindleRestore);
state_spindle_restore(&restore_condition.spindle[restore_condition.spindle_num], settings.spindle.on_delay);
}
if (restore_condition.coolant.value != hal.coolant.get_state().value) {
// NOTE: Laser mode will honor this delay. An exhaust system is often controlled by coolant signals.
coolant_restore(restore_condition.coolant, settings.coolant.on_delay);
gc_coolant(restore_condition.coolant);
}
sys.override.spindle_stop.value = 0; // Clear spindle stop override states
grbl.report.feedback_message(Message_None);
}
break;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions