Switch mode MANUAL / MDI
- mrchar
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
18 Jun 2017 09:29 - 18 Jun 2017 09:31 #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
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
Last edit: 18 Jun 2017 09:31 by mrchar.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23310
- Thank you received: 4858
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
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.
- +Jan+
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 15
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:
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
#!/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.070 seconds