Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: mach_user on October 12, 2012, 12:40:05 PM

Title: G code problems
Post by: mach_user on October 12, 2012, 12:40:05 PM
Hello!

I wrote program whitch generate gcode. I have this shape: http://scr.hu/0ot/647p2
My program generated this code:
Code: [Select]
N1 G21 G18
N2 G01 Z0 X51
N3 G01 Z106 X85 F509
N4 G03 Z224 X47 K140.946 I-8.69528 F469
N5 G01 Z295 X47 F469
N6 M30

when I want to load it i get: http://scr.hu/0ot/jmhy0
I tried with simpler gcode:
Code: [Select]
N1 G21 G18
N2 G01 Z0 X1
N3 G01 Z2 X1 F509
N4 G02 Z3 X2 K3 I1 F469
N3 G01 Z5 X5 F509
N6 M30

But i get this same error to... What do I do wrong? The problem is with arcs.
Title: Re: G code problems
Post by: BR549 on October 12, 2012, 04:53:03 PM
The error is telling you that either the K or I or BOth are not correct to swing the arc from the N3 line positionto the N4 line position.

Simply replacing the K/I with a R call makes the code run so something is wrong about your pivot point K/I.

Just a thought, (;-) TP



Title: Re: G code problems
Post by: mach_user on October 14, 2012, 08:44:18 AM
I want to draw this shape: http://scr.hu/0ot/7pq04

My G code for this is:
Code: [Select]
N1 G21 G18 G71
N2 G01 Z0 X51
N3 G01 Z106 X85 F509
N4 G03 Z224 X47 R100 F469
N5 G01 Z295 X47 F469
N6 M30

In mach3: http://scr.hu/0ot/w4zlu
when I change G03 to G02: http://scr.hu/0ot/thedr
what's wrong with it?
Title: Re: G code problems
Post by: BR549 on October 14, 2012, 11:13:27 AM
The code works here (;-)  Do you have the front/rear tool post set correctly for your machine ?

I do not have turn set up here so I cannot test it there But the code makes the correct shape in mill.

(;-) TP
Title: Re: G code problems
Post by: cncalex on October 14, 2012, 11:11:09 PM
Hi,
front tool post
diameter mode
turn to Z - (minus) direction

N1 G21 G18 G71
N2 G01 Z0 X102 F509
N3 G01 Z-106 X170 F509
N4 G03 Z-224 X94 R100 F469
N5 G01 Z-295 X94 F469
N6 M30
%

Alex
Title: Re: G code problems
Post by: RICH on October 15, 2012, 06:43:46 AM
You may want to have a look at the write up located in Members Doc's called..... Mach3 Turn - ARC Motion .
RICH