Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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
-
Is the IJ (Gen. Config.) mode the same on both computers?
Regards,
John Champlain
www.picengrave.com
-
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!
-
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
-
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.
-
G90.1 is Abs IJK mode and G91.1 is Inc IJK mode.
Hood
-
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.
-
Thats what its all about, having fun :)
Hood