Limit Spindle RPM and Feed for Touch probe

More
7 years 10 months ago #122022 by 3D-Master
Hi,

is it possible to limit the Spindle rpm and jog feed (possibly jog rapid aswell) to specified values if i call the touch probe? (for example 100 rpm and f1000 /f2000 rapid) i dont want to accidentally spool the touch probe up to 8000 rpm or crash it with 10.000mm/min

thanks

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #122032 by cmorley
I feel there is an answer to this but can't find the HAL pin required.
I thought there was a pin that told you what motion mode linuxcnc was currently using.
If there is you could possibly use that to limit rpm and feed rate using HAL infrastructure.
Maybe someone else will pick up on my idea and find the pin :)

Chris M

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #122033 by andypugh
motion.motion−type OUT S32
These values are from src/emc/nml_intf/motion_types.h
0: Idle (no motion)
1: Traverse
2: Linear feed
3: Arc feed
4: Tool change
5: Probing
6: Rotary unlock for traverse

You could use that to intervene (limit1?) between spindle commands and the driver, and also to apply a fixed feed-override, all in HAL.

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #122035 by cmorley
thanks Andy.
I see motion.motion-type is not documented in the HTML online docs...
Or maybe I'm blind...

Chris M

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #122036 by rodw
Nah, its there. search for type on this page
linuxcnc.org/docs/devel/html/man/man9/motion.9.html

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #122044 by cmorley

Please Log in or Create an account to join the conversation.

Time to create page: 0.366 seconds
Powered by Kunena Forum