Improved handling of extended M commands (plugin based) command words.

Fixes issues for programs containing extended M-codes using single meaning words (which they as a rule should not do).
Added core support for spindle encoder binding to spindles.
Added sorting of spindle report: enabled spindles are sorted first in order of spindle number, disabled by type then spindle id.
Changed realtime report to report spindle number instead of spindle id on changes in the |S: element.
This commit is contained in:
Terje Io
2024-08-12 15:46:58 +02:00
parent 01142dc30d
commit 7ade244a78
10 changed files with 224 additions and 61 deletions

View File

@@ -33,6 +33,7 @@ typedef struct st2_motor st2_motor_t;
st2_motor_t *st2_motor_init (uint_fast8_t axis_idx, bool is_spindle);
bool st2_motor_bind_spindle (uint_fast8_t axis_idx);
float st2_get_speed (st2_motor_t *motor);
float st2_motor_set_speed (st2_motor_t *motor, float speed);
bool st2_motor_move (st2_motor_t *motor, const float move, const float speed, position_t type);
bool st2_motor_run (st2_motor_t *motor);