Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: Luslugger on November 28, 2010, 04:25:11 PM

Title: g2 stops program when running
Post by: Luslugger on November 28, 2010, 04:25:11 PM
The n211 G2 line stops the feed.  What is happening?  How do I change?
The n36 g2 is a spiral. same questions?
Bob S

N211
G0G90G43G54X0.850Z1.0H21S1000
G0B0.0
G0Y0.0
M3M8
G1Z-.10F10.0
G1X.838F10.0
G2X.838Y0.0I-.838F20.0
G80M9
G0Z1.0
M5






N36(ENDMILL)
G0G90G43G54X0.0Z1.0H36T8S2000
G0B0.0
G0Y0.0
M3M8
G0Z.10
G1X.1885F30.0
G2X.1885Y0.0I-.1885Z-.558P3F20.0
G1X0.0F10.0
G1X.10F5.0
G3X.10Y0.0I-.10Z-.561P1F10.0
G3X.10Y0.0I-.10F15.0
G0X0.0
G0Z0.0
G1X.50F20.0
G3X.50Y0.0I-.50F30.0
G0X0.0
G0Z1.0
G80M9
M5
G28Y0.0X0.0
M6
G28Y0.0X0.0
M6
N36(ENDMILL)
Title: Re: g2 stops program when running
Post by: ger21 on November 28, 2010, 04:38:47 PM
Probably needs a J. Is there an error message?
Title: Re: g2 stops program when running
Post by: Luslugger on November 28, 2010, 07:52:11 PM
I added a J0.0 to the line.  The code stopped at the same line.
Bob S
Title: Re: g2 stops program when running
Post by: ger21 on November 28, 2010, 07:54:54 PM
Is there an error message?
Title: Re: g2 stops program when running
Post by: BR549 on November 28, 2010, 08:36:20 PM
THe  code runs here.  It does not do anything constructive but it runs.

(;-) TP
Title: Re: g2 stops program when running
Post by: Luslugger on November 29, 2010, 08:36:29 AM
What do you mean "does nothing"?  My Mits m86 controllers have been running this code for years.  I ran this code yesterday.  I am trying to back plot the code I write by hand.  Since I already own the Mach3 series, I prefer to use Mach3.
Bob S
Title: Re: g2 stops program when running
Post by: Graham Waterworth on November 29, 2010, 09:23:16 AM
What is the P3 and P1 for in the G02/3 lines on your old control, I don't think Mach3 will like them for a start.

Graham
Title: Re: g2 stops program when running
Post by: BR549 on November 29, 2010, 11:08:48 AM
What I meant was it does not appear to acutally be part of a program that actually cuts something.

Here is a shot of the toolpath as drawn in Mach3

Title: Re: g2 stops program when running
Post by: Luslugger on November 29, 2010, 12:11:45 PM
That is what I would like my Mach to look like.  The circles don't look on the same centerline but they are.  It is one interpolated circle with another interpolated spiral in the center.  Did you get that jpg with software or a camera?
Title: Re: g2 stops program when running
Post by: BR549 on November 29, 2010, 01:56:09 PM
That Jpg is a screen print saved in PAINT then trimmed and saved as a JPG.

As Graham mentioned as well Mach will not process the P values you used in the arc

(;-) TP
Title: Re: g2 stops program when running
Post by: Luslugger on November 29, 2010, 02:05:34 PM
In the inside circle you can see the spiral that was generated by the P = NO. of turns.  As a backplotter I have been seeing the P for spirals for several years.  Maybe the control will not output the P to the steppers.
Title: Re: g2 stops program when running
Post by: BR549 on November 29, 2010, 03:20:51 PM
I don't think MACH supports the P parameter.

(;-) TP