保留多主轴 spindle canon selector

This commit is contained in:
cnc
2026-06-05 21:43:22 +08:00
parent acbf5b4686
commit 6a886be52d
3 changed files with 43 additions and 8 deletions

View File

@@ -211,10 +211,10 @@ void SET_FEED_RATE(double rate) {
}
}
void SET_SPINDLE_SPEED(int, double speed) {
void SET_SPINDLE_SPEED(int spindle, double speed) {
trace_call("SET_SPINDLE_SPEED");
if (active_sink) {
active_sink->set_spindle_speed(speed, event_line());
active_sink->set_spindle_speed(spindle, speed, event_line());
}
}
@@ -486,21 +486,21 @@ void SET_SPINDLE_MODE(int spindle, double mode) {
void SPINDLE_RETRACT_TRAVERSE() {
}
void START_SPINDLE_CLOCKWISE(int, int) {
void START_SPINDLE_CLOCKWISE(int spindle, int) {
if (active_sink) {
active_sink->start_spindle(1, event_line());
active_sink->start_spindle(spindle, 1, event_line());
}
}
void START_SPINDLE_COUNTERCLOCKWISE(int, int) {
void START_SPINDLE_COUNTERCLOCKWISE(int spindle, int) {
if (active_sink) {
active_sink->start_spindle(-1, event_line());
active_sink->start_spindle(spindle, -1, event_line());
}
}
void STOP_SPINDLE_TURNING(int) {
void STOP_SPINDLE_TURNING(int spindle) {
if (active_sink) {
active_sink->stop_spindle(event_line());
active_sink->stop_spindle(spindle, event_line());
}
}