Spindle handling refactoring for improved management and configuration of multiple spindles.

NOTE: this is a relatively large change and may have introduced bugs and/or unintended side-effects. Please report any issues!

Added setting $519 for binding spindle encoder to given spindle in multi spindle configurations.

Added machine readable spindle enumeration report, $SPINDLESH.

Increased default value for setting $398 (number of planner blocs) from 35 to 100 for faster laser engraving.
NOTE: the $398 setting value will not change on an upgrade!
NOTE: STM32F103 builds for the 128K flash variants does not have enough free RAM and will keep 35 as the default value.

Increased allowed number of decimal places from 3 to 5 for $10x stepper step/mm settings. Ref. ioSender issue 346.

Added setting $650 for filing system options. Ref. issue 397.
Currently the following bits are available (depending on the configuration):
0 - Auto mount SD card on startup (1).
1 - Do not add littlefs files when listing the root directory (2).

Added build option for lathe UVW mode.
When enabled UVW words can be used to command relative moves for XYZ without switching to relative mode with G91.
NOTE: This permanently sets lathe mode and disables the $32 mode setting.

There are signature changes to some spindle, ioports enumeration and VFS filing system mount functions.

Added events to allow plugin code to handle tool table data, possibly stored on a SD card.
This commit is contained in:
Terje Io
2023-12-12 09:51:59 +01:00
parent 04a5edcf83
commit 2c58f0de09
34 changed files with 1467 additions and 831 deletions

View File

@@ -33,7 +33,7 @@
plasma_init();
#endif
#if MODBUS_ENABLE && MODBUS_ENABLE & 0x01
#if MODBUS_ENABLE && (MODBUS_ENABLE & 0x01)
extern void modbus_rtu_init (void);
modbus_rtu_init();
#endif
@@ -43,6 +43,26 @@
canbus_init();
#endif
#if SPINDLE_ENABLE & (1<<SPINDLE_PWM0_CLONE)
extern void cloned_spindle_init (void);
cloned_spindle_init();
#endif
#if SPINDLE_ENABLE & (1<<SPINDLE_STEPPER)
extern void stepper_spindle_init (void);
stepper_spindle_init();
#endif
#if SPINDLE_ENABLE & ((1<<SPINDLE_ONOFF1)|(1<<SPINDLE_ONOFF1_DIR))
extern void onoff_spindle_init (void);
onoff_spindle_init();
#endif
#if SPINDLE_ENABLE & (1<<SPINDLE_PWM2)
extern void pwm_spindle_init (void);
pwm_spindle_init();
#endif
#if VFD_ENABLE
extern void vfd_init (void);
vfd_init();