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 26, 2012, 11:53:43 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
G41, Strange movement, I can't figure out what dumb mistake I'm making!
Pages:
«
1
2
Go Down
« previous
next »
Author
Topic: G41, Strange movement, I can't figure out what dumb mistake I'm making! (Read 858 times)
0 Members and 2 Guests are viewing this topic.
Graham Waterworth
Administrator
Offline
Posts: 1,665
West Yorkshire, England
Re: G41, Strange movement, I can't figure out what dumb mistake I'm making!
«
Reply #10 on:
October 01, 2010, 06:28:22 AM »
I suspect having the G41 applied before the sub call and the rapid moves is causing the problem. Try applying the G41 within the sub and cancelling it before it exits the sub.
Graham
Logged
G-Code is on the cutting edge
Autovalues Engineering, CNC machining specialists, Bradford, England
BR549
Active Member
Offline
Posts: 2,555
Re: G41, Strange movement, I can't figure out what dumb mistake I'm making!
«
Reply #11 on:
October 01, 2010, 09:17:57 AM »
I also see some problems with the incremental code. It does not add up correctly to do loops and some of the formulas do not make sense. To actually cut that profile you have to go about it in a different approach. And yes you have to do the comp as G1 as you lead into the profile and remove it as a G1 as you pull out of the profile.
But that is just my opinion, Your milage may vary. (;-) TP
Logged
Darc
Active Member
Offline
Posts: 177
Re: G41, Strange movement, I can't figure out what dumb mistake I'm making!
«
Reply #12 on:
October 07, 2010, 12:44:26 AM »
Hi Guys, sorry been away for a while.
Thanks for all the suggestions, but buggered if I can get it to work.
BR549, the values don't add up correctly due to the cut size being applied after each repetition.
Thanks anyway guys.
Logged
BR549
Active Member
Offline
Posts: 2,555
Re: G41, Strange movement, I can't figure out what dumb mistake I'm making!
«
Reply #13 on:
October 08, 2010, 01:37:25 PM »
Darc I had some time today so I took your code apart and reaaranged it both in Abs mode and Inc mode.
Abs runs just fine BUT there appears to be a BIG ole bug in the G41 INCremental side dealing with arcs. After the first pass around it will DOUBLE the arc radius for the arc so it HAS to make a big circle to get all the arc in the same space(;-)
I tried in R mode and IJ mode same thing.
So you are not crazy. AND your code, once I took full time to draw it out and review it WAS spot on. NICE JOB on parametric Incremental code. I DID have to move the leadin and leadouts to make it work correct AND I had it all working EXCEPT for the one arc and mach took a holiday on that move(;-)
(;-) TP
«
Last Edit: October 08, 2010, 01:40:52 PM by BR549
»
Logged
BR549
Active Member
Offline
Posts: 2,555
Re: G41, Strange movement, I can't figure out what dumb mistake I'm making!
«
Reply #14 on:
October 08, 2010, 07:09:42 PM »
Darc it seems to be a G41 bug. IF you program the part in the opposite direction of rotation AND use a G42 in place of the g41 it seems to work ok.
(;-) TP
Logged
Darc
Active Member
Offline
Posts: 177
Re: G41, Strange movement, I can't figure out what dumb mistake I'm making!
«
Reply #15 on:
October 10, 2010, 03:16:18 PM »
Hi BR549, thanks for taking a closer look, also thanks for confirming I'm not a spazz (well a total spazz anyway).
I'll try it running the other way and with G42 instead.
Thanks!
Logged
BR549
Active Member
Offline
Posts: 2,555
Re: G41, Strange movement, I can't figure out what dumb mistake I'm making!
«
Reply #16 on:
October 10, 2010, 07:06:36 PM »
Funny , the first loop through every thing works as expected. Then in the middle of the second loop it all goes to heck.
Still playing with it, (;-) TP
Logged
BR549
Active Member
Offline
Posts: 2,555
Re: G41, Strange movement, I can't figure out what dumb mistake I'm making!
«
Reply #17 on:
October 11, 2010, 02:44:00 PM »
Darc I was wrong it will do the same with G42. I have banged on it for several days now AND see the problem but I can't find any way around it as is.
The problem as I see it is that MACH is NOT carrying over the math beyond the first loop in a sub, It seems to start all over again each loop. If you run it slow and single step it you can see the problem. BUT I cannot figure a way around the problem and I have tried it 39 ways to sunday so far.
Even tried each loop being a separate function of G41/G40 same problem.
Also tried it AS a continuous SPIRAL for each loop , Same thing
The parameteric side is NOT a problem tried it with and without same thing
I can Write code that will do the job but NOT inc parametric with SUBS and G41/42.
I don't KNOW if the NEW Comp code will solve the problem. If I can find the test version I will give it a whirl to see.
(;-) TP
Logged
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...