Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: mike hide on September 26, 2008, 01:22:18 AM

Title: program quits at 5K line every time
Post by: mike hide on September 26, 2008, 01:22:18 AM
I am  novice and inserted a string of g code generated in sheetcam ,it is about 35K lines but consistently quits operation at precisely 5000lines.Is there some kind of "stop" at 5000 lines that is intentionally included or perhaps I have somehow triggered. Any help appreciated
Title: Re: program quits at 5K line every time
Post by: Hood on September 26, 2008, 01:48:33 AM
It will be line 500 (lines in sheetCAM are probably numbered in 10's)
The demo version of Mill is limited to 500 lines and Turn 150.
If you have a licence it looks like you dont have it in your Mach3 folder, to check go to the Help menu then AboutMach3....   youwill then either see the name you registered with or it will say Demo.
Hood
Title: Re: program quits at 5K line every time
Post by: mike hide on September 26, 2008, 01:59:51 AM
My name is there I have a registered copy of Mach3
Title: Re: program quits at 5K line every time
Post by: mike hide on September 26, 2008, 02:02:41 AM
my name is there I have a recently registered copy
Title: Re: program quits at 5K line every time
Post by: mike hide on September 26, 2008, 02:13:36 AM
10 X9.4532 Y0.2992
N4920 X9.6091 Y0.3570
N4930 X9.6764
N4940 Y0.6373
N4950 X9.4758 Y0.8091
N4960 X9.4753 Y0.8101      Here is a snippet of code  total lines is 44990.
N4970 X9.4511 Y0.8831
N4980 X9.3592 Y0.8330
N4990 X9.5140 Y0.6994
N5000 X9.5157 Y0.6955
N5010 X9.5149 Y0.6914
N5020 X9.5118 Y0.6884
N5030 X9.5094 Y0.6874
N5040 X9.3531 Y0.6357
N5050 Y0.3858
N5060 X9.3520 Y0.3813
N5070 X9.3508 Y0.3796
N5080 X9.3490 Y0.3784
N5090 X9.3092 Y0.3570
N5100 X9.3490 Y0.3562
N5110 G00 Z0.2500
N5120
Title: Re: program quits at 5K line every time
Post by: Hood on September 26, 2008, 02:37:51 AM
Please attach your xml and the full code.
 Also does the code (and Mach) just stop or does Mach do anything?
Hood
Title: Re: program quits at 5K line every time
Post by: scudzuki on September 26, 2008, 07:26:30 AM
Line 5000 included in the post is actually the 500th line since the line #s increment by 10... if that's the number you are basing your observations on, the program has 4,499 lines.
If line 5000 is where it's stopping, sounds like a licensing issue.

Joe
Title: Re: program quits at 5K line every time
Post by: mike hide on September 26, 2008, 10:08:36 AM
Not quite sure what "xml" is . Sorry showing my ignorance it is the 500th line not the 5000 one. As far as mach goes.This is my first try at running mach3. First I ran the code generated by sheetcam without the machine actually running. several times. A few times it ran all the way through and but mostly stopped at the 500th line .the only time it did run through a couple of consequtive times I engages the machine and ran it physically .Tried this twice ,each time my machine worked well [Joe's 2006 model built last winter,with hobbycnc control] and just quit when it gets to line 500.

Mach just stops,seems to be doing fine up to line 500. 

Not sure how to insert code .tried to paste it but that made the correspondance too big......thank you for the help  regards mike hide

Title: Re: program quits at 5K line every time
Post by: Hood on September 26, 2008, 10:47:31 AM
OK your xml is in the Mach3 folder on your drive. If you are using a standard Mach3Mill profile the xml you want to attach is Mach3Mill.xml. You will however need to rename it as the forum will only accept a file name once and Mach3Mill.xml will have been used. To rename right click on the xml and choose copy then paste it to the desktop and right click again and choose rename and suggest you call it mike_hide.xml.  If you are using a custom profile the you need the xml that has that profiles name, ie *****.xml.

To attach files to the forum make sure you are using the full reply page and you will see additional options at the bottom left, click that then browse your drive to the files and choose them.



Hood
Title: Re: program quits at 5K line every time
Post by: scudzuki on September 26, 2008, 10:51:34 AM
Go into your Mach3 folder (usually at c:\Mach3\) and copy the mach3mill.xml file to your desktop (right click the file and click "copy", switch to the desktop, right click and click "paste"). Select the file  on the desktop and hit f2 on your keyboard so you can rename the file. Rename it mikehide.xml, then upload by clicking "additional options" when you are replying to this thread.
Joe
Title: Re: program quits at 5K line every time
Post by: mike hide on September 26, 2008, 07:40:26 PM
been there done that but the post does not appear
Title: Re: program quits at 5K line every time
Post by: mike hide on September 26, 2008, 07:45:17 PM
Try one more time hopefully the file is there
Title: Re: program quits at 5K line every time
Post by: mike hide on September 27, 2008, 02:02:11 AM
Finally the file turns up ,I changed the spelling .

As a novice can someone tell me the significance of the XML file and why it is pertinent to this line limiting machine movement .....thanks mike hide
Title: Re: program quits at 5K line every time
Post by: Hood on September 27, 2008, 03:20:32 AM
The xml holds all of your settings, unfortunately the xml you have posted  is basically blank, ie no motors or inputs/outputs set up etc, are you sure this is for the profile you are using? Please try again to attach the xml for the profile you are using (you will need to rename again ) , also please attach the code you are having the problems with.
Hood
Title: Re: program quits at 5K line every time
Post by: mike hide on September 27, 2008, 01:35:03 PM
Basically this is the case of an old dog trying to learn new tricks. I appreciate your patience when from your address you could be out playing golf on a premier course.

That being said I know what I want to send you but am having trouble getting it to you due to my inefficiency on these marvelous machines.

I have tried to send you the seach results .again I have sent the file at the top oof the search list which was "mach3xml" and renamed mjhxml.I am still trying to figure out how to send the full G code and will send it shortly [I hope]   

Trying to read between the lines should I have established some kind of "profille" some how before even starting this project and the one we are discussing not having the missing data was there ever a  chance the system could ever have worked ?  regards mike hide
Title: Re: program quits at 5K line every time
Post by: mike hide on September 27, 2008, 01:45:12 PM
Here we go again, hope this works
Title: Re: program quits at 5K line every time
Post by: jimpinder on September 27, 2008, 02:12:23 PM
Mike - I have this problem when using my download version to run some copper clad etching programs which often go to several thousand lines. When I download them, they only load to the 500th line - you can see that in the download window. Another dead giveaway is that the toolpath diagram does not show the whole cut, (only the first 500 lines).

If you say you have purchased a copy of Mach 3 this should now open up to do the complete number of lines.

You can, if you wish, test this by cutting 450 line chunks out of the program using notepad and adding M99 at the end.
If you just do a couple say, using "save as" name them p1 and p2 and file then in the "subroutines" folder. In your main program, where you cut them out, type in M98(p1.txt) and M98(p2.txt) and load that.

You should find that your Toolpath display now displays about 1400 lines of the code - two 450 line subroutines and the 480 or so lines after that. I am not suggesting that you do all the program like that, it would be far to taxing, put it will point to where the problem is.


Title: Re: program quits at 5K line every time
Post by: jimpinder on September 27, 2008, 02:13:41 PM
Are there any premier golf courses near Carnoustie  :-\ :-\ :-\
Title: Re: program quits at 5K line every time
Post by: mike hide on September 27, 2008, 03:24:57 PM
Well thats what I have heard, perhaps I have the name wrong all I know is there is a similar name in golf lore.

Anyhow I will try and send the G code via a zip file
Title: Re: program quits at 5K line every time
Post by: Hood on September 27, 2008, 06:30:30 PM
Jim,
 http://www.carnoustiegolflinks.co.uk/


Mike
Just going to look at your xml now, been a busy day.

Hood
Title: Re: program quits at 5K line every time
Post by: Hood on September 27, 2008, 06:37:55 PM
Mike
 again that is basically a blank xml, do you have motors and limits etc asigned in Mach?
 If you do how do you start Mach? If you use a desktop Icon  right click on it and choose properties and see what the target is called, it will be the name of the xml you are wanting.

Hood
Title: Re: program quits at 5K line every time
Post by: mike hide on September 27, 2008, 09:11:43 PM
Thanks for your help everyone. sleepwell see Y'all tomorrow from the home of Robert Trent Jones.Meanwell I am boning up on xml files....regards mike hide
Title: Re: program quits at 5K line every time
Post by: mike hide on September 28, 2008, 03:48:49 PM
I have a shortcut on my desktop that used to work [Mach3mill] until I started playing around now it flashes the mill screen and then shows a blank screen .I satys it cannot find the "enable40.dll. The shortcut used to bring up the mill screen and I loaded tgw gcode into it .
Title: Re: program quits at 5K line every time
Post by: Hood on September 28, 2008, 05:00:03 PM
Looks like you may have inadvertantly removed or renamed something. Reinstall of Mach should put any missing files back and if you can not find your old xml  or its not working you should be able to use one of the backups.

Hood
Title: Re: program quits at 5K line every time
Post by: mike hide on September 29, 2008, 05:25:49 PM
Yep and I have been trying to find a way of getting it back for a couple of days with no joy. I Am just not at all good at this as you might have guessed. what I need is explicit instructions. Unfortunately I appeared on the sceen before the computer age so it's a bit of a struggle . Will get back to you once I figure where it has gone or what I did to loose it. Funny but the other icons work fine.....regards mike hide