Machsupport Forum

Mach Discussion => Mach Screens => Topic started by: Tarak on April 21, 2010, 02:48:02 AM

Title: Cycle running LED
Post by: Tarak on April 21, 2010, 02:48:02 AM
Hey guys, been a while, but I'm back on the Mach Train............toot...........toot
I thought I would try to put a bit of code to stop people changing pages whilst a program is running, long story short, I have one page as G54 and one as G55 so I don't want it to be changed half way through a program.
I tried the following code, and for some reason it isn't working.

If Not GetOEMLED(804)Then'The cycle running LED
DoOEMButton(1)
Code "G54"   
Else
Message "Please wait for cycle to finish before changing pages"
Exit Sub
End If

Thanks Darc
Title: Re: Cycle running LED
Post by: zealous on April 25, 2010, 10:17:04 PM
I can second that there is a bug when making a call for the current state of the Cycle start LED804.
You might send Brian a email or post on the Yahoo forum.

BTW for a fix for now you can call a Code"M*********" and retrive the correct state of the Cycle start.
Vb is handled diffrently from a button then it is from a Macro.
Title: Re: Cycle running LED
Post by: Tarak on April 29, 2010, 04:02:01 PM
Hi Zealous, thanks for the tip.