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