Hello Guest it is April 25, 2024, 08:38:40 PM

Author Topic: The same code operates differently between programs?  (Read 2183 times)

0 Members and 1 Guest are viewing this topic.

The same code operates differently between programs?
« on: November 11, 2009, 06:05:45 PM »
Essentially I have a case where the same code is running differently between two programs (Mach and an old copy of MaxNC).

Here is a snippet of code that contains the lines that behave differently:

...
%
01234 (PS Tag)
(5/64 dia end mill)
N1 G00 G40 G49 G80 G90
N2 G0 Z.25
N5 G0 X-3.445 Y1.594 S8000 M3
N7 G1 Z-.01 F4.
N8 X-1.3555
N9 G2 X-1.316 Y1.555 I0. J-.039
N10 G1 Y.805
N11 G2 X-1.355 Y.766 I-.039 J0.
N12 G1 X-3.445
...

In MaxNC it seems that when it gets to line N9 it just does nothing and moves on (skipping it, essentially). It does the same for line N11 and seemingly any other line starting with G2. When this same code is run in Mach (using the same machine), line N11 cuts a large circular arc.

So, basically, Mach is running the G2 code but MaxNC is not.

Why would the same code run differently in the two programs? Is there a way to bring the two to behave the same? ie. make Mach ignore the code like MaxNC or make MaxNC recognize the code like Mach? It's almost as if the one program is set to ignore I or J calls. Can you set the programs to ignore specific calls or code?

I'm very new at this, so forgive me if this is a an obvious or ignorant question. Thanks.

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: The same code operates differently between programs?
« Reply #1 on: November 11, 2009, 06:11:36 PM »
It could be that Mach3 is set for absolute arcs and MaxNC is incremental, you can change Mach3 in the config screen for abs or inc arcs.

Graham
Without engineers the world stops