Hello Guest it is October 04, 2023, 07:52:36 PM

Author Topic: Cycle running LED  (Read 3173 times)

0 Members and 1 Guest are viewing this topic.

Offline Tarak

  •  229 229
    • View Profile
Cycle running LED
« 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
Code "G54"   
Message "Please wait for cycle to finish before changing pages"
Exit Sub
End If

Thanks Darc

Offline zealous

  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Cycle running LED
« Reply #1 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.
« Last Edit: April 25, 2010, 10:19:45 PM by zealous »

Offline Tarak

  •  229 229
    • View Profile
Re: Cycle running LED
« Reply #2 on: April 29, 2010, 04:02:01 PM »
Hi Zealous, thanks for the tip.