Hello Guest it is April 23, 2024, 01:26:38 PM

Author Topic: Mach3 and code G41/G42 in subroutines  (Read 15531 times)

0 Members and 1 Guest are viewing this topic.

Mach3 and code G41/G42 in subroutines
« on: October 26, 2010, 02:46:45 PM »
I am a newbie to Mach3 and try the master it. I needed to make a number of 80 mm diameter holes in an instrument panel. So I made a subroutine with tool compensation to produce the holes. This worked fine for only the first hole, but the next holes are totally screwed up. It is as if in each consecutive call to the sub, the sub is partly switching back to the first hole. It works OK without the tool compensation. It also works when the code producing the hole is repeated for each and every hole. But that is bad practise, increasing code size.  Who can help me to make that sub working ?

Newbie Wilfried

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Mach3 and code G41/G42 in subroutines
« Reply #1 on: October 26, 2010, 03:08:38 PM »
THe g41 / 42 is broken in sub use.

(;-0 TP
Re: Mach3 and code G41/G42 in subroutines
« Reply #2 on: October 28, 2010, 07:38:15 AM »
That sounds a bit cryptic What exactly do you mean by that ?

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Mach3 and code G41/G42 in subroutines
« Reply #3 on: October 28, 2010, 10:58:08 AM »
exactly what it says.The G41 and G2 are BROKEN as in DO NOT WORK CORRECTLY when used in a SUBROUTINE.

(;-) TP
Re: Mach3 and code G41/G42 in subroutines
« Reply #4 on: November 28, 2010, 05:10:43 AM »
OK, I now understand that toolcompensation does not work in a sub. But is this something that will be corrected, or do we simply have to accept that it simply is not working? I think subs are the best way to deal with repeated structures in a design.
My first product was an aircraft instrument panel with a lot of the same instrument holes. It was very annoying I could not use subs to cut those holes.
Wilfried.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Mach3 and code G41/G42 in subroutines
« Reply #5 on: November 28, 2010, 11:13:41 AM »
HI WIlfried, That will be up to Brian at Artsoft.

(;-) TP
Re: Mach3 and code G41/G42 in subroutines
« Reply #6 on: December 17, 2010, 01:47:15 PM »
This is nice to know, but how do we know whether Art soft is going to fix this problem?
I have noticed that Mach3 is widely used and appreciated, even in professional applications, so I'm very surprised that Mach3 can't cope with this toolcompensation in sub's. I also can hardly imagine I'm the only one who stumbles over this item.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Mach3 and code G41/G42 in subroutines
« Reply #7 on: December 17, 2010, 04:38:56 PM »
You are not the only one(;-). You might want to email Brian at Artsoft and ask him directly.

I don't have the answer , I just know through testing that it is broken as in does not work correctly

(;-) TP

Re: Mach3 and code G41/G42 in subroutines
« Reply #8 on: April 14, 2011, 04:03:14 PM »
Hey,
  I am trying to use g41/42 in a subroutine as well, did this get resolved and if so does anyone have sample code?

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Mach3 and code G41/G42 in subroutines
« Reply #9 on: April 14, 2011, 05:21:59 PM »
No. No changes will likely be made to comp until the version 4 release of Mach3.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html