Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: rainnydayx on March 20, 2011, 11:47:59 PM

Title: Mach3 - G code loading problem
Post by: rainnydayx on March 20, 2011, 11:47:59 PM
Hi mentors,
I need some help with my current problem loading G-code into Mach3.

I drawn a part by Solidworks 2010, then used MasterCam X3 to generate G-code. I used pocket feature (from tool path) on the drawing part. It successfully verified the toolpath from MasterCam and generated G-code saved as .NC file.

I uploaded the .NC file into Mach3 to run the program on my Hobby CNC. The toolpath on Mach3 just showed an empty block. I don't know why. I previously could generate the simple program with a rectangular and drill couple holes. But it didn't work with the more complicated program.

Your help is greatly appreciated.

rainnyday
Title: Re: Mach3 - G code loading problem
Post by: Tweakie.CNC on March 21, 2011, 03:47:31 AM
Do you get an error message in the status bar at the bottom of the screen ?

Tweakie.
Title: Re: Mach3 - G code loading problem
Post by: ostie01 on March 21, 2011, 05:26:39 AM
Also, what post do you use, Fanuc work great with mach3.

Do you see Gcode on the left side of the screen.

Jeff
Title: Re: Mach3 - G code loading problem
Post by: rainnydayx on March 21, 2011, 04:23:49 PM
I'm not using MACH3 with Fanuc machine. I'm using it for my hobby CNC.
The Gcode window is appeared on the left as normal and there is no error code.

Thanks.
Title: Re: Mach3 - G code loading problem
Post by: ger21 on March 21, 2011, 04:44:04 PM
Then post your code so we can see why it doesn't work.
Title: Re: Mach3 - G code loading problem
Post by: rainnydayx on March 21, 2011, 04:53:47 PM
Hi Ger21,

This is the code file. I used open pocket milling. It is long.
Title: Re: Mach3 - G code loading problem
Post by: ger21 on March 21, 2011, 05:00:27 PM
There's an error message about using two g-codes on the same line. Here:
N8006 G91 G0 G28 Z0.

and Here:
N8006 G0 G28 Z0.

Change those two lines to this, and it works fine.

N8005 G91
N8006 G0
N8007 G28 Z0.

Title: Re: Mach3 - G code loading problem
Post by: ostie01 on March 21, 2011, 05:02:41 PM
I'm not using MACH3 with Fanuc machine. I'm using it for my hobby CNC.
The Gcode window is appeared on the left as normal and there is no error code.

Thanks.


Fanuc was not about machine, it was about a Fanuc Post inside Mastercam

Jeff
Title: Re: Mach3 - G code loading problem
Post by: ger21 on March 21, 2011, 05:02:51 PM
I screwed that up. Change this line:

N8006 G91 G0 G28 Z0.

To

N8006 G91 G0
N8007 G28 Z0.