Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: Chip on December 24, 2006, 02:45:22 PM

Title: g92 Proper Use Of with M98, M99 ?
Post by: Chip on December 24, 2006, 02:45:22 PM
Trying to get this code to work properly.

It appears to cut properly, doesn't display properly during cut and doesn't execute final ret. to  x0, y0 at finish.

Have tried so many different combinations.

Just lost hear now, hope someone can get me back on track.

Thanks, Chip.

Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Chaoticone on December 24, 2006, 03:16:36 PM
High Chip,
     Doesn't display right for me either. Can you send me a dxf. or dwg. print. I will write the code with my cam package and compare. I'm no Gcode guru by a long shoot. I think it has sometheing to do with the incremental G91 and the G90 absolute.

Brett
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Chip on December 24, 2006, 03:33:18 PM
Hi, Brett

It's a LC generated file, gust trying to cut 5, at a time useing gust one ABS file below, in a vertical cut.

My NCPLOT shows it returning to x0y0, and plots it properly, Mach3.029 doesn't.

I now I could just make copy's in DXF and generate Gcode.

Just trying to do it with G92,M98, M99, you no learn something now and then.

Thanks, Chip
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Chaoticone on December 24, 2006, 03:54:19 PM
I understand wanting to learn new ways. That is what makes life interesting. I don't know if this will help or not but I have seen very similar things done with a main program that calls up sub programs. I would think you would do the code in incremental. Copy it however many times you want to run it and add fixture offsets in absolute. This may be totally wrong though as I need a lot of help with Gcode. Without my cam package I don't think I could mill a straight pocket. ;D Some of the guys who frequent here are really sharp on Gcode.

Brett
MERRY CHRISTMAS
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Graham Waterworth on December 24, 2006, 05:56:07 PM
Hi Chip,

try it like this.

Graham.
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Chaoticone on December 24, 2006, 06:22:57 PM
Chip,
    Graham is one of the gurus I was speaking of.

Merry Christmas Graham

Brett
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Chip on December 24, 2006, 07:35:13 PM
Hi, Graham

Thanks, The Goo x0 y0 z0 returns now.

Still don't understand why it still uses the bottom object twice.

Thought Mach used the  Display / RunData. data-files for cut, Must be some disagreement in the Mach Code.

Both codes posted Run in NCPlot and return to Zero though.

I reposted the first one it had an error.

Thanks, Chip

Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Graham Waterworth on December 24, 2006, 07:45:12 PM
Hi Chip,

Not sure what you mean by its using the bottom object twice

Graham.

Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Chip on December 24, 2006, 07:54:48 PM
Hi, Graham

It cuts the Bottom Part 2 times then goes to finish point of top part then to X0 y0 z0.

Using Mach3 Ver. .029 hear maybe there is something wrong with my XML

Thanks, Chip
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Graham Waterworth on December 24, 2006, 08:14:10 PM
Hi Chip,

I don't think you can use G92 like this, G92 sets a datum at the current point when you use X0 Y0 Z0 but it has no way to go back to the original start point.

G52 X1. Y1. Z1. is a datum shift by the amount in X,Y,Z, if the values are ZERO it is shift cancel.

When Mach runs the program to generate the path it may be setting the datums and because its a G92 it can't get back to the original datum point so its cutting the bottom part twice because that was the last datum point created by G92.

I hope that makes sense (Its getting late here).

Graham.
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Chip on December 24, 2006, 08:37:36 PM
Hi, Graham

I read up on G52 code will try it some hear.

Thanks for the help.

I see its late there.

Chip   
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Graham Waterworth on December 24, 2006, 09:30:15 PM
Hi Chip,

I have just played about with the program and it is looking like its Machs drawing of the run path that is at fault, if you run the program offline and watch the figures in the machine dro's the offsets are being applied and canceled as they should be but the screen is drawn with the local dro figures without the offsets.

Try the included program.

Graham.
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Chip on December 24, 2006, 11:25:56 PM
Hi, Graham

Yes I agree NCPlot simulates both filers, just fine hear.

Switching between ABS and Machine Coord's, They are not in agreement with the Screen View with the Second Part.

Maybe this is part of the problem with Feed-Hold, Re-Start and restart after jogging problems.

Just a Bug Hunter Hear, trying to scrape myself to the top of the Heap.

Thanks, Chip
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Brian Barker on December 25, 2006, 08:52:31 AM
G52 is a much better way to go :)

In the Fanuc's you can't have both G92 and Fixture offsets at the same time... So please stick to the Offsets and all will be good ;)
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Chip on December 25, 2006, 09:42:37 AM
Hi, Brian

Its more of a screen issue, Mach draws it fine just doesn't follow screen path, Doesn't Mach use the Screen.Data-File.

Shouldn't Mach follow Drawn Path.

Thanks, Chip
Title: Re: g92 Proper Use Of with M98, M99 ?
Post by: Brian Barker on December 31, 2006, 09:30:31 AM
Chip it is very hard to try to follow the path of the something that can change it's zero at will :(

Post an example program and I will see what we can do

Thanks
Brian