Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Chip on November 11, 2006, 10:45:57 AM

Title: Loading one Gcode file after Another Problem's
Post by: Chip on November 11, 2006, 10:45:57 AM
Hi, ALL

After running this code, Any Gcode file I load with a G02,G03 I get this error, "Radius to end of arc differs from radius to start on Line number #**"  (** is line # of first G02,G03), on Status window and Lasterror's File.

(Tooth2.txt)
G90 G80 G40 G91.1; same thing with or without this code
m98 p11 l11; Setting's, A set to 0.5
m30

o11;-----------------------------one deg. step
g91
g01 x.5 y-.0 z-.5 a32.727272 f100; A axis 11 equal spaces 360 turn
g00 x-.5 y.0 z.5 a-32.727272
g00 a32.727272
m99
%

A re-start seem's to resolve this until this Gcode is Run again. Am I missing a Gcode cancel or is it a Bug ?

Any help would be Appreciated.

Thank's Chip
Title: Re: Loading one Gcode file after Another Problem's
Post by: ger21 on November 11, 2006, 12:54:13 PM
Incorrect I,J Mode.?
Title: Re: Loading one Gcode file after Another Problem's
Post by: Graham Waterworth on November 11, 2006, 01:43:21 PM
Hi Chip,

The code looks ok apart from :-

I would remove the G91.1 (G92.1 maybe?), re-run Mach and then try your g02/03

The only other thing I can think of is it may be a good idea to put a G90 on a line before your M30 just in case the other programs don't have it in the start up.

Graham.
Title: Re:Loading one Gcode file after Another Problem's
Post by: Chip on November 11, 2006, 03:20:12 PM
Hi, Gerry and Graham

It appears that the Gcode interpreter Mach3R2.0.009, isn't reading the G90 G80 G40 G91.1 when I load the Gcode File below, after running Tooht2.txt.

It doesn't change Mach3 back to Distance Mode, ABS -  G90, If I start Mach3 with the below file, It works fine.

It has the, G90 G80 G40 G91.1 in it as generated by LazyCom

It should read each file and set the propper Modes each time just like from a fresh startup.   

Thank's for the Input, Chip
Title: Re: Loading one Gcode file after Another Problem's
Post by: Graham Waterworth on November 12, 2006, 03:32:27 AM
G91.1

I don't know that one and I can't find any reference to it in the manual.

What is it?

This is what google found :-

FAR Part 91 Sec. G91.1 effective as of 09/30/1963
Federal Aviation Regulation. Hide details for Sec. G91.1 Sec. G91.1 ... G91.1 Section 1.   ;D ;)

Graham.
Title: Re: Loading one Gcode file after Another Problem's
Post by: ger21 on November 12, 2006, 07:22:38 AM
G90.1 - set IJ mode to absolute
G91.1 - set IJ mode to incremental

It's in the manual I'm looking at.
Title: Re: Loading one Gcode file after Another Problem's
Post by: Brian Barker on November 12, 2006, 06:48:44 PM
Also try putting the G90 on a single line and I think you will be happy ;)
Title: Re: Loading one Gcode file after Another Problem's
Post by: Chip on November 12, 2006, 10:46:56 PM
Hi, Brian

I figured it out earlier today added some LED's on Diag. page and made some changes to LazyCam's, Post Gcode option's page, been chasing my tail, pounding 16 penny. nail's in a wall (with my head), Posting answers to question's, where I can, Just a Mach sick-o-hear.
Learned allot over the past year (time flies when your have-n fun), our IR water jet cutter conversion working  nice, several other machine's. in the work's.

The Gcode (test55Dotpolyline58.txt) was generated by LazyCam, The problem is that, LC Posting Options, PreAmble, PostAmble ( Release 2.66) are setup incorrectly or Mach3 can't read and process multi-Gcode command's on one line yet.

In 2.66 the setup was as fallows.

Pre.
G90 G80 G40
Post.
G40 G80 M30

I Changed them to.

Pre.
G90
G80
G40

Post.
G40
G80
G90
M30

All is well now, Gust a Bug, you pick it, LazyCam, Mach3 or Both.
OK some operator error hear also.

Thank's Chip



Title: Re: Loading one Gcode file after Another Problem's
Post by: Brian Barker on November 12, 2006, 11:00:03 PM
Good to see that you got it to work and I have talked to Art about it :)
Title: Re: Loading one Gcode file after Another Problem's
Post by: Chip on November 14, 2006, 09:16:15 PM
Hi Brian

I have done some futher checking it appears that the G90 with G91.1 or G90 with G90.1, in the same line is what is causing the ABS Mode not to reset / change.

Use my XML I'll send it Email, Diag page has Additional I J led's to view.

N10 (*****)
N11 G90;-------------ABS
N12 G91;-------------INC
N13 G90 G91.1;-------NO ABS, IJ INC
N14 G90 G90.1;-------NO ABS, INCH
N15 G90 G20;---------ABS, INCH
N16 G90.1;-----------IJ ABS
N17 G91 G21;---------INC, MM
N18 G90 G20;---------ABS, INCH
N19 G91 G21;---------INC, MM
N20 G90.1;-----------IJ ABS
M30
%

Thank's, Chip
Title: Re: Loading one Gcode file after Another Problem's
Post by: Graham Waterworth on November 15, 2006, 02:43:04 AM
In standard Gcode you can not have G90 and G91 on the same line as they are in the same code group, so it would seem mach is taking G91.1 as the same as G91.

Like you can't have G01 and G02 in the same line.

Just put them on separate lines, no fix needed.

Graham.
Title: Re: Loading one Gcode file after Another Problem's
Post by: Chip on November 15, 2006, 11:33:17 AM
Hi, Graham

I understand what your saying.

It wasn't Me it is LazyCam Post's, Just caused a lot of problem's.

I understand LC is undergoing Lot's of changes Now.

It may help other's using LC, Now though.

Thank's, Chip