Error: Program Exceeds Machine Maximum, but gcode looks fine
- re_relentlessly
- Offline
- Senior Member
- Posts: 49
- Thank you received: 4
But when I look a the preview, none of the depicted gcode exceeds the limits.
I have provided screen shots with the gcode preview aligned on x, y, z and a perspective view
Is the preview not showing me all the gcode or something? Because I cannot figure out what exactly is causing the "Exceed Machine Maximum"
In the preview I see 79.6mm of total z travel which is within the total z travel.
Note: I don't have a tool loaded in the screen shots because that just ends up offseting everything by the tool offset amount (a different issue I am still trying to understand and resolve)
I have also attached my .hal and .ini, incase it helps debug the issue (if I am not just doing something wrong).
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3946
- Thank you received: 1705
You should define the g54 offset in relation to your work inside your cad/cam and then touch the machine off on the relevant corner of your work piece after fixing it on the machine.
Please Log in or Create an account to join the conversation.
- re_relentlessly
- Offline
- Senior Member
- Posts: 49
- Thank you received: 4
I then set the g54 offset again, by moving the tool to the correct spot and clicking "Touch off" for each of x,y,z.
after this proceeder the xyz gizmo was in the corner but z offset by the tool length upwards. I toggled machine power off and then back on. and this reset the gizmo to what you see in the attached screen shot (toggling the power moved the gizmo??)
I do see that the g54 offsets match exactly with the absolute ones.
My machine is set to "Tool touch off to fixture", maybe this is incorrect? or is there something else I have set incorrectly?
I do have g54 set to a corner of the work in my cad/cam (fusion 360), and I do move the tool tip (or a edge finder ) to the matching corner of the work and the use the "Touch off" button in the linuxcnc ui to set g54 (on x,y,z)
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3946
- Thank you received: 1705
Please Log in or Create an account to join the conversation.
- re_relentlessly
- Offline
- Senior Member
- Posts: 49
- Thank you received: 4
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3946
- Thank you received: 1705
I have never used the "Touch off to fixture" setting but it might be worth a try to switch that to "touch off to workpiece".
Tool touch off to workpiece - When performing Touch Off, the value entered is relative to the current workpiece (G5x) coordinate system, as modified by the axis offset (G92). When the Touch Off is complete, the Relative coordinate for the chosen axis will become the value entered. See G10 L10 in the G code chapter.
Tool touch off to fixture - When performing Touch Off, the value entered is relative to the ninth (G59.3) coordinate system, with the axis offset (G92) ignored. This is useful when there is a tool touch-off fixture at a fixed location on the machine, with the ninth (G59.3) coordinate system set such that the tip of a zero-length tool is at the fixture’s origin when the Relative coordinates are 0. See G10 L11 in the G code chapter.
Please Log in or Create an account to join the conversation.
- re_relentlessly
- Offline
- Senior Member
- Posts: 49
- Thank you received: 4
that didnt fix the problem (that is assuming that the behaviour I am seeing is even a problem??)
I homed the machine, ran the calibration (m400 p2 r0), loaded a tool and measured its length (t20 m06 g43), loaded the gcode.
Then I set the g54 offsets via "Touch off"
As visible in the attached images. the x,y,z gizmo is now offset in z, but still aligned in x,y.
The error is now in both directions on z.
And the gizmo offset has made the total travel requirement longer.
To help me understand what is going on, can you (Aciera) or anyone else confirm that the behaviour I am experiencing is incorrect/wrong?
and what is the correct behaviour?
Because I really don't understand what is happening, why the gizmo offset's when loading a tool offset.
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
- Posts: 394
- Thank you received: 156
MIN_LIMIT = -0.01 MAX_LIMIT = 200.0
Most machines are configured with Z machine zero full retracted
MIN_LIMIT = -200 MAX_LIMIT = .001
I think some cam can´t handle your Z config properly. In case you do G0 G53 Z0, the tool is crashing your work, so it´s better to have machine zero retracted
Please Log in or Create an account to join the conversation.
- re_relentlessly
- Offline
- Senior Member
- Posts: 49
- Thank you received: 4
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
- Posts: 394
- Thank you received: 156
Please Log in or Create an account to join the conversation.