Controlling LinuxCNC and the gui while switching a gear

More
30 Jan 2023 11:21 #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 or Create an account to join the conversation.

More
30 Jan 2023 12:13 #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.
The following user(s) said Thank You: HiSH

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

More
30 Jan 2023 12:44 #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 or Create an account to join the conversation.

More
30 Jan 2023 13:11 #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 or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum