Hello Guest it is March 28, 2024, 08:55:00 PM

Author Topic: G-Code Says one thing DRO and Machine on Another  (Read 2612 times)

0 Members and 1 Guest are viewing this topic.

G-Code Says one thing DRO and Machine on Another
« on: August 24, 2013, 01:27:50 AM »
Well the subject says it all.  G-Code will state some small starting movement, but the Z-axis will lift up rather then go down and the machine will take off down the X-axis.  The DROs seems to be accurate to what the machine is doing but does not line up with the code at all.  Also lots of watchdog warnings.

My router had been operating fine until I removed the anti-virus software and about the same time ran a set of g-code which had some commands Mach3 didn't support.  The code was generated by RhinoCAM for Mach2 and at the start had this to say:

N10 G20
N20 G0 G17 G40 G49 G80 G90
N30 G61(CONSTANT CONTOUR OFF OR TURN ON W/G64)
N40 (Outer Profile)
N50 T1 M6 
N60 G43 0

After this it seemed to be code Mach3 could get a handle on.  But as soon as I attempted to run this in Mach3, Mach3 began having trouble keeping the spindle turned off and no longer fallowed the G-Code even after reboot and I tried G-code that had run fine in the past.

So I tried uninstalling and reinstalling Mach3 and have regained control of the spindle on/off and stop the watchdog, but the machine movement and DROs still do not match even the simplest of G-codes.

It's a head scratcher for me and any help would be greatly appreciated.

Thanks so much,

Tim

First 20 Lines of code:
N10 G20
N20 G0 G17 G40 G49 G80 G90
N30 G61(CONSTANT CONTOUR OFF OR TURN ON W/G64)
N40 (Outer Profile)
N50 T1 M6
N60 G43 0
N70 S10000 M03
N80 G00 Z0.0295
N90 X2.1083 Y-0.9206
N100 G01 Z-0.0131 F20.0
N110 G01 X1.8857 Y-0.8415 F20.0
N120 G01 X1.8342 Y-0.8295 F20.0
N130 G01 X1.7813 Y-0.8293
N140 G01 X1.7297 Y-0.8408
N150 G01 X1.6819 Y-0.8635
N160 G01 X1.6404 Y-0.8963
N170 G01 X1.6073 Y-0.9375
N180 G01 X1.5841 Y-0.9850
N190 G01 X1.5827 Y-0.9888 F20.0
N200 G01 X1.5782 Y-0.9953
N210 G01 X1.5721 Y-1.0003

Online Graham Waterworth

*
  • *
  •  2,668 2,668
  • Yorkshire Dales, England
    • View Profile
Re: G-Code Says one thing DRO and Machine on Another
« Reply #1 on: August 24, 2013, 11:30:41 AM »
Line N60 should look more like this :-

N60 G43 H1

Without engineers the world stops
Re: G-Code Says one thing DRO and Machine on Another
« Reply #2 on: August 25, 2013, 12:58:52 AM »
Line N60 should look more like this :-

N60 G43 H1



What about line N20, is that normal?
Also N80 has a G00, not sure if that would differ from just G0 or not?

Either way, none of the starting code could have nested a "subroutine" somewhere that would've survive reinstall. . . right?

Thanks for insight.