Hello Guest it is April 25, 2024, 08:01:07 PM

Author Topic: HELP toolofset, G42  (Read 4742 times)

0 Members and 1 Guest are viewing this topic.

Offline zigge

*
  •  20 20
    • View Profile
HELP toolofset, G42
« on: December 01, 2010, 04:51:32 AM »
Hi I have made a simple drawing in SolidWorks and generated a G-code and I loaded it to my mill with Mach 2 system, but it will not accept my tool and then also not compensate for the tool, I have a tool in my tooltable 6mm diameter and in my mach window It says T6 but I am not sure if there is any ligt that should indicate that its active?
anyway, I thought that I could just change my G-code and get it right! BUT NO!

Sometimes it works a few posts in to the program, and the I get errors
for example : "Concave corner with cutter radius comp on line #23"

this is my code

(File 4kantG3 )
(Wednesday, December 01, 2010)
G90G80G49
G0 Z5.0000
G0 Z5.0000
M5
M6T6
M3
S320
G0 Z5.0000
g42 p3      (this line I added my self)
G0 X0.0000 Y0.0000
M3
F100.000G1 Z-1.0000
F100.000G1 X90.0000 Y0.0000
G1 X90.0000 Y90.0000
G1 X0.0000 Y90.0000
G1 X0.0000 Y0.0000
G0 Z5.0000
G0 X7.0000 Y76.7692
F100.000 G1 Z-1.0000
G2 X7.0000 Y76.7692 I12.0000 j76.7692
G0 Z5.0000
G0 X20.0000 Y45.0000
F100.000 G1 Z-1.0000
G2 X20.0000 Y45.0000 I45.0000 j45.0000
G0 Z5.0000
G0 X73.0000 Y76.7692
F100.000 G1 Z-1.0000
G2 X73.0000 Y76.7692 I78.0000 j76.7692
M5
G0 Z5.0000
M5
G53 X0 Y0
M5M30



This is just a 4 sided part with one big hole 50mm and two small holes, it turns out just fine exept the part is 6mm to small and the holes are 6mm to big, due to the cuttercompensation does not work....

I would be very glad if anyone gould explain what I do wrong?
and I can add that I tried to set up the Mach 3 program but I didnt get it to work, so that is not an option at the moment, but I guess that the mach 2 should work...

Zigge

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: HELP toolofset, G42
« Reply #1 on: December 01, 2010, 07:04:57 AM »
You need a lead in move. At least an XY position before G42.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline zigge

*
  •  20 20
    • View Profile
Re: HELP toolofset, G42
« Reply #2 on: December 01, 2010, 07:25:22 AM »
Ok Thanks, this X, Y any special distans or place that is needed?

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: HELP toolofset, G42
« Reply #3 on: December 01, 2010, 08:17:01 AM »
Before G42 and the move should be larger than the tool radius. try this.
G0 X-4.000 Y0.0000
g42 p3      (this line I added my self)
G1 X0.0000 Y0.0000
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline zigge

*
  •  20 20
    • View Profile
Re: HELP toolofset, G42
« Reply #4 on: December 01, 2010, 08:28:47 AM »
Thanks, I Will test it tomorrow!
It would be great to be able to use My solid drawings

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: HELP toolofset, G42
« Reply #5 on: December 01, 2010, 11:28:02 AM »
Don't forget you also need a leadout move when you cancell with G40.

Just a thought, (;-) TP

Offline zigge

*
  •  20 20
    • View Profile
Re: HELP toolofset, G42
« Reply #6 on: December 02, 2010, 06:19:27 AM »
Thanks!
 I got the G42 working on my simple part, but now I wonder why the T6 doesnt do the job? what is the point of having a specifict tool if it doest do the job?

The G42/G41 did work in my last code after your help, but I could not get it going on this!!!
I feel soooo stupid!!
I guess its the part before it starts to cut, the "step in" part... I have tested different things for days now, where can I find info about how to make a correct G42, i think someone talked about when he called a G42 the program asked the "right questions" so that you fill out the needed parameters, but I dont know what type of program that was...

(File fästeG3 )
(Thursday, December 02, 2010)
G90G80G49g17 g21 g40
G0 Z5.0000
G0 Z5.0000
M5
M6T6 (why this code if it doesnt do the job)
M3
S320
G0 Z5.0000
G0 X22.4500 Y24.0000
M3
F100.000 G1 Z-1.0000
G2 X22.4500 Y24.0000 I37.5000 j24.0000
G0 Z5.0000
G0 X19.4981 Y0.0000
F100.000G1 Z-1.0000
F100.000G1 X55.5019 Y0.0000
G3 X58.5019 Y3.0000 I55.5019 J3.0000
G1 X58.5019 Y6.4281
G2 X61.5019 Y9.4281 I61.5019 J6.4281
G1 X72.0000 Y9.4281
G3 X75.0000 Y12.4281 I72.0000 J12.4281
G1 X75.0000 Y38.7215
G1 X75.0000 Y12.4281
G0 Z5.0000
G0 X75.0000 Y38.7215
F100.000 G1 Z-1.0000
F100.000 G3 X74.8567 Y39.6375 I72.0000 J38.7215
G1 X56.1701 Y97.9160
G3 X53.3134 Y100.0000 I53.3134 J97.0000
G1 X21.6866 Y100.0000
G3 X18.8299 Y97.9160 I21.6866 J97.0000
G1 X0.1433 Y39.6375
G3 X0.0000 Y38.7215 I3.0000 J38.7215
G1 X0.0000 Y12.4281
G3 X3.0000 Y9.4281 I3.0000 J12.4281
G1 X13.4981 Y9.4281
G2 X16.4981 Y6.4281 I13.4981 J6.4281
G1 X16.4981 Y3.0000
G3 X19.4981 Y0.0000 I19.4981 J3.0000
G0 Z5.0000
G0 X33.5000 Y88.3265
F100.000 G1 Z-1.0000
G2 X33.5000 Y88.3265 I37.5000 j88.3265
G0 Z5.0000
G0 X15.3788 Y44.5168
F100.000G1 Z-1.0000
F100.000G1 X59.6212 Y44.5168
G3 X63.4047 Y49.8150 I59.6212 J48.5168
G1 X54.2405 Y76.5234
G3 X50.4570 Y79.2252 I50.4570 J75.2252
G1 X24.5430 Y79.2252
G3 X20.7595 Y76.5234 I24.5430 J75.2252
G1 X11.5953 Y49.8150
G3 X15.3788 Y44.5168 I15.3788 J48.5168
M5
G0 Z5.0000
M5
G53 X0 Y0
M5M30

Soon i will jump off a bridge!!!!!!!

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: HELP toolofset, G42
« Reply #7 on: December 02, 2010, 10:34:30 AM »
It appears your CAM is NOT using tool offsets when it post the Gcode.

There are no g41/42/40's  anywhere in the code.  these are the codes that actually DO the offsetting in Gcode.

Some Cams do not USE tool offsets but do the offsetting by offsetting the drawing size to accomendate the tool diameter.

Just a thought, (;-) TP

Offline zigge

*
  •  20 20
    • View Profile
Re: HELP toolofset, G42
« Reply #8 on: December 02, 2010, 03:33:09 PM »
Now I manades to get the G41 working on the cirkle but not the G42 or if it was the other way around...
But when i finally got the outer contour working with G42 it stopped at the second radius?
And I thought My luck was done when I got My hands on a  Deckel G-code book, but the Deckel ides some different codes :-(

Offline zigge

*
  •  20 20
    • View Profile
Re: HELP toolofset, G42
« Reply #9 on: December 02, 2010, 04:16:07 PM »
Man I am posting from my Iphone, and that sometimes mess up words when typing fast :-)