Hi, i try to make my first plug in for mach3. i use vs2008 with Ed Bryson’s wizard.
my plug in work but with whne mach 3 not run a code but when he run a code there are 3-5 sec of delay.
my code in piUpdate():
if(pressure<GetDRO(1139))
if(!GetLED(2011)){
Code("M680");
SetLED(2011,1);
}
pressure is a value of pressure of the air system, dro1139 is the minimum value autorized.
led 2011 is a led to indicate at system when ready to check pressure.
when I initialise mach3 and remove air them my m680 work very fast and no trouble but when i execute a gcode them i remove air mach 3 wait 3-5 sec before execute my m680.
why this delay??
Thanks