Hello Guest it is April 29, 2024, 01:04:32 PM

Author Topic: Mach3 Circles - weird behavior  (Read 233 times)

0 Members and 1 Guest are viewing this topic.

Mach3 Circles - weird behavior
« on: April 14, 2024, 07:52:57 PM »
Hello everybody, relative newbie here, just getting my plasma table going but I'm having a weird problem cutting circles.

Here are some bullet points that hopefully show my problem, and what works and what doesn't:

1) I have successfully cut a couple of outline irregular shapes.
2) This problem came to light cutting bolt holes in a shaped plate.
3) The hole circle cut starts accurately and then veers off with the circle then being cut offset from the correct position. With multiple holes to cut, the error appears to be cumulative, but the outer panel shape (rectangle with rounded corners) cuts correctly but in the wrong place due to the cumulative circle errors. The final object cut, looks a bit like a cedilla (e.g as in garçon in French)
4)I can cut a rectangle accurately.
5) I can cut a rectangle rotated through 45degrees accurately (ie both x and y axis moving at the same time).
6) I can cut a hexagon accurately.
7)I cannot cut a stand alone circle....doing this displays the same behaviour as described in point 3).
8) My CAD package correctly draws and displays circles
9) MACH3 displays the correct shape when  I load the GCODE file (for any shape, complex or simple)
10) If I cycle through the GCODE with the scroll bar, MACH3 correctly displays the tool position superimposed on top of the predicted toolpath.
11) If I run the GCODE programme, I get the strange behavior described in point 3).

Clearly the movement instructions in my GCODE are correct because MACH3 displays the shape correctly and follows the shape with the scroll bar

Whilst my x and y steppers have encoders, there is no feedback to MACH3 so the fact that MACH3 displays the 'damaged' cut path when it runs the code, tells me that it has to be MACH3 doing something weird to my GCODE before sending it to the hardware. ie it's not backlash or sticky slides, it must be MACH that is doing this.

Does anyone recognise this behaviour please and know what the cause is?

Many thanks!

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: Mach3 Circles - weird behavior
« Reply #1 on: April 15, 2024, 08:55:18 AM »
Check you have the correct circle mode set incremental or absolute, this can be set in the config or in the g-code using G91.1/G90.1
Without engineers the world stops
Re: Mach3 Circles - weird behavior
« Reply #2 on: April 15, 2024, 08:13:11 PM »
Check you have the correct circle mode set incremental or absolute, this can be set in the config or in the g-code using G91.1/G90.1

Hi Graham, many thanks for your reply....

After I had posted my question, I realised that I hadn't made it clear that my GCODE is simply a list of incremental X-Y movement instructions, I am not using the R type circle definition. As such then, I don't understand how MACH3 can move my table incrementally along a straight diagonal line but not in a circle.....it's a dumb computer for heaven's sake and it's just being told to put one foot after the other....it surely can't know whether it is a circle or not can it?

So, I have had an extremely frustrating evening trying to implement your suggestion....

I have G91 in my initial set up code (not G91.1) though I tried this and it didn't make any difference.

I've had a thoroughly frustrating evening with it and  I have to say and am now totally confused!...I really  can't get my head around how MACH3 can read the GCODE and display what I intend it to cut, and it can correctly follow the pattern when I scroll line by line through the code, yet when I set the machine off to do it, MACH3 does something different and describes something else! Surely if I tell the machine to move X1.0, Y1.0 it will move 1mm in the X and Y directions.....it is as though it is jumping from Incremental to Absolute as the code is running....but there  aren't any GCODE instructions in my code other than my X-Y movement instructions!

I THINK the final status tonight was that I think I have robustly set distance mode to incremental, yet my problem persists.

I'm away tomorrow but will get back to it asap.

Any further thoughts please?! :-\ Could there be some post-precessing occurring? If yes, where do I Look for that?

Arrgghhhh!

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: Mach3 Circles - weird behavior
« Reply #3 on: April 17, 2024, 07:38:23 PM »
Post your code and a drawing of what you are trying to cut.
Without engineers the world stops
Re: Mach3 Circles - weird behavior
« Reply #4 on: April 18, 2024, 05:45:52 AM »
Hi Graham,

I am now fairly confident that this is not caused by the Absolute/Incremental setting as it makes no difference to the machine movements....I do still have an issue with it occasionally resetting to absolute despite setting incremental in the config and saving my settings...anyway, I have attached my code...it's just a circle! More complex designs show the same problem multiple times with the 'drift' appearing to be cumulative.

When I import this, MACH3 interprets it and shows a perfect circle on the display - see photo MACH3Display

Finally, as the  green 'cutting dots' don't remain on the screen, I can't photograph what the machine does when I start it running, but I have drawn what it does....see Bomb.jpg ('Bomb' because of the fuse on top!). The circle should be centred on the CAD cross hairs, ie where the 'fuse' tail is centred....it reaches the 3 o'clock position correctly and then veers off, drawing the displaced circle in the position shown. I don't have any means to plot my gcode other than a piece of graph paper (which I haven't resorted to yet) but I don't think this 'feature' is in the gcode, mainly because MACH3 doesn't show it in the display window. It looks a bit like a lead-in (though I haven't programmed one as far as I am aware).

I really appreciate your help!

Many thanks.

Best regards,

Damien



Re: Mach3 Circles - weird behavior
« Reply #5 on: April 18, 2024, 05:49:25 AM »
Hmm, no attachments...

I attached three files, but  I don't see any of them in my response.....

If I try to re-attach, it says they already exist....

Hope you can see them!
Re: Mach3 Circles - weird behavior
« Reply #6 on: April 18, 2024, 05:50:48 AM »
Screenshot
Re: Mach3 Circles - weird behavior
« Reply #7 on: April 18, 2024, 05:51:40 AM »
Drawing of  what the machine actually cuts

Offline Tweakie.CNC

*
  • *
  •  9,201 9,201
  • Super Kitty
    • View Profile
Re: Mach3 Circles - weird behavior
« Reply #8 on: April 18, 2024, 08:15:37 AM »
Just my opinion, for what it is worth…

I think you need to rethink the way in which you are creating your GCode within your CAD/CAM software because what you currently have is not correct.
As an example, you have an excellent GCode circle created in X-Y Incremental mode but your Z axis GCode moves are expecting an Absolute mode movement. Look what happens to your Z axis position when you run the ‘Circle – Copy.txt’ file you have posted – it never gets to Z0.00.

Tweakie.
PEACE
Re: Mach3 Circles - weird behavior
« Reply #9 on: April 18, 2024, 06:02:12 PM »
Hi Tweakie, thanks for your thoughts..

The Z axis is actually the least of my problems at the moment but as I am just starting, any advice is very welcome.

Why do you say my Z axis never reaches zero? It does on my table...it bobs up and down between 0 and 10mm, aided or hindered by the torch height controller. Is your advice based on my use of G0 as opposed to G1 commands? If so, that's a trivial mod.

I discovered my problem cutting a 'real' object, not a circle and my interest in the circle stems simply from a desire to get to the bottom of my current problem....ie I haven't even considered the z axis behaviour with the circle.

I imagine that once I clear the hurdle of why my X,Y axis are apparently doing weird things, I'll stub my toe on other problems....what's the betting that your concern about my z axis will be the next!

Appreciated.