Switch mode MANUAL / MDI

  • mrchar
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago - 9 years 4 months ago #94676 by mrchar
Switch mode MANUAL / MDI was created 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

File Attachment:

File Name: nova.tar.gz
File Size:9.87 KB
Last edit: 9 years 4 months ago by mrchar.

Please Log in or Create an account 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 or Create an account 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 or Create an account to join the conversation.

Moderators: HansU
Time to create page: 0.124 seconds
Powered by Kunena Forum