Controlling LinuxCNC and the gui while switching a gear

More
3 years 9 months ago #263226 by HiSH
I want to switch the gears on a Deckel FP3A CNC, when a g-code command like "S10000" or the user 
by the gui wants to change the speed of the spindle.
My problem is not changing the gear self, but i didn't know how to do the following points:
- Suspending the actual g-codo command until the switching of the gear was done.
- Disabling the controls of the gui for the same time.
Is there any way to do this?
 

Please Log in to join the conversation.

More
3 years 9 months ago #263228 by rodw
M66 wait for input will wait for a digital input pin to go true.
Ideally you would trigger the toolchange and when its completed set a digital i/o pin that is being waited on to be  true.

Please Log in to join the conversation.

More
3 years 9 months ago #263230 by andypugh
The system will automatically pause feed moves (not rapids) if spindle.0.at-speed is not set true.
This is specifically intended for this sort of thing.

Disabling the GUI is harder, and I don't understand why you want to do that?

Please Log in to join the conversation.

More
3 years 9 months ago #263232 by HiSH
Thank you for your answer and you are right, with using "spindle.0.at-speed" disabling the gui is not necessary.

Please Log in to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum