Can glade switch Axis between manual and mdi mode

More
19 Jun 2015 23:09 #59994 by tome
I have a set of buttons that in a Glade panel that lets the user select a tool from the tool changer. The Glade button simply runs an EMC_Action_MDI to do "M6 Tx" (where x is the tool number). When the user clicks one of these buttons Axis switches to the MDI mode tab. Is there any simple way (in Glade) to have it switch back to manual mode (if it was in manual mode when the user pressed the button)?
-Tom

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

More
19 Jun 2015 23:56 #59995 by ArcEye
One way is look at halui.mode

www.linuxcnc.org/docs/devel/html/gui/halui.html

Need to see if Axis updates itself though.
There is an issue with Axis that some things are in internal state and others are fetched from the underlying system,
can't remember if this affects mode or not.

It is quite possible to get out of synch with it.

Otherwise see .....src/emc/usr_intf/axis/extensions/emcmodule.cc for how Axis does it

regards

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

More
20 Jun 2015 10:02 #60010 by cmorley
You would have to add a handler file and some python code to the GLADE panel.
www.linuxcnc.org/docs/2.6/html/gui/glade...eaning_up_afterwards

Chris M

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

Moderators: mhaberlerHansU
Time to create page: 0.063 seconds
Powered by Kunena Forum