Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Musicfix on February 18, 2012, 08:47:31 AM
-
Hi All, I've just completed my CNC router. One thing i can't figure out is how to set the z-axis so it makes its complete plunge before moving in another direction. Right now z-axis, from the rapid position, stops about 0.080" from the material to be cut then ramps down to 0.000 as it travels in a horizontil direction. I'm sure there is setting i can change but after an searching most of the day in these forums and in my mach settings I can't find anything that tells me where to make the change.
-
Its either in your code or your acceleration is very slow and you are in G64 mode (Constant Velocity)
Hood
-
Thanks for the reply! My acceleration is set at 5. How do i change the CV mode?. I am pretty new at all this.
-
Have a look in your code for G64 and replace it with a G61 to see if the issue stops. If there is no G64 in your code put a G61 on the first line or near to the first line if the first lines are comments.
If that cures it then you know that is the issue and you can then likely go back to CV(G64) and use some of the CV settings that are on General Config page.
Hood
-
Ok, it didn't work. But in case i entered it wrong where would i put it in this g code? I am trying to cut a square with 4 circles inside it.
5 (File Name = cnc test on Saturday, February 18, 2012)
N10 (Default Mill Post)
N15 G91.1
N20 G0 Z1.0000
N25 M3
N30 X0.0000 Y0.0000
N35 Z0.1000
N40 G1 Y4.0000 Z0.0000 F60.00
N45 X4.0000
N50 Y0.0000
N55 X0.0000
N60 G0 Z1.0000
N65 X1.2500 Y1.0000
N70 Z0.1000
N75 G2 Z0.0000 I-0.2500 J0.0000
N80 G0 Z1.0000
N85 X3.2500
N90 Z0.1000
N95 G2 Z0.0000 I-0.2500 J0.0000
N100 G0 Z1.0000
N105 Y3.0000
N110 Z0.1000
N115 G2 Z0.0000 I-0.2500 J0.0000
N120 G0 Z1.0000
N125 X1.2500
N130 Z0.1000
N135 G2 Z0.0000 I-0.2500 J0.0000
N140 G0 Z1.0000
N145 M5
N150 M30
-
Is the problem on the circles?
Hood
-
In fact the first edge of your square also ramps and that is the code telling it to do that. The code says to go to Z0.1 then next move is to X0Y0 then the next move is to Y4 Z0 so that line is a ramp down of 0.1mm in Z while the Y moves 4 inch.
Hood
-
You're right, it does it in the straights as well. I have been using lazy cam to generate g-code but it is now obvious that I need to study g-code and how it works a little more...thanks
-
So this would be a setting in lazycam that needs to be changed?
-
I have never used LazyCAM but I would imagine it would be a setting in there that is the problem.
Hood