Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: bjcnc on November 19, 2009, 02:34:32 PM

Title: z-axis plunging
Post by: bjcnc on November 19, 2009, 02:34:32 PM
when my z axis is plunging into the matterial it goes to the max z depth for the entire piece and either locks up the whole machine or drags my piece of wood with it  does anyone have any ideas as to what it could be
Title: Re: z-axis plunging
Post by: Hood on November 19, 2009, 02:37:37 PM
Your code?
Hood
Title: Re: z-axis plunging
Post by: bjcnc on November 19, 2009, 03:30:00 PM
here is the begining dunno how to send it all because it is too many "words"
O0001(AEMBOS1A.NC)
N1 G00 G17 G20 G40 G49 G80 G90
N2 T1 M6 (CONIC-R  1/8 - DEG 15 - R 0.025 )
N3 G00  X0.  Y0. M03
N4 G43H1  Z0.1 M8
N5 G01 Z-0.2 F40
N6 X0.7677
N7 X0.7879 Z-0.1661
N8 X0.798 Z-0.1536
N9 X0.8081 Z-0.152
N10 X0.8182 Z-0.1536
N11 X0.8283 Z-0.152
N12 X0.8384 Z-0.1598
N13 X0.8586 Z-0.1975
N14 X0.8687 Z-0.2
N15 X1.3737
N16 X1.3838 Z-0.199
N17 X1.3939 Z-0.1873
N18 X1.404 Z-0.1818
N19 X1.4141 Z-0.1873
N20 X1.4242 Z-0.1818
N21 X1.4343 Z-0.1943
N22 X1.4444 Z-0.2
N23 X2.
Title: Re: z-axis plunging
Post by: Hood on November 19, 2009, 03:46:47 PM
Seems to be fine here, what do you have for offsets in the tooltable for tool 1?
Hood
Title: Re: z-axis plunging
Post by: bjcnc on November 19, 2009, 03:52:28 PM
they are all empty and at 0... the machine has sat idle for over a year now and before it sat it was working great just all the sudden started doing this
Title: Re: z-axis plunging
Post by: Hood on November 19, 2009, 03:55:37 PM
so what depth is it going down to?
Also if you want to attach your code and xml I can have a look with your settings. To attach you use the additional options button on the reply page. You will likely have to copy and rename your xml for the forum to accept it.
Hood
Title: Re: z-axis plunging
Post by: bjcnc on November 19, 2009, 04:04:16 PM
here is the code atleast it should be let me try to find the xml
Title: Re: z-axis plunging
Post by: bjcnc on November 19, 2009, 04:11:35 PM
is this the xml you were asking for if not sry can you explain exactly what it is
Title: Re: z-axis plunging
Post by: Hood on November 19, 2009, 04:49:27 PM
Just tried with your xml and it seems fine, first move on Z is to 0.1 then it goes down to -0.2

What are you seeing for Z moves?
Hood
Title: Re: z-axis plunging
Post by: bjcnc on November 19, 2009, 04:53:28 PM
we place the z on the or right above the piece of wood and zeroing it. then when we start to run the gcode  it just dives right down to -0.2
Title: Re: z-axis plunging
Post by: Hood on November 19, 2009, 05:01:15 PM
So it doesnt first do a rapid move to 0.1? Try running single block and see if it moves up, it is a rapid move up then a feed down at 40 inch per min, which seems fast.
Title: Re: z-axis plunging
Post by: bjcnc on November 19, 2009, 05:43:00 PM
it does a rapid move to .1 then goes down .2  carves up and down as in the g code to different heights . I think  then the real question might be how do you set it up so that one could carve from the top down rather than plunging down to the lowest point  and carving up  to the top. 
Title: Re: z-axis plunging
Post by: Hood on November 19, 2009, 05:47:36 PM
The Z height is controlled by your G Code, the code is telling it first to do a rapid move to 0.1, that is line N4. G0 is a rapid move.
The next line you have is saying to go down to -0.2 at a feedrate of 40IPM. G1 is a feed move and F is the feedrate it will go at.
If you are wanting it to go to a different Z then you have to change your code to tell it to go where you want it to go.
Where are you getting your code from?
Hood
Title: Re: z-axis plunging
Post by: bjcnc on November 19, 2009, 06:35:48 PM
It is from bmp2cnc
Title: Re: z-axis plunging
Post by: Hood on November 19, 2009, 06:39:30 PM
You will have to try and configure it so that it puts out code the way you want it. Mach is doing exactly what that code is telling it to do.

Hood
Title: Re: z-axis plunging
Post by: bjcnc on November 19, 2009, 07:02:27 PM
Thank you for your help. I am glad to know that mach is working fine . Thank you again