Z axis beyond safe limit

I keep getting an error that my TAP file exceeds the z limit and the program will not run. The Z depth is -.810" and the material I am using is .765" thick so I can have a .045" break through on my brad point drill.

I have the spoil board dig in turned off. Any thoughts on what I might be missing? The tool setter is on the lowest position, so touching off tools is actually about .700" lower than what is in my .tap file.

Post up the G code so we can see, you can load it in www.g54.app

Click the share button and post the link here

The error happens in the first drill command so the program won’t start when I isolate the drilling to its own file.

(DRILL5 4)
G49
T5 M6
S5000 M3
G17 G90 G94
G0 X27.5721 Y71.1092
G43 Z0.6 H5
G0 Z0.2
Z-0.115
G1 Z-0.565 F80.
G0 Z-0.561
G1 Z-0.815 F80.
G0 Z0.2
Z-0.735
G1 Z-0.8313 F80.
G0 Z0.2
X29.7396 Y70.0517
Z0.135
G1 Z-0.315 F80.
G0 Z-0.311
G1 Z-0.565 F80.
G0 Z0.2
Z-0.485
G1 Z-0.7663 F80.
G0 Z0.2
X27.5721 Y75.1092
Z0.135
G1 Z-0.315 F80.
G0 Z-0.311
G1 Z-0.565 F80.
G0 Z0.2
Z-0.485
G1 Z-0.815 F80.
G0 Z-0.811
G1 Z-0.8313 F80.
G0 Z0.2
X28.7455 Y76.4767
Z0.135

What’s wrong with leaving the dig in on and just increasing the depth?

I started with it on and turned it off thinking that was the issue…

I had to drill some holes in my spoil board and it worked for me

I tried turning it off, but kept hitting it. I wound up setting the depth to some never to be reached value and called it a day. I may turn it back on to protect plunges through the frame.

So you had it off and had issues, then turned it on with a large number (say 3") and that solved the issue?

I set it to 5.5 or something like that. Though my case was a little special because it happened during a tool change on the rapidchange atc. I forget the exact issue, but it had to do with when there was no tool in the spindle the tool number was 0, and bad things happened.

This code looks fine…

Is this error preventing you from using the machine, or are you just seeing an error?

It prevents the job from starting.

The machine is in a spot with no internet connection. I can take a photo of the screen when I’m there next time if that helps.

Sounds like you might have your Z zero set wrong, the Z moves in that file are very small so it’s not a travel issue for the machine.

If you can get a photo of Set Part Zeros>WCS CSR Table I would like to see what the Z offset is

Wouldn’t a large rapid Z Gap clearance throw a z exceeded error?

It would, but you don’t have that in this code.

I really suspect a wacky Z zero here.. and I think I know why:

This code you posted will work, but it was not made by one of our post processors. This isn’t the entire file, but this one includes G49 which is “tool height comp cancel”

In other non Avid posts this is typically run at the end of the file. When this runs the Z height in your DRO is WAY off because the tool height is cancelled, so your Z zero isn’t taking into account the length of the tool any more (PS the “length” of the tool is the distance from the top of Z to the tool height setter, so this can be pretty large)

So I bet what you did is set your Z zero with tool height comp off, which made an insanely out of whack Z off set (in Set Part Zeros>WCS table then look at Z offset)

So your machine is in fact trying to either to WAY above or below it’s travel limit, and is correctly throwing an error.

So the solve here is this: Run another tool change and get that tool measured again. Re-do your Z zero, then see if this file runs. It probably will. This is a short term fix to use this file.

The proper fix is to post with the correct post processor (or go in and delete all of the G49 commands, but that’s tedious)

This is the post processor I’m using. I believe it is the correct one for the EX controller… I did crop to the processes that was causing issues. I did zero out the material with the puck on the corner of the material. IIRC, the first two tools cut correctly, then it didn’t like the 3rd tool… I then output the gcode for only this drill and messed with the z zero height until it would run (I finished the drilling by hand later). The remaining 3 tools had no issues, just the drills… To be fair, the other tools were at -.005" max.

I’ll post up more detail this weekend when I get back home and can run a few programs to see if I can shake out the issue.

Not sure what you’re referring to but looking at that snippet of code I am positive you’re not using right post. Our posts do not use G49 (tool height cancel) and your code has it. This means you’re not using the right post, and is likely the source of these issues as I described in my earlier post.

Interesting… I believe you that the post processor is wrong, I just don’t know how it got swapped. Maybe I have something in the machine library pointing to the wrong machine file. I’ll run everything again this weekend and make sure the machine is setup correctly in Fusion. Hopefully that resolves my issue.

I just output the gcode from fusion again. Double checking that I have the Avid EX 3-axis selected for the machine and the Avid CNC/Avid EX Controller selected for the post. It output the exact same gcode as listed above with a G49. You can see the header in the file lists the EX post. Here is the link:

If you search for DRILL it will take you about 3/4 of the way down to the drilling g-code.

This code looks ok… there’s no tool height cancel at the end like I thought there was. I’d check those Z offsets in the WCS/CSR table and see if you see anything wacky. If you zeroed to your table Z should be zero, if you zeroed on top of your material it should be a positive number that equals the thickness of your material.

If you see any implausible numbers in there that’s likely your issue.