Wednesday, March 08, 2006

How can I make Wincnc wait for an Auxin Input Channel to come on?

When used in a gcode file, the M17 command will wait until an input comes on before it processes the next line of code. If the input channel is already turned on, the program will continue running. Otherwise, the program will wait, then proceed the moment the input channel comes on.

Example: In this example, we issue a wait command on input channel 11. Channel 11 could be the spindle's feedback to tell the machine if there is a tool in the spindle, for instance. So, this example waits, or tests, to see if a tool in the spindle, and the file continues running only if there is a tool in the spindle.

M17C11
[continue running if tool in spindle]

No comments: