Switch mode MANUAL / MDI

More
9 years 4 months ago #94676 by mrchar
Hello, I have build my first glade panel. It makes almost all what I need, but....

1. When I press button the ngc is done but AXIS stay at MDI mode, how to do switch to MANUAL (F3) itself?

2. How to do homing X, Y by one button (machine has limit switch on X and Y)?

thank you

Karel

Attachment not found

Please Log in to join the conversation.

More
9 years 4 months ago #94735 by andypugh
Replied by andypugh on topic Switch mode MANUAL / MDI
I think you would need to do this in the event handling code.

Have you seen this manual page?
linuxcnc.org/docs/2.7/html/config/python-interface.html

Please Log in to join the conversation.

More
8 years 9 months ago #104926 by +Jan+
Replied by +Jan+ on topic Switch mode MANUAL / MDI
This M Code does the job for me:
Code:
#!/bin/bash #xmessage "switch to manual mode" halcmd setp halui.mode.manual FALSE halcmd setp halui.mode.auto FALSE halcmd setp halui.mode.manual TRUE

If I rund the code via the mdi it works about 9 times out of 10. Is there something wrong with the code?

Best wishes

Jan

Please Log in to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum