User defined M-code "wait"

More
09 Apr 2012 23:55 #19076 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

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

More
10 Apr 2012 00:19 #19078 by BigJohnT
From the IRC

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.

More
10 Apr 2012 00:37 #19079 by GStewart
Thanks John, I will give that a try.

Glenn Stewart

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

Time to create page: 0.060 seconds
Powered by Kunena Forum