Hello Guest it is November 27, 2021, 03:39:20 AM

Author Topic: How to wait for an input  (Read 2043 times)

0 Members and 1 Guest are viewing this topic.

How to wait for an input
« on: May 15, 2012, 02:27:45 PM »
Hi all,

I am very new to mach, and still getting used to it.  The project I am working with is a small
mill, using a Pokeys 56u for start, stop.  I would like to add in an m17 command at the end of the program
to pause the cycle before reaching an m30 command.  The purpose being a finished part will be unloaded from
the mill, and placed into finished parts bin. As the part goes into the bin it will pass a sensor or
limit switch.  Once the switch has been made the program can continue to the m30, and rewind waiting
for the user to press start again. 

Any help in how I would go about programming that would be greatly appreciated, thanks in advance!
Re: How to wait for an input
« Reply #1 on: May 15, 2012, 03:15:10 PM »
Never mind, I figured out a way to accomplish this.  I used the finished parts switch with the emulator giving mach a CTRL-W "rewind" command.