Hi,
is there a way to script the S g-code?
To set the spindle speed, normally the speed is converted to a frequency or PWM, which is then converted to 0-10V, which is then converted back to the speed by the VFD.
But many VFDs also have a digital inteface, e.g. UART or RS-485. So: Why not skip all the conversion, and send the speed directly to the VFD? (via UART, or e.g. an I2C-to-RS485-converter)
So: Is there any way to catch PlanetCNC's spindle-speed-changes / S-words -- e.g. with a script like for M-codes or via a callback in the API?