Hello Guest it is March 28, 2024, 10:35:28 AM

Author Topic: How To Tell When A G-Code Program Is Running?  (Read 7586 times)

0 Members and 1 Guest are viewing this topic.

Offline Bodini

*
  •  216 216
    • View Profile
Re: How To Tell When A G-Code Program Is Running?
« Reply #10 on: December 19, 2009, 08:46:40 AM »
Son.
Of.
A.
Mofo.

Got any other classified info up your sleeve?  Guess that tidbid outta make it to the wiki.  Thanks, Jason.

/nick

Offline Vogavt

*
  •  260 260
    • View Profile
Re: How To Tell When A G-Code Program Is Running?
« Reply #11 on: February 07, 2015, 09:26:18 AM »

I have put together all the references I found on VBS when I was writing macros HERE for download.


Anyone happen to have the VBS_info.zip that is no longer available at the above link?

Would love to take a peek at it.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: How To Tell When A G-Code Program Is Running?
« Reply #12 on: February 07, 2015, 02:01:09 PM »
There are 3 things to look at to tell IF a Gcode FILE is loaded and running. IT MAY NOT  work IF a macro (M6) is running a tool change

 GetOemLed(172) ----->  IF TRUE then a Gcode is loaded
 GetLED(4)           -----> IF TRUE then CYCLE START is active
 GetLed(5)           -----> IF  TRUE then in FEEDHOLD (pause)

Note there are instances when Mach3 is running a GCODE that you can be in FEEDHOLD and the Cycle start LED will be ON.
AND in some instances whle in Feedhold the LED will be ON. IT just depends on what  Mach3 is doing when you FEEDHOLD.

So you have to account for that as well.

(;-) TP



« Last Edit: February 07, 2015, 02:03:00 PM by BR549 »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: How To Tell When A G-Code Program Is Running?
« Reply #13 on: February 07, 2015, 02:24:08 PM »
UPDATE (;-)

Further Testing, Looks like

GetLed(172)
GetLed(4)

Will do the JOB. BUT you MAY be able to only use

GetLed(4)  ----> Cycle Start