Hello Guest it is March 28, 2024, 01:05:10 PM

Author Topic: G code problems  (Read 4058 times)

0 Members and 1 Guest are viewing this topic.

G code problems
« 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.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: G code problems
« Reply #1 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



Re: G code problems
« Reply #2 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?

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: G code problems
« Reply #3 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
Re: G code problems
« Reply #4 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

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: G code problems
« Reply #5 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