Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: bobxyz on February 22, 2012, 03:15:36 PM
-
I cannot make G41/42 work within a subroutine. Is this a known problem? Is there a fix?
-
Can you post an example program?
(;-) TP
-
Thank you. After experiencing trouble, I wrote this simple program to draw two squares. The tool path display and the machine wander all over when drawing the second square.
g92.1 g17 g20
g0 x0 y0
f10
(first square)
m98 p100
x2.000 (position of second square)
g92 x0
g0 x0 y0
m98 p100
g92 x2.0000
g0 x0
m30
o100
G00 x0 y-.3000
G41 d1 g1 x0 y0 (entry move)
(draw square)
G1 y1.0000
x1.0000
y0
x0
g40
g1 x-.3000 y0 (exit move)
g00 x0 y0
m99
-
You code seems to work here V .043.022. BUT I have seen it fail as you describe works fine the first loop then just wnaders around starting the second loop.
What ver are you running?
(;-) TP
-
The only version number I can find is R2.63.
Concerning the program above, if I remove the g41 it works fine. Also, if I add a second subroutine identical to the first one and call the first subroutine for the first square and the second subroutine for the second square, all is fine.
Thanks for your interest.
-
You're version of mach3 is 4-1/2 years old. There have probably been more than 1000 changes to mach3 since then. You might want to update.
-
IF you want to see MACH3 get lost try this file. ALl goes well UNTIL mach3 has to leave the first sub and go to the second nested sub. WHICH IS the exact same program code just as a second tier nest.
g92.1 g17 g20
g0 x0 y0
f10
(first square)
m98 p100 L1
g0 x0
m30
o100
G00 x0 y-.3000
G41 d1 g1 x0 y0 (entry move)
(draw square)
G1 y1.0000
x1.0000
y0
x0
g40
g1 x-.3000 y0 (exit move)
g00 x0 y0
G91
x2.000 (position of second square)
g92 x0
G90
g0 x0 y0
M98 P200 L1
m99
o200
G00 x0 y-.3000
G41 d1 g1 x0 y0 (entry move)
(draw square)
G1 y1.0000
x1.0000
y0
x0
g40
g1 x-.3000 y0 (exit move)
g00 x0 y0
G91
x2.000 (position of second square)
g92 x0
G90
g0 x0 y0
m99
(;-) TP
-
I just downloaded a few months ago! I will look into the most current version. Thanks.
-
I belive I downloaded 043.022 so I don't think the version is an issue.
-
So, is this a Mach3 issue (BR549 response seems to indicate this) and if so, how does it get attention?
-
Comp bugs are not going to get fixed in the current version of Mach3. The new version 4 should work much better.