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
-
Hello!
I wrote program whitch generate gcode. I have this shape: http://scr.hu/0ot/647p2
My program generated this code:
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:
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.
-
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
-
I want to draw this shape: http://scr.hu/0ot/7pq04
My G code for this is:
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?
-
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
-
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
-
You may want to have a look at the write up located in Members Doc's called..... Mach3 Turn - ARC Motion .
RICH