Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: rexdc on December 26, 2011, 11:42:26 PM

Title: Different responses from two computers running the same gcode
Post by: rexdc on December 26, 2011, 11:42:26 PM
I am new to using mach3 and I have a problem in that I am using one computer (my laptop) to check gcode file and do testing on for scripts and the other to actually run my CNC router. one computer will read a gcode file differently than the other computer. The following code was load to the two computers.  This basically cuts a circle a little over 1 inch and .1 inch deep.  On my laptop this code runs properly but on the CNC router computer it somehow adds the     I-0.552 in line 5 to the diameter of the circle causing the end result to be an elongated x axis on the circle.  By changing line 5 to read G03 X0.552 Y0 I0 J0 F5 the cnc router will cut the circle properly.  Has anyone got a cue to what I am doing to cause this problem?
G00 X0 Y0 Z1 F5
M03
G00 X0.552 Y0
G01 Z-0.1 F5
G03 X0.552 Y0 I-0.552 J0 F5
G00 Z1
G00 X0 Y0
M05
M30
Title: Re: Different responses from two computers running the same gcode
Post by: Picengraver on December 27, 2011, 12:12:34 AM
Is the IJ (Gen. Config.) mode the same on both computers?

Regards,
John Champlain
www.picengrave.com
Title: Re: Different responses from two computers running the same gcode
Post by: rexdc on December 27, 2011, 01:00:41 PM
Thanks John that was the problem.   I had looked at the Gen Config file earlier but missed the IJ mode box.  I a greatful to you for the help!
Title: Re: Different responses from two computers running the same gcode
Post by: Hood on December 27, 2011, 01:19:24 PM
It is a good idea to have the IJ mode set in the first line of your code, that way it will never be wrong for that particular code.
Hood
Title: Re: Different responses from two computers running the same gcode
Post by: rexdc on December 28, 2011, 11:40:08 AM
That sounds like and excellent idea, the omly problem here is that I am a newby, so help me with a clue with that line of code.
Title: Re: Different responses from two computers running the same gcode
Post by: Hood on December 28, 2011, 02:16:10 PM
G90.1 is Abs IJK mode and G91.1 is Inc IJK mode.
Hood
Title: Re: Different responses from two computers running the same gcode
Post by: rexdc on December 28, 2011, 03:16:33 PM
Thanks so much for the help.  There are some nice guys in the world.  Sincerely, I do appreciate the help.  I am having some fun with this,  it marries two of I passions, computers and woodworking.  I've already tackles some screen mods for Mach3 and they actually work!  Been doing a lot of reading and some trials, not unlike some other programming I have done in the past, as i get a better understanding of mach3 and g-code this will be a lot of fun.  Thanks again to both of you.
Title: Re: Different responses from two computers running the same gcode
Post by: Hood on December 28, 2011, 03:57:12 PM
Thats what its all about, having fun :)
Hood