Hello Guest it is April 17, 2024, 09:32:15 PM

Author Topic: Different responses from two computers running the same gcode  (Read 3728 times)

0 Members and 1 Guest are viewing this topic.

Offline rexdc

*
  •  17 17
    • View Profile
Different responses from two computers running the same gcode
« 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
Re: Different responses from two computers running the same gcode
« Reply #1 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

Offline rexdc

*
  •  17 17
    • View Profile
Re: Different responses from two computers running the same gcode
« Reply #2 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!

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Different responses from two computers running the same gcode
« Reply #3 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

Offline rexdc

*
  •  17 17
    • View Profile
Re: Different responses from two computers running the same gcode
« Reply #4 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.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Different responses from two computers running the same gcode
« Reply #5 on: December 28, 2011, 02:16:10 PM »
G90.1 is Abs IJK mode and G91.1 is Inc IJK mode.
Hood

Offline rexdc

*
  •  17 17
    • View Profile
Re: Different responses from two computers running the same gcode
« Reply #6 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.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Different responses from two computers running the same gcode
« Reply #7 on: December 28, 2011, 03:57:12 PM »
Thats what its all about, having fun :)
Hood