Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 25, 2012, 07:54:50 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
VB and the development of wizards
How To Tell When A G-Code Program Is Running?
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: How To Tell When A G-Code Program Is Running? (Read 1241 times)
0 Members and 1 Guest are viewing this topic.
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,346
How To Tell When A G-Code Program Is Running?
«
on:
September 09, 2009, 11:17:29 PM »
How can you tell, in a VB script, if a g-code program is currently running?
Regards,
Ray L.
Logged
Regards,
Ray L.
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: How To Tell When A G-Code Program Is Running?
«
Reply #1 on:
September 10, 2009, 06:43:18 AM »
Yes, Look at the "cycle Start" LED, the only time it is on, is when the G code is running.
scott
Logged
Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Bodini
Active Member
Offline
Posts: 112
Re: How To Tell When A G-Code Program Is Running?
«
Reply #2 on:
October 26, 2009, 09:09:17 AM »
But, if your gcode has a macro, the cycle start light goes out when the macro is running.
Update: I stand corrected. Its when you type a macro in the MDI that the cycle start doesnt light up.
«
Last Edit: October 26, 2009, 09:17:34 AM by Bodini
»
Logged
sunangel
Guest
Re: How To Tell When A G-Code Program Is Running?
«
Reply #3 on:
October 26, 2009, 10:29:27 AM »
Then how do we tell weather a gcode program is loaded? I know it's off topic, but it's best not to open a thread that is partially related, i think. =)
Logged
melee
Guest
Re: How To Tell When A G-Code Program Is Running?
«
Reply #4 on:
October 26, 2009, 12:43:02 PM »
Hi
currentfile = FileName() will get the name of the loaded .NC file as a string
Testing the return will determine if there is one loaded.
( If (!currentfile.IsEmpty()) {} or If (strlen(currentfile)) {} type of thing in C++ or C, or something clunkier in VBS)
There are undoubtedly other ways to do the same thing.
regards
Melee
Logged
sunangel
Guest
Re: How To Tell When A G-Code Program Is Running?
«
Reply #5 on:
October 26, 2009, 10:31:30 PM »
Uhm, so how is it possible to write in VB???
Logged
melee
Guest
Re: How To Tell When A G-Code Program Is Running?
«
Reply #6 on:
October 27, 2009, 02:44:50 AM »
Hi
I don't use VB, except where I have to for Mach.
Looking at the reference material, ( always a good move ) the below is a starting basis
Dim currentfile As String
currentfile = "" // ensure string is empty before you start
currentfile = FileName()
If Len(currentfile) Then
// Do whatever you want to if you find a .NC file is already loaded here
End If
I have put together all the references I found on VBS when I was writing macros
HERE
for download.
When you have read them you will know as little as me.
regards
Melee
«
Last Edit: October 27, 2009, 02:46:54 AM by melee
»
Logged
sunangel
Guest
Re: How To Tell When A G-Code Program Is Running?
«
Reply #7 on:
October 27, 2009, 06:43:00 AM »
Thank you very much melee! Though I've been VB coding on Mach3 for a few years, i don't have such important infos like you have collected! Thank you melee!
Logged
Bodini
Active Member
Offline
Posts: 112
Re: How To Tell When A G-Code Program Is Running?
«
Reply #8 on:
October 30, 2009, 09:26:44 AM »
One more thing to the OP. The cycle start light goes off during and M1 pause.
Logged
zealous
Active Member
Offline
Posts: 486
Re: How To Tell When A G-Code Program Is Running?
«
Reply #9 on:
December 19, 2009, 12:47:31 AM »
It is undocumented but:
G-Code is Loaded LED 172
Logged
Regards, Jason Blake
www.Fusioncnc.com
Pages:
1
2
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...