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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
Thanks Chip and Graham.
That has answered my problem.
Now to the mill.
Cheers
tmsmith