Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: charliev on January 13, 2010, 02:08:29 PM

Title: Step through code/script on active low signal
Post by: charliev on January 13, 2010, 02:08:29 PM
Hello all, thank you for your help.

Given a VB Script that is divided up into G-Code segments... I want to be able to read the status of a parallel port pin and have it act as a "continue" signal that will ultimately step through the code.

For instance: My code will be divided into a series of locations to seek to, Another device will signal MACH3 to execute each location segment. The signal will be an active low on a parallel port pin... when this signal goes low, the next "location" code should execute and then the script pause until the next signal is received.

Can someone point me in the right direction on how to read a pin on the parallel port using MACH3 scripting (I don't think there is such a thing with G-code, but I'm a newbie). I assume this can be done with VB scripting, and my scripting would also perform the G-code location seek.

Any help is greatly appreciated!

Thank you,
Charlie


Title: Re: Step through code/script on active low signal
Post by: HimyKabibble on January 13, 2010, 03:02:15 PM
http://www.machsupport.com/forum/index.php/topic,13631.0.html
Title: Re: Step through code/script on active low signal
Post by: charliev on January 13, 2010, 03:39:43 PM
Excellent!!! 

Thank you for the quick response!
Charlie