User defined M-code "wait"
09 Apr 2012 23:55 #19076
by GStewart
User defined M-code "wait" was created by GStewart
I created some more M-codes for one of my machines today and I have been unable to find a quick way to make them wait for an input to go high or low.
For instance, I created an M101 to unclamp my rotary table and that part works, but I would like EMC to not execute the next line of the program until the rotary table unclamped switch goes high. Is there a way to hold the M-code from exiting until this happens?
Thanks
Glenn Stewart
For instance, I created an M101 to unclamp my rotary table and that part works, but I would like EMC to not execute the next line of the program until the rotary table unclamped switch goes high. Is there a way to hold the M-code from exiting until this happens?
Thanks
Glenn Stewart
Please Log in or Create an account to join the conversation.
10 Apr 2012 00:19 #19078
by BigJohnT
Replied by BigJohnT on topic Re:User defined M-code "wait"
From the IRC
John
consider using M66 instead, but if you must use M1xx here are some clues:
wiki.linuxcnc.org/cgi-bin/wiki.pl?CustomMcodesToHal
John
Please Log in or Create an account to join the conversation.
10 Apr 2012 00:37 #19079
by GStewart
Replied by GStewart on topic Re:User defined M-code "wait"
Thanks John, I will give that a try.
Glenn Stewart
Glenn Stewart
Please Log in or Create an account to join the conversation.
Time to create page: 0.198 seconds