Hello Guest it is April 23, 2024, 03:02:47 AM

Author Topic: Mach3 - G code loading problem  (Read 12084 times)

0 Members and 1 Guest are viewing this topic.

Mach3 - G code loading problem
« 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

Offline Tweakie.CNC

*
  • *
  •  9,199 9,199
  • Super Kitty
    • View Profile
Re: Mach3 - G code loading problem
« Reply #1 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.
PEACE
Re: Mach3 - G code loading problem
« Reply #2 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
Re: Mach3 - G code loading problem
« Reply #3 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.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Mach3 - G code loading problem
« Reply #4 on: March 21, 2011, 04:44:04 PM »
Then post your code so we can see why it doesn't work.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Mach3 - G code loading problem
« Reply #5 on: March 21, 2011, 04:53:47 PM »
Hi Ger21,

This is the code file. I used open pocket milling. It is long.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Mach3 - G code loading problem
« Reply #6 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.

Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Mach3 - G code loading problem
« Reply #7 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

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Mach3 - G code loading problem
« Reply #8 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.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html