Program with tool change results in "Exceeds Z-axis" warning
- JetForMe
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 305
- Thank you received: 16
20 Apr 2023 20:50 - 20 Apr 2023 20:50 #269515
by JetForMe
Program with tool change results in "Exceeds Z-axis" warning was created by JetForMe
I've got a tool rack on my gantry CNC router. Generally, tool changes work very well, invoking a couple different g-code programs to carry it out. Manually-invoked automatic tool changes work well.
But if I load a program that calls for a tool change to a different tool than what's currently in the spindle, Axis throws up an error that the program exceeds the z-axis limits. Any idea why that might be, or how I might debug this? I've attached the relevant code.
But if I load a program that calls for a tool change to a different tool than what's currently in the spindle, Axis throws up an error that the program exceeds the z-axis limits. Any idea why that might be, or how I might debug this? I've attached the relevant code.
Last edit: 20 Apr 2023 20:50 by JetForMe.
Please Log in or Create an account to join the conversation.
- smc.collins
- Offline
- Platinum Member
Less
More
- Posts: 696
- Thank you received: 123
20 Apr 2023 21:53 - 21 Apr 2023 14:46 #269525
by smc.collins
Replied by smc.collins on topic Program with tool change results in "Exceeds Z-axis" warning
are you setting your tool change location with g28.1 ? and calling g28 on a tool change ?
also g53 calls machine co-ordinates, and g59.3 calls relative co-cordinates.
you need to use machine absolute postion.
couple of thoughts after browsing the gcode involved here.
1. write a seperate macro to call the Z axis position. Using MACHINE co-ordinates, call that macro when moving the spindle.
2. write this as a hal component.
3. use carousel " if you can and are" to position the turret.
4. use pocket numbers " as long as it is a umbrella type changer and not set into random toolchanger mode "
5. keep your tool number and pocket numbers aligned.
6. write a homing routine to HOME the tool turret or belt or whatever prior to running the machine.
also g53 calls machine co-ordinates, and g59.3 calls relative co-cordinates.
you need to use machine absolute postion.
couple of thoughts after browsing the gcode involved here.
1. write a seperate macro to call the Z axis position. Using MACHINE co-ordinates, call that macro when moving the spindle.
2. write this as a hal component.
3. use carousel " if you can and are" to position the turret.
4. use pocket numbers " as long as it is a umbrella type changer and not set into random toolchanger mode "
5. keep your tool number and pocket numbers aligned.
6. write a homing routine to HOME the tool turret or belt or whatever prior to running the machine.
Last edit: 21 Apr 2023 14:46 by smc.collins.
Please Log in or Create an account to join the conversation.
Time to create page: 0.047 seconds