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, 11:08:29 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
Pause milling on G0
Pages:
1
Go Down
« previous
next »
Author
Topic: Pause milling on G0 (Read 772 times)
0 Members and 1 Guest are viewing this topic.
iceblu3710
Active Member
Offline
Posts: 24
Pause milling on G0
«
on:
April 24, 2009, 09:45:51 PM »
I have a positioning stage under mach3 control and a manual z and desperately require a script that on any G0 the gcode will pause (for say 10seconds or wait for button press) so I can lift the tool when complete the G0 command and wait for me to re-lower the tool.
Can anybody hook me up as I have NO idea where to even start.
In case your wondering im doing engraving and my z has a floating head, the only reason its not under motion control yet is Ive yet to make all the necessary components and need a screw still.
EDIT:
Ok so i re-watched all the videos, I hate visual basic and don't know any syntax but I think i know what sequence of operations im going for now at least. Something like this:
if G0 then
do button 1001 (feed hold)
while input 15 is not on wait
do button 1004 (single step, do the G0 rapid)
while input 15 is not on wait
do button 1005 (resume)
and save the file as G0 so its called automatically on any G0 (I can do it with M's but haven't tried G's yet...) this way I can mount a simple push button on the feed handle of my spindle and easily sit there and go at the entire operation. If i cant use G's as macros then I could figure out how to get Mastercam to put a custom M code before and after a G0 for the same effect.
«
Last Edit: April 24, 2009, 11:38:42 PM by iceblu3710
»
Logged
iceblu3710
Active Member
Offline
Posts: 24
Re: Pause milling on G0
«
Reply #1 on:
April 25, 2009, 11:57:03 AM »
I was up all night after house of frustration and found one some config setting was ignoring ALL macros, after I figured that out (I copied the Mach3Mill config screen) It was a bit easier. Woke up this morning to finish the inputs and here is the finished script, works perfectly!
'M37 Macro For Manual Z-Axis Movement
Call DoOEMButton (1001) 'Pause GCode
Message ("Move Spindle Up")
Do While IsStopped()
If Not IsActive(INPUT1) Then 'Loop untill INPUT1 is active
Message ("Waiting For Spindle OK")
Sleep 100
Else
Message ("Loading G0")
Call DoOEMButton (1004) 'Single Step Code Step
Call DoOEMButton (1000) 'Start GCode
Exit Do
End If
Loop
Message ("Wait While GO")
While IsMoving 'Wait for G0 to finish
Sleep 100
Wend
Message ("Move Spindle Down")
Do While IsStopped()
If Not IsActive(INPUT1) Then 'Loop untill INPUT1 is active
Message ("Waiting For Spindle OK")
Sleep 100
Else
Message ("Continuing Program")
Call DoOEMButton (1004) 'Disable Single Step
Call DoOEMButton (1000) 'Resume Program
Exit Do
End If
Loop
Logged
fer_mayrl
Global Moderator
Offline
Posts: 452
Re: Pause milling on G0
«
Reply #2 on:
April 27, 2009, 09:55:22 AM »
I would in this case, just enabled the Optional M1 Stop in the main screen, and would have added an M1 before each G0, that way the Gcode would feed hold until cycle start would be pressed again.
Fernando
Logged
iceblu3710
Active Member
Offline
Posts: 24
Re: Pause milling on G0
«
Reply #3 on:
April 27, 2009, 10:12:24 PM »
I wanted a more intuitive macro as I stand by the machine and have a button on the axis lever, everythings nice and quick now, just need to make a few more preset tool holders to shave a few more seconds off runs.
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...