Welcome, Guest. Please login or register.
Did you miss your activation email?
August 18, 2017, 03:08:51 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  G-Code, CAD, and CAM
| |-+  G-Code, CAD, and CAM discussions
| | |-+  mach 3 tool offset issue
Pages: 1   Go Down
Print
Author Topic: mach 3 tool offset issue  (Read 1087 times)
0 Members and 1 Guest are viewing this topic.
mtadamek
Holding

Offline Offline

Posts: 2


View Profile
« on: April 12, 2017, 03:01:40 PM »

Hi.  I am a new to gcode and cnc.  Trying very hard to learn the basics.  I have a harbor freight mill I converted and I am running mach 3.  I am having a hard time running a very simple program.  The problem is with the tool offset.  The program will run sometimes once and sometimes not at all.  If it runs right, I will try and rewind it and run it again and it just goes crazy.  Cutting anywhere and not following any gcode.  I setup the tool diameter in mach 3 at .250.

What am I doing wrong.  It will run without the g41, but then the offset it wrong.  It has something to do with g41 I am pretty sure.  


Here is my code:
%part 1%
G20 G91 G41
G0 X.50 Y.50 Z0
G1 Z -.05 F10
G1 Y1
G1 X1
G1 Y-1
G1 X-1


Any explanation of this would be greatly appreciated.  

Thank you,

Michael
Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,815


West Yorkshire, England



View Profile WWW
« Reply #1 on: April 16, 2017, 03:10:01 PM »

Hi Michael,

for a start you are working in incremental mode so to run the program more than once you have to make sure the first run of the program ends at the same place as it started.

It is much better to work in Absolute (G90) mode.

%
G20 G90
G00 X.5 Y.5 Z0
G01 Z-.05 F10.
Y1.
X1.
Y-1.
X-1.
G00 Z0
M30
%

Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
ger21
Global Moderator
*
Offline Offline

Posts: 5,506



View Profile WWW
« Reply #2 on: April 16, 2017, 06:33:32 PM »

And you're not using G41 properly.
You should be applying the G41 comp during a lead in move, and turning it off with G40 on a lead out move.
Logged

Gerry

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

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

Offline Offline

Posts: 483


View Profile
« Reply #3 on: April 17, 2017, 01:38:53 PM »

G41 is modal, stays in effect until canceled by G40. I used to use it all the time and it works well as long as you understand the gotchas. I always apply g41 before any move down in the Z into the part. I also use a very short .01" move right after g41 so it gets applied and I can see it went the right way. If you try to do an inside corner that has a radius smaller than radius comp many controls will give you the dreaded 'crop circles' where it goes around the outside of the path destroying your part. Always cancel g41 when done, and never cancel while still touching the part. Hope this helps
Logged
mtadamek
Holding

Offline Offline

Posts: 2


View Profile
« Reply #4 on: April 17, 2017, 07:51:19 PM »

I switched to absolute and it fixed the problem,  the program is now repeatable. I need to read up on g41.  I dont understand the lead in and out.  I undertand g41 being modal.  I really appreciate the help.  Gcode on the surface seems easy, but then you get into the finer points and it gets crazy quick.
Logged
RICH
Global Moderator
*
Offline Offline

Posts: 6,973




View Profile
« Reply #5 on: April 18, 2017, 05:41:31 AM »

The attached file provides some info on cutter compensation and includes some
posts by Graham and Gerry.

There is a lot of info on cnc programing  but You may want to consider purchasing CNC Programming Handbook by Smid.


RICH

* COMPENSATION_rrr.pdf (691.1 KB - downloaded 45 times.)
Logged
garyhlucas
Active Member

Offline Offline

Posts: 483


View Profile
« Reply #6 on: April 18, 2017, 12:44:06 PM »

When mach 3 sees a g41 it moves the tool to the side of the path when it makes the NEXT move. So you need that to happen before you lower the tool into the material. Otherwise the tool will gouge out the starting point. When you cancel with g40 the tool moves  back to be centered on the next move, gouging out the finish point unless you are clear of the material. Once you ruin half a dozen parts you'll get the idea!
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!