G41 G42 Cutter comp. and full circle issue

More
07 Sep 2016 08:29 #80118 by snujcnc
Hi
All
i face some strange issue in Linuxcnc Cutter comp
example:
with G42 (inside comp.)
with 10mm diameter cutter if i make 20 mm (diameter)full circle it show gouging error (g10 l1 p1 r5)
with 9.998 mm diameter if i make 20 mm (diameter) full circle it is ok to make circle (g10 l1 p1 r4.999) (no erro

in theory if we want to make full circle up to 10 mm diameter with 10 mm diameter cutter it should not show error
in this case only z axis move without any circular interpolation if z deed is given

but this is very strange behavior

Other strange behavior is
i can not make full circle with g41 or g42 on
circle leave one high point and it is around half of cutter diameter
and this can only resolved by writing p2 with g02 or g03 line
that means g02 or g03 rotate two full circle

so i try to check solution in /src/emc/rs274ngc /interp_convert.cc file

i found there is issue with maintain scale of cutter comp and written arc

so after i make correction in file line number 869 and 879

double l = (toward_nominal / dist_from_center) * 0.0001; (modified line)
double l = toward_nominal / dist_from_center; (origional line)

After this correction i am able to resolve two issue

1- i can make 10 mm diameter hole with max 9.999 mm diameter cutter (after 10 mm diameter cutter it show gouging error)
before correction i can make 10 mm diameter hole with max 4.999 mm diameter cutter

still i am finding solution how to make 10mm diameter hole with 10 mm cutter diameter (if someone know please help me for this )

2-i can make full circle without entering p2 in g02 line this is best solution i get from this correction

my issue is resolved but i just test on my laptop on actual machine i need to check for final result

my program is

bellow program my tool diameter is 9.999
and its work fine and it make full circle without p2 or p1


G49G40
G0X0Y0
G90
G43H1
G0Z0
G01G42D1X10F600
G02I-10Z-2F600
G40G49
G0X0Y0
M30

still i am looking for solution how to use 10mm diameter cutter to make 10 mm hole with interpolation

i think there is bug in interp_convert.cc code

Please Log in or Create an account to join the conversation.

More
07 Sep 2016 23:27 #80195 by BigJohnT
Please read linuxcnc.org/docs/2.7/html/gcode/tool-co...:cutter-compensation about cutter compensation.

Entry and exit moves are important when using cutter compensation.

JT

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum