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 24, 2012, 07:45:54 PM
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
Mach Screens
Screen designer tips and tutorials
Modified Load G Code Button
Pages:
1
Go Down
« previous
next »
Author
Topic: Modified Load G Code Button (Read 1640 times)
0 Members and 1 Guest are viewing this topic.
engraversoflight
Active Member
Offline
Posts: 28
Modified Load G Code Button
«
on:
July 02, 2009, 09:06:09 PM »
I downloaded the Mach screen designer...one thing I want to do is have a modified "Load G Code" button. I want to retain the normal button, but just have a new button on the screen set as well. Here's what I want it to do:
open up file window (i select the file)
sets it at g54 location
opens up file window again (select the file)
sets it at g55 location
opens up file window one last time (I select third file to cut)
sets it at g56 location
then in the toolpath window i should have three different toolpaths. if i hit cycle start, it should run the file at g54, then g55 then g56.
how do i write the VB code for this? or is there a tutorial i can watch to do it myself?
Logged
zealous
Active Member
Offline
Posts: 486
Re: Modified Load G Code Button
«
Reply #1 on:
July 03, 2009, 03:33:29 PM »
Mach3 can only display 1 file in the toolpath at a time.
You would have to write a "Job Queque" program to do what you want (without having the ability to see the toolpath for each file).
I could write the code which the user would load as many files as they would like then set the preset work coordinate system for each, but it would be paid work as there wold be alot to code.
Logged
Regards, Jason Blake
www.Fusioncnc.com
engraversoflight
Active Member
Offline
Posts: 28
Re: Modified Load G Code Button
«
Reply #2 on:
July 03, 2009, 04:42:51 PM »
I posted this question about 6-12 months ago and got this response. I was trying to avoid the LED button thing that this guy's code has:
~~~~~~~~~~~
Below is my code for opening then running 2 g-code files. The Run Button code will run either 2 or 1 depending on led#1110. I hope someone can find it useful.
Bill
Load Button
If GetUserLED (1110) = 1 Then
DoOEMButton (216)
While IsLoading()
Wend
cutfile = (FileName())
SetUserLabel (2,cutfile)
DoOEMButton (216)
While IsLoading()
Wend
camerafile = (FileName())
SetUserLabel (1,camerafile)
Else
DoOEMButton (216)
While IsLoading()
Wend
cutfile = (FileName())
SetUserLabel (2,cutfile)
camerafile = "None"
SetUserLabel (1,camerafile)
End If
Run Button
If GetUserLED (1110) = 1 Then
If GetUserLED (1112) = 0 Then
SetUserLED (1111,1)
camerafile = GetUserLabel(1)
LoadFile (camerafile)
While IsLoading()
Wend
Sleep (1000)
DoButton (0)
While IsMoving()
Sleep (2000)
Wend
Sleep (5000)
SetUserLED (1111,0)
SetUserLED (1112,1)
Sleep (100)
End If
If GetUserLED (1112) = 1 Then
cutfile = GetUserLabel(2)
LoadFile (cutfile)
While IsLoading()
Wend
Sleep (1000)
DoButton (0)
While IsMoving()
Sleep (2000)
Wend
Sleep (5000)
SetUserLED (1112,0)
Sleep (100)
End If
Else
SetUserLED (1112,1)
Sleep (1000)
DoButton (0)
While IsMoving()
Sleep (2000)
Wend
Sleep (5000)
SetUserLED (1112,0)
End If
~~~~~~~~~~~
Thought this was simple enough I could just modify it a little bit, but I don't quite understand some of the coding.
Logged
zealous
Active Member
Offline
Posts: 486
Re: Modified Load G Code Button
«
Reply #3 on:
July 03, 2009, 05:21:07 PM »
How well is that code working for you I had wondered that when it was posted?
I ask only because it is looking to see if the machine is moving, what happens if you are in a FeedHold, G04, M06, M00, M01 will it auto load the next file if the machine isn’t moving?
Logged
Regards, Jason Blake
www.Fusioncnc.com
engraversoflight
Active Member
Offline
Posts: 28
Re: Modified Load G Code Button
«
Reply #4 on:
July 03, 2009, 09:36:12 PM »
I didn't try it because I don't know how to add an LED....the way it looked to me that it would run in normal mode or dual mode depending on whether this LED was on or off. I've only spent a few hours on it, then I came here.
Here's the link:
http://www.machsupport.com/forum/index.php/topic,8198.0.html
Look at the last reply...that's where the guy gave me a link to a different place where he posted.
Thanks for the reply.
Bill
Logged
Bill_O
Active Member
Offline
Posts: 104
Re: Modified Load G Code Button
«
Reply #5 on:
July 06, 2009, 02:38:30 PM »
Zealous,
I have been using it for a while now and it works fine.
Bill
Logged
Pages:
1
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...