Switch mode MANUAL / MDI

More
18 Jun 2017 09:29 - 18 Jun 2017 09:31 #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

File Attachment:

File Name: nova.tar.gz
File Size:10 KB
Attachments:
Last edit: 18 Jun 2017 09:31 by mrchar.

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

More
20 Jun 2017 17:16 #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
23 Jan 2018 22:36 #104926 by +Jan+
Replied by +Jan+ on topic Switch mode MANUAL / MDI
This M Code does the job for me:
#!/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.132 seconds
Powered by Kunena Forum