Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 03:25:49 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  G-Code, CAD, and CAM
| |-+  G-Code, CAD, and CAM discussions
| | |-+  Display problem maybe?
Pages: 1   Go Down
Print
Author Topic: Display problem maybe?  (Read 751 times)
0 Members and 1 Guest are viewing this topic.
tmsmith
Active Member

Offline Offline

Posts: 104


View Profile
« on: June 18, 2008, 05: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
Logged
Chaoticone
South Carolina, US
Administrator
*
Online Online

Posts: 2,810


Precision Chaos



View Profile WWW
« Reply #1 on: June 18, 2008, 05: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
Logged

Grin If you could see the things I have in my head, you would be laughing too. Grin
www.precisionchaos1.com
My guard dog is not what you need to worry about!
Chip
Global Moderator
*
Online Online

Posts: 1,447

Gainesville Florida USA



View Profile
« Reply #2 on: June 18, 2008, 10: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
Logged
tmsmith
Active Member

Offline Offline

Posts: 104


View Profile
« Reply #3 on: June 20, 2008, 12: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

* CompPlaque.txt (28.76 KB - downloaded 20 times.)
Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,174


West Yorkshire, England



View Profile WWW
« Reply #4 on: June 20, 2008, 04: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


* GW__2008-06-20_23.00.jpg (32.2 KB, 582x391 - viewed 58 times.)
« Last Edit: June 20, 2008, 04:57:56 PM by Graham Waterworth » Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
tmsmith
Active Member

Offline Offline

Posts: 104


View Profile
« Reply #5 on: June 21, 2008, 08: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
Logged
Chip
Global Moderator
*
Online Online

Posts: 1,447

Gainesville Florida USA



View Profile
« Reply #6 on: June 21, 2008, 12: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
Logged
tmsmith
Active Member

Offline Offline

Posts: 104


View Profile
« Reply #7 on: June 21, 2008, 01:15:35 PM »

Thanks Chip and Graham.
That has answered my problem.
Now to the mill.

Cheers

tmsmith
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!