Hello Guest it is June 16, 2019, 03:36:30 AM

Author Topic: Step through code/script on active low signal  (Read 2006 times)

0 Members and 1 Guest are viewing this topic.

Step through code/script on active low signal
« 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


Re: Step through code/script on active low signal
« Reply #2 on: January 13, 2010, 03:39:43 PM »
Excellent!!! 

Thank you for the quick response!
Charlie