- Posts: 52
- Thank you received: 3
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Great, this works:cmorley wrote: you could use HALUI to select on MDI:
halui.mode.is-mdi
will be true on MDi.
This is interesting but you always have to press a button not just move the slider. It is not very user friendly.cmorley wrote: But If your using gladevcp you could use a button to invoke an MDI command to start the spindle:
linuxcnc.org/docs/2.7/html/gui/gladevcp....mand_on_button_press
or use a button to invoke a python script to start the spindle:
linuxcnc.org/docs/2.7/html/gui/gladevcp....gladevcp:programming
It's more to learn in the beginning but really opens up what you can do.
Chris M
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Another interesting pin...cmorley wrote: If you load a file linuxcnc switches to auto mode but AXIS may switch back to MDI - use the status program to see what mode is currently running. Then you can try to cobble together some logic to work around the problem.
I like python. What worries me is having to handle hal pin both in hal files and in python scripts. Anyway, I'm sure I will try to play.cmorley wrote: You can use the slider to invoke a python script too.
With python code you can do almost anything - this is how Gmoccapy and Gscreen interact with linuxcnc.
They are essentially just a non-standardly loaded gladevcp panel.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.