Hello Guest it is June 01, 2025, 03:45:24 PM

Author Topic: Trouble with code?  (Read 216 times)

0 Members and 1 Guest are viewing this topic.

Trouble with code?
« on: May 26, 2025, 10:06:01 AM »
I’m having some trouble with G code processing it through Mach3.  When I load the code it seems to go through all the lines and then get stuck so I cannot run the program. I would appreciate any help someone can provide. I’ve run into this once in a while and I’m always puzzled by it. I’ve tried moving the lines slightly in the dxf file, then regenerating the G Code in BobCAD.  Then load it in Mach 3.  Sometimes this works, other times it doesn’t. 


G00 X0.0583 Y0.1627 Z0.1
G01 Z-0.0363 F5
G03 Y0.1235 I0.0039 J-0.0196 K0.0001F5 G41
G01 X0.5578 Y0.0236
G03 X0.5775 Y0.031 I0.0039 J0.0196
G02 X0.6931 Y0.1251 I0.2579 J-0.1987
G03 Y0.1611 I-0.0087 J0.018
G02 X0.5775 Y0.2552 I0.1423 J0.2928
G03 X0.5578 Y0.2626 I-0.0158 J-0.0122
G01 X0.0583 Y0.1627 G40
Z-0.0725 F5
G03 Y0.1235 I0.0039 J-0.0196F5 G41
G01 X0.5578 Y0.0236
G03 X0.5775 Y0.031 I0.0039 J0.0196
G02 X0.6931 Y0.1251 I0.2579 J-0.1987
G03 Y0.1611 I-0.0087 J0.018
G02 X0.5775 Y0.2552 I0.1423 J0.2928
G03 X0.5578 Y0.2626 I-0.0158 J-0.0122
G01 X0.0583 Y0.1627 G40
Z-0.1088 F5
G03 Y0.1235 I0.0039 J-0.0196 K0.0001F5 G41
G01 X0.5578 Y0.0236
G03 X0.5775 Y0.031 I0.0039 J0.0196
G02 X0.6931 Y0.1251 I0.2579 J-0.1987
G03 Y0.1611 I-0.0087 J0.018
G02 X0.5775 Y0.2552 I0.1423 J0.2928
G03 X0.5578 Y0.2626 I-0.0158 J-0.0122
G01 X0.0583 Y0.1627 G40
Z-0.145 F5
G03 Y0.1235 I0.0039 J-0.0196F5 G41
G01 X0.5578 Y0.0236
G03 X0.5775 Y0.031 I0.0039 J0.0196
G02 X0.6931 Y0.1251 I0.2579 J-0.1987
G03 Y0.1611 I-0.0087 J0.018
G02 X0.5775 Y0.2552 I0.1423 J0.2928
G03 X0.5578 Y0.2626 I-0.0158 J-0.0122
G01 X0.0583 Y0.1627 G40
G00 Z0.1
Re: Trouble with code?
« Reply #1 on: May 26, 2025, 04:33:31 PM »
Could any experts comment on whether it's how my BobCAD is programming the small radiuses in the geometry?  I don't know if I need to change a setting or how to approach getting this fixed. Probably spent about 25 hours on it trying to figure it out. mike@customcuemaker.com is also a good way to reach me, thanks in advance.

Offline Tweakie.CNC

*
  • *
  •  9,291 9,291
  • Super Kitty
Re: Trouble with code?
« Reply #2 on: May 27, 2025, 01:16:16 AM »
Try removing the command K0.0001 from two instances within your GCode file.

Basically your GCode is not well compiled. (It is improtant to have valid entry and exit moves when using G41).


Tweakie.
« Last Edit: May 27, 2025, 01:49:09 AM by Tweakie.CNC »
PEACE
Re: Trouble with code?
« Reply #3 on: May 27, 2025, 06:50:36 AM »
Interesting.  I removed those instances in a short piece of code and it seems like Mach 3 is MUCH happier.  Thanks VERY much!!

Any idea why those lines would have been added?  I'm using an older version of BobCAD, is the software itself flawed?

Offline Tweakie.CNC

*
  • *
  •  9,291 9,291
  • Super Kitty
Re: Trouble with code?
« Reply #4 on: May 27, 2025, 07:16:31 AM »
Quote
Any idea why those lines would have been added?

Probably the settings within BobCad ?

Tweakie.
PEACE
Re: Trouble with code?
« Reply #5 on: May 27, 2025, 08:11:53 AM »
Well I just ran a full program removing all of those key references and everything seems to be working great. Cannot thank you enough!

Offline Tweakie.CNC

*
  • *
  •  9,291 9,291
  • Super Kitty
Re: Trouble with code?
« Reply #6 on: May 27, 2025, 12:09:26 PM »
I am pleased that you got it working.

Tweakie.
PEACE

Offline TPS

*
  •  2,585 2,585
Re: Trouble with code?
« Reply #7 on: May 27, 2025, 12:42:28 PM »
the K parameter is usualy only used if you are NOT working in G17 plane (G18/G19).
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.