grblHAL / core

grblHAL core code and master Wiki
Other
310 stars 76 forks source link

Constant rotation of an axis by just providing RPM. #286

Closed MuhammadQaisarAli closed 1 year ago

MuhammadQaisarAli commented 1 year ago

I want to rotate X-Axis just like spindle. But I want to rotate it continuously with a commanded RPM. X10Y1Z4 means that rotate X with 10RPM , move Y to 1 and Z to 4. It would be nice if we can modify each axis. And synch the rpm with over all feed as well (Incase of feed override).

terjeio commented 1 year ago

This is not easy/possible to implement and is not supported by standard gcode semantics. What is the use case for this?

LoganFraser commented 1 year ago

Probably a stepper or servo driven lathe, given the context.

terjeio commented 1 year ago

A stepper driven spindle controlled by the S parameter is possible. Hijacking the X parameter and controlling it through the planner etc. is not something I would attempt to implement - that path is designed for synchronous motion.

terjeio commented 1 year ago

Closed due to lack of feedback.

MuhammadQaisarAli commented 1 year ago

This is not easy/possible to implement and is not supported by standard gcode semantics. What is the use case for this?

Yes you are right, we don't have standard g-code support and that's the challenge to be faced. A used case would be filament winding machine.

MuhammadQaisarAli commented 1 year ago

Probably a stepper or servo driven lathe, given the context.

Hmm.. that could be a possible option.

MuhammadQaisarAli commented 1 year ago

A stepper driven spindle controlled by the S parameter is possible. Hijacking the X parameter and controlling it through the planner etc. is not something I would attempt to implement - that path is designed for synchronous motion.

Yes but that won't be an accurate solution, rather a go on