Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: BonOhsato on January 25, 2012, 07:21:27 AM

Title: Gcode more than 100,000 lines
Post by: BonOhsato on January 25, 2012, 07:21:27 AM
I have recently purchased "PhotoVCarve" software and started to get into lithophane world !
After some trials, I have started a program generated by the software which is expected to finish in about 5 hours.
I have been checking the machine every 30 to 40 minutes, and found the machine is stopped near to the end  :o!!!!
On the Mach3 screen (I use 2010 screen), red RESET button is blinking.
(at this moment, I didn't check the line number)
I pressed restart button timidly, the reset button turns green.
And press "Cycle Start" button, the machine moves properly until the end  :D
Afterward, I check the program and find the number of Gcode lines is more than 100,000.
Actually the line number starts from N20, and after N999990, next line is N0 as pasted below;
-------------
.
.
N999970X10.887Y99.895Z-0.387
N999980X10.649Y99.656Z-0.413
N999990X10.092Y99.100Z-0.373
N0X1.344Y90.351Z-0.373
N10X1.105Y90.112Z-0.399
N20X0.787Y89.794Z-0.477
N30X0.469Y89.476Z-0.663
N40X0.230Y89.238Z-0.919
.
.
---------
Final line of the files is "N13650M30".

I'm not sure the machine is stopped between N999990 and N0.
It is not a serious trouble, but not good for my heart ....

Is there any limit about number of lines ??

Thanks for any suggestions.
Title: Re: Gcode more than 100,000 lines
Post by: Overloaded on January 25, 2012, 07:49:10 AM
Mach3 has a limit of 10,000,000 lines of Gcode when licensed.
Does the 2010 screen give you a message as to why it stopped ?

If it went into RESET, I doubt that it is related to the line #'s, possibly coincidental that it stopped where it did. And, it probably lost its referenced position.

You can change the PP in the Vectric SW (can in VCP so assume you can in yours also) to increment of 1.
Russ
Title: Re: Gcode more than 100,000 lines
Post by: Hood on January 25, 2012, 07:54:49 AM
Probably the watchdog in Mach but as Russ said the error message would help know what was wrong. Two things I would suggest, disable toolpath view on very large files (settings screen I think) and also disable the watchdog in Mach (General Config page)

Hood
Title: Re: Gcode more than 100,000 lines
Post by: Overloaded on January 25, 2012, 08:00:58 AM
Ahhh...yes. That dang dog !
Might have seen the abrupt line # change as an anomoly ?
Nice catch Hood.

Russ
Title: Re: Gcode more than 100,000 lines
Post by: BonOhsato on January 25, 2012, 08:25:41 AM
Thanks gentlemen for your quick posts.

I will check the setup of PVC tomorrow, it is time to sleep in Japan.

By the way, lothophane is very interesting.
The software is priced reasonable, I would say it is unbelievable cheap.

Bon
Title: Re: Gcode more than 100,000 lines
Post by: Overloaded on January 25, 2012, 08:37:59 AM
Interesting indeed ! Vectric is priced right, very stable and has GREAT support !
I'm betting you have seen this :  http://www.machsupport.com/forum/index.php/topic,8762.0.html

Please be sure to post some of your work, we are all eager to see.
Thanks,
Russ
Title: Re: Gcode more than 100,000 lines
Post by: BonOhsato on January 26, 2012, 02:49:47 AM
Hood is correct.

I have tested a long program (ca. 110,000 lines) with and without watchdog.
If watchdog is unchecked on the general config, machine runs through without any trouble.

Also I could see an error message "Driver Watchdog Triggered" on the screen if the watchdog is checked.
When my trouble had occurred I was in a panic and could not notice the error message. See attachment.

Thank you all
Bon
Title: Re: Gcode more than 100,000 lines
Post by: Hood on January 26, 2012, 03:22:13 AM
Good to hear you got it :)
Hood
Title: Re: Gcode more than 100,000 lines
Post by: Jd on January 26, 2012, 01:30:36 PM
Hello Glad you got it, I had a similar problem  a year ago when I started using PhotoVcarve and Wrapper. Because the time needed for some Lithos was so great I started sharpening my cutters in different configurations and playing with feed rates to cut the time down while maintaining a good cut. As I started getting into 75K and 80K programs my machine would stop around the 60K mark (but only once in awhile like a week apart), the error message was limit switch pressed ( something like that ) or Estop pressed, I know it is some kind of noise problem but after a wire re-sheilded and 1 month of other stuff chasing the noise I have set my debounce in Mach3 to 2 and have cut 30 Litho's with no problem. The problem only occurred when using PhotoVcarve with all the little short moves. Nice program, someday will solve this issue. probably by accident
Title: Re: Gcode more than 100,000 lines
Post by: DD19 on February 23, 2012, 07:20:22 AM
Hello
I'm also experiencing the same thing .My codes are from 1mil to 2.6 mill long.At the end of the program the steppers would lose position and do some crazy moves. Yesterday I removed the M30 at the end of the program and the program worked fine for first time in weeks I'll try again today.
Dave
Title: Re: Gcode more than 100,000 lines
Post by: Tweakie.CNC on February 23, 2012, 07:31:37 AM
Dave,

The M30 would make G0 moves so check your motor tuning because you probably have the Velocity / Acceleration set far too high.

Tweakie.
Title: Re: Gcode more than 100,000 lines
Post by: DD19 on February 23, 2012, 05:17:10 PM
Hi Tweakie
I've tried different settings , doesn't seem to matter. I tried emlimating the middle of the code, leaving the first few hundred lines and the last few thousand lines and everything works fine. Seems to only happen with very large files.
Don't understand?
Dave
Title: Re: Gcode more than 100,000 lines
Post by: DD19 on February 24, 2012, 06:32:52 AM
 Just ran 2 programs overnight both with over 1mill lines, removed M30 and both ran perfect. does anyone understand this?
thanks Dave
Title: Re: Gcode more than 100,000 lines
Post by: Karl W on April 09, 2012, 02:31:44 PM
I just ran a path with just under a million lines.

Around halfway through I encountered SEVERAL "limit switch activated" errors, even though the switches were clearly not activated. The machine was moving very slowly at the time so I was able to restart from position, but it kept faulting out every few minutes for a total of about ten times, then went on and machined the remainder of the part (another 500,000 lines) without a hitch.

I am aware that noise is often the culprit. I will check and reset the debounce to 2000 unless someone thinks another number is better.

Is there anything else I should change?

I am not getting watchdog errors.

I am using Tempest with its older Mach version. Ethernet smoothstepper plugin v10a. No errors from the ESS that I can tell.

In another part of the path, the X-axis stopped moving completely at one point, though it would jog on the screen. I do not think this was related, but I cannot be sure, because repowering the machine, rehoming and rezeroing fixed the issue. I thought it was a wiring issue, but all wires from the control to the motor showed continuity. It has never done that before.

Thanks,
Karl