Program exceeds machine minimum on axis Z?
I am getting the error Program exceeds machine minimum on axis Z. I am drilling to a depth of -0.059 inches or -1.4986 mm.
Is it the depth the program is using to determine the maximum? If so what setting is it comparing to to produce the error? Is it the table limits? Mine are setup just as you see below. Is this wrong?
Here is the G code
(.../CNC/PCBGcode/pcb-gcode.ulp)
(Copyright 2005 - 2012 by John Johnson)
(See readme.txt for licensing terms.)
(This file generated from the board:)
(.../Temp/test.pcb.brd)
(Current profile is .../CNC/PCBGcode/profiles/emc.pp )
(This file generated 1/28/2016 7:33 PM)
(Settings from pcb-machine.h)
(spindle on time = 3.0000)
(spindle speed = 20000.0000)
(tool change at 0.0000 0.0000 2.0000 )
(feed rate xy = F0.00 )
(feed rate z = F3.00 )
(Z Axis Settings)
( High Up Down Drill)
(0.5000 0.1000 -0.0035 -0.0590 )
(Settings from pcb-defaults.h)
(isolate min = 0.0010)
(isolate max = 0.0095)
(isolate step = 0.0020)
(Generated bottom outlines, bottom drill, )
(Unit of measure: inch)
M06 (Running Gcode)
( Tool| Size | Min Sub | Max Sub | Count )
( T01 | 0.900mm 0.0354in | 0.0000in | 0.0000in | 0 )
(Inch Mode)
G20
(Absolute Coordinates)
G90
S20000
G00 Z0.5000
G00 X0.0000 Y0.0000
M03
G04 P3.000000
M05
G00 Z2.0000
M06 T01 (0.0354 )
G01 Z0.0000 F3.00
M06
G00 Z0.1000
M03
G04 P3.000000
G82 X-0.1219 Y0.3056 Z-0.0590 F3.00 R0.1000 P1.000000
G82 X-0.1219 Y0.4056
G82 X-0.1219 Y0.5056
G82 X-0.1219 Y0.6056
G82 X-0.2719 Y0.4556
G82 X-0.2719 Y0.3556
G82 X-0.5719 Y0.3556
G82 X-0.5719 Y0.4556
G82 X-0.7719 Y0.5556
G82 X-0.6719 Y0.6556
G82 X-0.3719 Y0.6556
G82 X-0.7719 Y0.2556
T01
G00 Z0.5000
M05
M02
Please Log in or Create an account to join the conversation.
G00 Z2.0000
I don't have 2 inches of height on my machine.
So I think I understand now what was causing the error. I set my home position. Then I touched off. The distance between the home position and the touch off point was greater than 2 inches so I got the error.
Question: Is there any way for the software to highlight the line causuing the error?
Please Log in or Create an account to join the conversation.
Rick G
Please Log in or Create an account to join the conversation.
Is there anything that shows the gcode line causing the problem?
Please Log in or Create an account to join the conversation.
- cncnoob1979
- Offline
- Platinum Member
- Posts: 403
- Thank you received: 75
In the axis display window where the dimensions are displayed graphically, the total z axis movement will be listed [ along with x, and y]. The z axis displayed will be reverse highlighted red it if is out of you particular travel.
I hope that helps and did not confuse you.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- cncnoob1979
- Offline
- Platinum Member
- Posts: 403
- Thank you received: 75
The limits you set in the INI; The z axis touch off and The tool offset you used either set in the G-code or set with tool touch-off.
I found typically it is from my G-Code program using MasterCam [Still new using it] or when I use tool length adjustments [Tool touch-off].
So if you have a z axis limit of 0-6inches set in your INI, then you used a relative distance of +2inches [Touch off to the work] you would have 4 inches of z axis remaining. If you then added a tool of 2 inches [Tool Touch-off, length ect..] you now have, 2 inches remaining. Does that make sense? I believe then the display would show total z at 4 + x {total depth of the part], in this case lets say a depth of 3 inches.
I'm still very new, so if the terminology is incorrect or I am misunderstanding / misstating, please someone correct me.
So then:
4+[3] = 7 inches. You are now out of total z axis limits and can not cut the part. The z axis in this case would show 7 for the graphical display, and would be in the RED.
EDIT: For highlighting the code, the machine will try to do as you programmed it. As far as I know there is not a way to highlight the "faulty code". As far as the machine knows, if the syntax is correct: the code is correct and will try to execute.
You would have to look at the factors that affect you depth of cut, tool offsets, tool length ect.
Hope that helped.
Please Log in or Create an account to join the conversation.
I figured it out. It was my tool change height.
G00 Z2.0000
Good.
Make sure under the view tab that "show extents" is selected.
Not that I know of, butAnd I would still like to know if there is a way to highlight the code causing the error.
If when you receive the error message you select run anyway the machine will in fact run the code till it gets to the line that caused the problem and list the line number, You can try this on a sim setup.
Rick G
Please Log in or Create an account to join the conversation.
And I would still like to know if there is a way to highlight the code causing the error.
Sometimes.
If the graphical preview shows a "wild line" out of the limits box, then clicking on the line in the preview window will highlight the G-code line in the listing.
Please Log in or Create an account to join the conversation.