Hello Guest it is April 18, 2024, 07:44:34 AM

Author Topic: G-code not compatable with Mach3-problems  (Read 2914 times)

0 Members and 1 Guest are viewing this topic.

G-code not compatable with Mach3-problems
« on: January 02, 2011, 05:58:53 PM »
Hello,

I am still learning to work with MACH3.  Have done a couple of searches but havent been able to find the answers I am looking for.

Basically the g-code my CAD/CAM is putting out is giving me errors in MACH.  I am using a generic fanuc post and have ran these programs successfully on a HAAS mini-mill with no problems.  When I go to run them on my little homemade router I get different errors.

In this code( which I didnt post all of it) I get radius differs from start point

%
O8021( DC SOUNDLAB.NCF )
( FORMAT: FANUC 0M KITAMURA [BSF] C4592.16.PST )
( 5/31/10 AT  9:05 PM )
( OUTPUT IN ABSOLUTE INCHES )
( PARTS PROGRAMMED: 1 )
( FIRST TOOL NOT IN SPINDLE )
N1G91G28Z0.T1
M6
( OPERATION 1: ROUGHING )
( WORKGROUP )
( TOOL 1: .188 FINISH ENDMILL )
( CS#1 - XY PLANE )
G54
G90G17G0X3.9974Y-.1233S3000M3
G43Z0.H1M8
Z.1T3
G1Z-.06F5.
X3.9303Y-.1904
X4.0645F30.
Y-.0443
X3.9303
Y-.1904
Y-.2844
X4.1585
Y.0497
X3.8363
Y-.2844
X3.9303
Y-.3784
X4.2525
Y.1437
X3.7423
Y-.2577
X1.0757
G2X.2045Y.4419J.8922  starting here
G1X.1127Y.4217
G2Y.8474I.963J.2128
X-.0367I-.0747J.1725
Y.4217I-.963J-.2129
X.1127I.0747J-.1725
G1X.2045Y.4419
G2X1.0757Y1.5267I.8712J.1926
G1X3.7423
X3.8363Y1.5535
Y1.4595
X3.9303
Y1.3137
X4.0645
Y1.4595
X3.9303
X3.8363
Y1.2197
X4.1585
Y1.5535
X3.8363
X3.7423Y1.5267
Y1.1257
X4.2525
Y1.6475
X1.0757
G3X.1261Y.9872J-1.013
G2X-.0501I-.0881J.0327
G3X-.9997Y1.6475I-.9496J-.3527
G1X-4.2518
Y1.5267
X-.9997
G2Y-.2577J-.8922
G1X-3.8998
X-3.9938Y-.2844
Y.8985
X-4.1578
Y-.2844



And on this program I get alot of of random circles being cut along with the rest of the program

%
O1000( NEWDC.NCF )

( FORMAT: FANUC 0M KITAMURA [BSF] C4592.16.PST )

( 12/19/10 AT  3:53 PM )

( OUTPUT IN ABSOLUTE INCHES )

( PARTS PROGRAMMED: 1 )

( FIRST TOOL NOT IN SPINDLE )

N1G91G28Z0.T1
M6
( OPERATION 1: ROUGHING )

( WORKGROUP )
( TOOL 1: .125 FINISH ENDMILL )

( CS#1 - XY PLANE )

G54

G90G17G0X-2.2417Y-.0396S5000M3

G43Z0.H1
Z.1

G1Z-.0125F1.

X-2.2109Y-.0256

X-2.3707Y.3249F40.

X-2.4773

X-2.785Y-.3243

X-2.7157

X-2.6623Y-.1985

G2X-2.6048Y-.1605I.0575J-.0245

G1X-2.4359

Y-.129

X-2.5383

G2X-2.5959Y-.0422J.0625
G1X-2.4954Y.197

G2X-2.3805Y.1977I.0576J-.0242

G1X-2.2763Y-.0415
G2X-2.3336Y-.129I-.0573J-.025

G1X-2.4359

Y-.1605

X-2.264

G2X-2.2066Y-.1982J-.0625
G1X-2.1522Y-.3243

X-2.0748

X-2.2109Y-.0256

G0Z.1

X-2.2417Y-.0396

Z.0875

G1Z-.025F1.

X-2.2109Y-.0256

X-2.3707Y.3249F40.

X-2.4773

X-2.785Y-.3243

X-2.7157

X-2.6623Y-.1985

G2X-2.6048Y-.1605I.0575J-.0245

G1X-2.4359

Y-.129

X-2.5383

G2X-2.5959Y-.0422J.0625

G1X-2.4954Y.197

G2X-2.3805Y.1977I.0576J-.0242

G1X-2.2763Y-.0415
G2X-2.3336Y-.129I-.0573J-.025

G1X-2.4359

Y-.1605

X-2.264
G2X-2.2066Y-.1982J-.0625

G1X-2.1522Y-.3243

X-2.0748

X-2.2109Y-.0256

G0Z.1

X-2.2417Y-.0396

Z.075

G1Z-.0375F1.

X-2.2109Y-.0256

X-2.3707Y.3249F40.

X-2.4773

X-2.785Y-.3243

X-2.7157

X-2.6623Y-.1985

G2X-2.6048Y-.1605I.0575J-.0245

G1X-2.4359

Y-.129

X-2.5383

G2X-2.5959Y-.0422J.0625

G1X-2.4954Y.197

G2X-2.3805Y.1977I.0576J-.0242

G1X-2.2763Y-.0415
G2X-2.3336Y-.129I-.0573J-.025

G1X-2.4359

Y-.1605

X-2.264

G2X-2.2066Y-.1982J-.0625

G1X-2.1522Y-.3243
X-2.0748

X-2.2109Y-.0256

G0Z.1

X-2.2417Y-.0396

Z.0625

G1Z-.05F1.

X-2.2109Y-.0256

X-2.3707Y.3249F40.

X-2.4773

X-2.785Y-.3243

X-2.7157

X-2.6623Y-.1985

G2X-2.6048Y-.1605I.0575J-.0245

G1X-2.4359

Y-.129

X-2.5383

G2X-2.5959Y-.0422J.0625
G1X-2.4954Y.197

G2X-2.3805Y.1977I.0576J-.0242

G1X-2.2763Y-.0415

G2X-2.3336Y-.129I-.0573J-.025

G1X-2.4359

Y-.1605

X-2.264

G2X-2.2066Y-.1982J-.0625

G1X-2.1522Y-.3243

X-2.0748

X-2.2109Y-.0256

G0Z.1

And this is not all of the codes on this one.  IS there something I am missing about MAch3 that has to do with G2 and G# and the I and J.  Is it a setting that I am aoverlooking.  Like metnioned I am still learning with MAch.

Thanks for any advice

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: G-code not compatable with Mach3-problems
« Reply #1 on: January 02, 2011, 06:14:09 PM »
Set the IJ's to incremental .

General config, near the middle of the page . select INC for IJ's
Re: G-code not compatable with Mach3-problems
« Reply #2 on: January 02, 2011, 06:51:17 PM »
Thanks just did that, as I also found it looking in the posts forum.  That helped out, now in the first program it runs but am getting a random complete circle in one spot.  So its better.  Will keep concentrating on the post processor I believe.