File won't run. Error when sending file stream

tsikows
Posts: 38
Joined: Fri Sep 12, 2014 11:25 pm

File won't run. Error when sending file stream

Post by tsikows » Wed Dec 24, 2014 1:01 am

I thought I had this all figured out but apparently not. Every time I try to run this file, within seconds of clicking send, it gives me the error (error while starting file stream: null). This has happened before and I had fixed it but apparently not. I try over and over, re write g code, start over completely on cambam with new tool path and everything but nothing seems to fix it. I have another program I ran several times today and it works without a hitch but this one won't run. I have compaired the two and everything looks similar between the two as far as commands go. Here are the two files.
ImageUploadedByTapatalk1419382698.143243.jpg
ImageUploadedByTapatalk1419382698.143243.jpg (368.99 KiB) Viewed 2077 times
Good file that runs every time.
ImageUploadedByTapatalk1419382624.492436.jpg
ImageUploadedByTapatalk1419382624.492436.jpg (368.18 KiB) Viewed 2077 times
Bad file that will not run.

Sorry for the crappy phone pics, I'm offline and can't take computer screenshots. I know it's not the entire file but like I said it happens seconds after I click send telling me it doesn't like the first lines of code it sees. I have tried removing all the unnessesarry commands and it doesn't fix it.
Last edited by tsikows on Wed Dec 24, 2014 1:37 am, edited 1 time in total.

WillAdams
Posts: 8628
Joined: Mon Apr 09, 2012 6:11 pm
Location: Pennsylvania --- south of the Turnpike, East of US-15
Contact:

Re: File won't run. Error when sending file stream

Post by WillAdams » Wed Dec 24, 2014 1:11 am

Why does one say T2, while the other selects T5?

Grbl doesn't support tool selection, so it shouldn't appear.
Shapeoko 3XL #0006 w/ Carbide Compact Router w/0.125″ and ¼″ Carbide 3D precision collets

tsikows
Posts: 38
Joined: Fri Sep 12, 2014 11:25 pm

Re: File won't run. Error when sending file stream

Post by tsikows » Wed Dec 24, 2014 1:19 am

I am using a different size tool in each program. That's just the tool index number in my tool library. That is one of the lines I have tried to remove with no change in results

cvoinescu
Posts: 4442
Joined: Thu Jul 19, 2012 6:50 pm
Location: Camberley, UK
Contact:

Re: File won't run. Error when sending file stream

Post by cvoinescu » Wed Dec 24, 2014 1:42 am

The F word is ignored for a G0 move. Then, you have a G1 move without having had a (valid) F word, which is an error in GRBL 0.9. I believe it will run if you change the code from

Code: Select all

G0 F30 Z-0.2
G1 X0.0982 Z-0.2259
to

Code: Select all

G0 Z-0.2
G1 F30 X0.0982 Z-0.2259
Also, I would remove the unsupported G40, because it caused the other words on the same line to be ignored -- and you don't want your G20 ignored.
Proud owner of ShapeOko #709, eShapeOko #0, and of store.amberspyglass.co.uk

tsikows
Posts: 38
Joined: Fri Sep 12, 2014 11:25 pm

Re: File won't run. Error when sending file stream

Post by tsikows » Wed Dec 24, 2014 1:59 am

Ok I'll give that a try. On a side note, is G64 ignored as well? If on a separate line it says unsupported in the command screen.

WillAdams
Posts: 8628
Joined: Mon Apr 09, 2012 6:11 pm
Location: Pennsylvania --- south of the Turnpike, East of US-15
Contact:

Re: File won't run. Error when sending file stream

Post by WillAdams » Wed Dec 24, 2014 2:19 am

tsikows wrote:Ok I'll give that a try. On a side note, is G64 ignored as well? If on a separate line it says unsupported in the command screen.
http://www.shapeoko.com/wiki/index.php/ ... ed_by_Grbl

Apparently not supported.

G64 ( G64:Constant velocity mode )
Shapeoko 3XL #0006 w/ Carbide Compact Router w/0.125″ and ¼″ Carbide 3D precision collets

tsikows
Posts: 38
Joined: Fri Sep 12, 2014 11:25 pm

Re: File won't run. Error when sending file stream

Post by tsikows » Wed Dec 24, 2014 9:51 am

So is grbl just a picky <rude word for unpleasant female elided> or is it normal to have to adjust gcode with open source? I know I'm still learning but I feel like this is just kind of the first thing that should be taken care of and working correctly.

cvoinescu
Posts: 4442
Joined: Thu Jul 19, 2012 6:50 pm
Location: Camberley, UK
Contact:

Re: File won't run. Error when sending file stream

Post by cvoinescu » Wed Dec 24, 2014 12:03 pm

The F thing is an error in the G-code, so it's definitely not GRBL's fault.

It is also okay for G-code interpreters to support only some commands. The standard requires that, if anything on the line causes an error, the entire line is discarded. So, again, GRBL's behaviour is correct -- but it would be more helpful if it supported G40 etc. as no-ops (they are the only modes supported anyway). Let G40 be accepted quietly, and G41 and G42 be rejected.
Proud owner of ShapeOko #709, eShapeOko #0, and of store.amberspyglass.co.uk

WillAdams
Posts: 8628
Joined: Mon Apr 09, 2012 6:11 pm
Location: Pennsylvania --- south of the Turnpike, East of US-15
Contact:

Re: File won't run. Error when sending file stream

Post by WillAdams » Wed Dec 24, 2014 5:08 pm

There's been a bug filed on Grbl not supporting G40: https://github.com/grbl/grbl/issues/531
Shapeoko 3XL #0006 w/ Carbide Compact Router w/0.125″ and ¼″ Carbide 3D precision collets

twforeman
Posts: 1351
Joined: Tue Jan 29, 2013 4:51 pm
Location: Minneapolis, MN
Contact:

Re: File won't run. Error when sending file stream

Post by twforeman » Wed Dec 24, 2014 6:02 pm

The real issue is not CamBam, nor Grbl, per say, but rather the fact that G-code is a loose standard and not really a consumer-grade product. All G-code processors (Grbl, FANUC, etc) support G code differently. And there is a bit of a learning curve involved.

That's why all professional-grade CAM software allows you to create a post-processor - so that the G-code produced is correct for your machine. CamBam does have this feature, and I have a post-processor that I generated. Let me see if I can pull it out and attach it here. It works for me with Grbl 0.9(some beta version), but no guarantees that it will work for you.

I had to zip the file, so rename the attached file to .zip and then extract the ShapeOko.cbpp file and put it in your "post" directory (should be something like "C:ProgramData\CamBam plus 0.9.8\post")

Then set that as your post-processor and see if that helps.

Edited to add: I have written a wiki page about post-processors and updated my ShapeOko post-processor while doing so. I've attached the newest version.

Edited again: Forgot the wiki link: http://www.shapeoko.com/wiki/index.php/ ... Processors
Attachments
shapeoko-post.txt
(616 Bytes) Downloaded 84 times
Ender 3 3D Printer
ShapeOko v3 serial #0004 - upgrade thread
All of my ShapeOko related blog posts

Post Reply