I am trying to implement control for a Scara machine using your code template for custom machines and custom kinematics. I am trying to figure out how the speed control works with custom kinematics. In the GRBL settings you can set the Max rate for x and y using commands $110 and $111. Do these settings refer to the Max rate of the motors/axis or to a position in the Cartesian coordinate system.
[Grbl_Esp32 Issue#757] Max rate for custom machine
-
![[gnea/grbl-Mega Issue#1] $ command extentions](https://www.grblhal.com/wp-content/themes/gitphp/timthumb.php?src=https://www.grblhal.com/wp-content/themes/gitphp/assets/img/pic/10.jpg&h=110&w=185&q=90&zc=1&ct=1)
[gnea/grbl-Mega Issue#1] $ command extentions -
![[gnea/grbl-Mega Issue#2] Better interrupt priorities](https://www.grblhal.com/wp-content/themes/gitphp/timthumb.php?src=https://www.grblhal.com/wp-content/themes/gitphp/assets/img/pic/9.jpg&h=110&w=185&q=90&zc=1&ct=1)
[gnea/grbl-Mega Issue#2] Better interrupt priorities -
![[gnea/grbl-Mega Issue#3] ATMega16U2 virtual com port on ATMega2560](https://www.grblhal.com/wp-content/themes/gitphp/timthumb.php?src=https://www.grblhal.com/wp-content/themes/gitphp/assets/img/pic/5.jpg&h=110&w=185&q=90&zc=1&ct=1)
[gnea/grbl-Mega Issue#3] ATMega16U2 virtual com port on ATMega2560 -
![[gnea/grbl-Mega Issue#4] Real-time adjustable feedrates](https://www.grblhal.com/wp-content/themes/gitphp/timthumb.php?src=https://www.grblhal.com/wp-content/themes/gitphp/assets/img/pic/2.jpg&h=110&w=185&q=90&zc=1&ct=1)
[gnea/grbl-Mega Issue#4] Real-time adjustable feedrates
- [gnea/grbl-Mega Issue#1] $ command extentions
- [gnea/grbl-Mega Issue#2] Better interrupt priorities
- [gnea/grbl-Mega Issue#3] ATMega16U2 virtual com port on ATMega2560
- [gnea/grbl-Mega Issue#4] Real-time adjustable feedrates
- [gnea/grbl-Mega Issue#5] question about the download zip contents
- [gnea/grbl-Mega Issue#6] Adding outputs for external state signals
- [gnea/grbl-Mega Issue#7] which g-code sender is being used in grbl-Mega testing?
- [gnea/grbl-Mega Issue#8] Frecuencia y velocidad de avance.
#1 – bdring 于 2021-02-08
The speed in the setting is based on motor speed. The kinematics need to compensate for that. Determine the ratio of how far the move is in real world space vs how far the motors move and apply that to the feed rate.
For example if the real world move is 10mm but the motors have to move 15mm, you would have a 1.5 compensation factor. If your feed rate is 1000mm/min, you would change it to 1500mm/min.
The distances are linear moves, so do the maths using each axis. See the polar coaster for an example.