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 27, 2012, 09:12:14 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
General Mach Discussion
g15/g16 problem
Pages:
1
Go Down
« previous
next »
Author
Topic: g15/g16 problem (Read 455 times)
0 Members and 1 Guest are viewing this topic.
rcaffin
Active Member
Offline
Posts: 280
g15/g16 problem
«
on:
May 02, 2011, 05:04:41 AM »
As some of you may know, i have been having a problem with the interaction between polar coordinates and the g83 drill with peck operation. At that stage I thought eh problem was in the g83 code.
I now think the problem actually lies in the g15/g16 code - and possibly with its interaction with subroutine calls. To explain:
I have a production system making a grid of units all together, in one batch. It saves hugely on tool changes.
One of the steps is to drill a ring of holes on each unit. I have been doing this using polar coordinates for the actual drilling. There were problems with the g83 instruction, which I resolved.
However, I have since found a much harder problem. I was testing out a new version of the program and hit Feed Hold and then Stop while the machine was drilling the holes. This left Mach3 in the polar coordinate state.
So I manually issued a g15 command to put it back in the cartesian coordinate system. It stayed in polar coords.
I unloaded the program and restarted it, with a g15 instruction at the start. It stayed in polar coordinates.
I killed and restarted Mach3 and all was well.
However, several development cycles later ... I was still having the same problem. It seems that once Mach3 gets into the polar coordinate state and is interrupted, it does not want to get out of the polar state.
I THINK that if I issue a g16 command and then a g15 command it does sort itself out. That is, I have to tell mach3 to go into polar cords even though at least part of it already is, then tell it to revert to cartesian.
Has anyone else had this problem?
Cheers
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: g15/g16 problem
«
Reply #1 on:
May 02, 2011, 08:51:02 AM »
Were you in a sub AND the Drill cycle when you stopped? You may have to cancell the Canned cycle as well G80 and issue the G15 to cancell out the entire process.
Most of the processes are first in first out so the order may be to G80 then G15.
I'l do some testing as well.
Just a thought, (;-) TP
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: g15/g16 problem
«
Reply #2 on:
May 02, 2011, 09:25:09 AM »
That should have read First in Last out for functions.
I tested here and all is well IF you cancell out the G83 AND G16 after you stop. Issue a G80 G15
I stopped inside the drill cycle FH/stop then applied G80 G15 and all was well.
I restarted with RFH and all was well it restarted perfectly.
I Estopped and then cancelled out and all was well. Restarted with RFH ok.
NOW IF you do not cancell out both ,the active MODE will still be in effect. If you just cancell out the G16 then the G83 is still active AND will move to the next position commanded and START the drill cycle.
RFH gives you a way to restart in the proper mode to continue.
NOTE just make SURE the Z is UP to a clear Z position before you restart with a RFH or SNAP goes the bit. Mach gives you a screen to make sure the clear move is correct.
(;-) TP
«
Last Edit: May 02, 2011, 09:27:35 AM by BR549
»
Logged
Hood
Active Member
Offline
Posts: 17,366
Carnoustie, Scotland
Re: g15/g16 problem
«
Reply #3 on:
May 02, 2011, 11:01:53 AM »
Quote from: BR549 on May 02, 2011, 09:25:09 AM
NOTE just make SURE the Z is UP to a clear Z position before you restart with a RFH or SNAP goes the bit.
Would setting a safe Z not prevent that? I know any time I have done a RFH the prep move always observes the safe Z I have set but it may be different in some circumstances?
Hood
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: g15/g16 problem
«
Reply #4 on:
May 02, 2011, 11:19:13 AM »
HIYA Hood, Yes it would. Personally I don't use the safe Z I forget it is active and it gets me in trouble (;-) Without it I know exactly where the Z is at all times.
(;-) TP
Logged
rcaffin
Active Member
Offline
Posts: 280
Re: g15/g16 problem
«
Reply #5 on:
May 02, 2011, 05:28:54 PM »
Quote from: BR549 on May 02, 2011, 09:25:09 AM
I tested here and all is well IF you cancel out the G83 AND G16 after you stop. Issue a G80 G15
Thanks! For both the info and for the testing. I see! Yes, it was doing a g83. The interactions are a trifle strange.
I gather Rewind does not issue the cancel instructions I was expecting. An assumption...
I guess I need a proper book rather than relying on just the M3M for information. But the books are all rather expensive ...
I have the same problem with SafeZ - I don't fully understand it, and prefer to know exactly where the control point is at any time. More learning needed.
Cheers
Logged
Hood
Active Member
Offline
Posts: 17,366
Carnoustie, Scotland
Re: g15/g16 problem
«
Reply #6 on:
May 02, 2011, 05:33:17 PM »
On my mill I have the Safe Z set in Machine coords and to 0mm so I always know exactly where the Z axis will go to, ie as high as possible above the table.
Hood
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: g15/g16 problem
«
Reply #7 on:
May 02, 2011, 06:00:20 PM »
I think of Gcode as talking to a 3 year old you can not take anything For granite AND must be very specific in what you tell them to do.
Where SafeZ normally gets me is IF I use a piece of code that was built on a bridgemill where there is lots of overhead room and try to run it on the Kneemill. I end up resetting the Z to better matach the code and then the safeZ travels DOWN to zero insted of UP to zero. AND you know the rest of the story.
Don't get too excited about the books MACH does have some strange ways about it that are not exactly like everyone else BUT then so does all other controllers. Somewhere long ago the controller manfs decided that each of them were the only ones that really knew how to do Gcode and there is a LOT of hybrid Gcodes out there.
(;-) TP
«
Last Edit: May 02, 2011, 06:04:13 PM by BR549
»
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...