Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 01:06:53 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Cycle running LED
Pages: 1   Go Down
Print
Author Topic: Cycle running LED  (Read 739 times)
0 Members and 1 Guest are viewing this topic.
Darc
Active Member

Offline Offline

Posts: 177


View Profile
« on: April 21, 2010, 01: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
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #1 on: April 25, 2010, 09: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, 09:19:45 PM by zealous » Logged

Regards, Jason Blake

www.Fusioncnc.com
Darc
Active Member

Offline Offline

Posts: 177


View Profile
« Reply #2 on: April 29, 2010, 03:02:01 PM »

Hi Zealous, thanks for the tip.
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!