Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: tmsmith on June 18, 2008, 06:31:36 PM

Title: Display problem maybe?
Post by: tmsmith on June 18, 2008, 06:31:36 PM
I am programming a small frame which contains 3 lines of text. The lines of text and the frame are arranged as 4 subroutines called from the main program. Each line of text has been run as an independant program and works OK.
When 'assembled' and using G52 to locate each line of text within the frame I have a problem.
When the program is loaded to a newly started-up Mach3 the text is correctly positioned in the frame but when I engrave it on the screen it 'cuts' at a completely different place, not on top of the displayed text.
Subsequently, after a toolpath regen the text is out of position but engraving is cut on top of the displayed text.
I have played with the coding and cannot improve the situation!!

Is this a known problem or is it likely to be my coding? I have not tried cutting this on the workshop mill yet.

TMSmith
Title: Re: Display problem maybe?
Post by: Chaoticone on June 18, 2008, 06:49:20 PM
G52 is a temporary work coord. I'm guessing it is all in your code but if you'll post it, we'll have a stab at it.

Brett
Title: Re: Display problem maybe?
Post by: Chip on June 18, 2008, 11:09:24 PM
Hi, TMSmith

Mach displays offsets properly, But it doesn't display it properly on the "view screen" when cutting.

At the end of your G-code file you need a G52 x0 y0 to reset the Temp Cord. Offset (G52 offset remains persistent till canceled), I Think.

Hope this Helps, Chip
Title: Re: Display problem maybe?
Post by: tmsmith on June 20, 2008, 01:42:53 PM
HI Team,
I have looked at the problem again and realized that G52 retains information and therefore putting G52 X0 Y0 near the start of the program made the part display correctly all the time, not just on the first occassion.
However I cannot get the view window to display the cutting path correctly so sending a copy of the code. Hope the file is not too big; generating test takes a lot of code, thank goodness for 'Write'.

tmsmith
Title: Re: Display problem maybe?
Post by: Graham Waterworth on June 20, 2008, 05:55:32 PM
Hi Malcolm,

this is what I get from your code, it looks fine to me.

Graham.

You could send a screen shot by using Screen Hunter :-  http://www.wisdom-soft.com/sh/sh_free.htm
Title: Re: Display problem maybe?
Post by: tmsmith on June 21, 2008, 09:57:52 AM
Thanks Graham,
I get the same display as you.
The problem is that when I simulate the cut with 'cycle start' the indicated cut for the rectangular frame follows the frame outline; but the indicated cut on the lettering does not. The top line of text for instance is shown as being cut at the bottom of the frame i.e. all text is displace downwards!.  This is just being done on the study PC, I have not tried it on the mill but I am assuming it will cut in error as well.

Any ideas

Malcolm
Title: Re: Display problem maybe?
Post by: Chip on June 21, 2008, 01:25:34 PM
Hi, TMSmith

Mach displays offsets properly on the "view screen" when loaded and with Regen Tool-path.

But it doesn't (dose not) display it properly on the "view screen" when Running the code (cycle start).

Your mill will cut the part correct, It's a Bug in the view screen code (offset issue).

Brian is re-writing the View Screen code, So at some point it should display it correct.

Chip
Title: Re: Display problem maybe?
Post by: tmsmith on June 21, 2008, 02:15:35 PM
Thanks Chip and Graham.
That has answered my problem.
Now to the mill.

Cheers

tmsmith