error:Expect command letter

an open source, web based CAM package that works!
Post Reply
oddbear3
Posts: 7
Joined: Sat Oct 03, 2015 11:03 am

error:Expect command letter

Post by oddbear3 » Sat Oct 03, 2015 8:51 pm

Hi
I have made an nc file in makercam and import it to g-code universial sender ,when I push send I get e
Expect command letter error ,have read on this forum that a comma i the g-code could occur this.
Are there someone out there who could tell me how to solve this issue?

Another issue I have is that suddenly the Shapeoko 2 ,all the axis goes in oppsite direction,like they are inverted, but nothing are changed ,what parameters have to be checked,will be thankful for constructiv answers.

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

Re: error:Expect command letter

Post by WillAdams » Sat Oct 03, 2015 8:58 pm

Post the G-code. Usually this is caused by setting your locale to one which uses commas as a decimal separator and the CAM app erroneously doing so.

Direction of movement is controlled by the Invert Bits setting $3 for 0.9: http://www.shapeoko.com/wiki/index.php/Grbl#Invert_Bits

If you have trouble w/ it, dump your settings and post here and we’ll help you puzzle it out.
Shapeoko 3XL #0006 w/ Carbide Compact Router w/0.125″ and ¼″ Carbide 3D precision collets

oddbear3
Posts: 7
Joined: Sat Oct 03, 2015 11:03 am

Re: error:Expect command letter

Post by oddbear3 » Sun Oct 04, 2015 4:19 pm

Settings.png
Settings.png (36.56 KiB) Viewed 4577 times
Here are the settings grbl 0.8

Switch $6= 252 solve invert direction problem

NC file is here
2mm_fresing_ytterkant.nc
(90.97 KiB) Downloaded 227 times

oddbear3
Posts: 7
Joined: Sat Oct 03, 2015 11:03 am

Re: error:Expect command letter

Post by oddbear3 » Sun Oct 04, 2015 4:29 pm

One question more ,when i push "return to zero" it goes to a total different "zero" than I set how could I change that? :?

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

Re: error:Expect command letter

Post by cvoinescu » Sun Oct 04, 2015 7:50 pm

You have some very long lines in that G-code file, and you're using GRBL 0.8. If I recall correctly, GRBL 0.8 has a limit of 50 characters per line, and a couple of lines in your file are longer than that. That can cause various errors (and even spectacularly incorrect cuts); the error you see is certainly one possibility. Manually trim a bunch of decimals from the long lines (using a text editor), or use one of the G-code senders that can shorten numbers for you (see the wiki for a list). Also, if you can, you should upgrade to GRBL 0.9, because it's better in many ways.
Proud owner of ShapeOko #709, eShapeOko #0, and of store.amberspyglass.co.uk

oddbear3
Posts: 7
Joined: Sat Oct 03, 2015 11:03 am

Re: error:Expect command letter

Post by oddbear3 » Mon Oct 05, 2015 12:51 pm

Hi
Could someone tell me how to download and install this program?
This is the solution for my isssue .
Have tested with 3 digits after comma then it work fine.

https://github.com/jhessig/metric-gcode-truncator


Please help,someone

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

Re: error:Expect command letter

Post by WillAdams » Mon Oct 05, 2015 1:11 pm

It's a Python program:

https://github.com/jhessig/metric-gcode ... runcate.py

First, download and install Python: https://www.python.org/

Then, open up a command prompt.

Then navigate to the directory where you've downloaded truncate.py

Then type python truncate.py

You might need to add the filename which you want processed in which case it'd be:

python truncate.py <myfile>.nc

Please note that for metric it's better to keep at least 4 digits, some calculations may require 5 decimals.
Shapeoko 3XL #0006 w/ Carbide Compact Router w/0.125″ and ¼″ Carbide 3D precision collets

oddbear3
Posts: 7
Joined: Sat Oct 03, 2015 11:03 am

Re: error:Expect command letter

Post by oddbear3 » Mon Oct 05, 2015 6:22 pm

Thank you for good advise ,but is there a step by step turtorials to get this work.
My main issue is that when using mm as we prefer here in my country, MakerCam make alot of digits after comma (more than 4) and then I get Expect command letter error
Is there a good solution for change the.nc file before sending in Universial G-code Sender or will this be like this in MakerCam when we use mm???

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

Re: error:Expect command letter

Post by WillAdams » Mon Oct 05, 2015 7:03 pm

We have an FAQ on this: http://www.shapeoko.com/wiki/index.php/FAQ#MakerCAM

I just load the .nc file into SCITE (a text editor which understands Regular Expressions) and edit it there:

Find:

Code: Select all

\(\.\d\d\d\d\d\)\d*
Replace:

Code: Select all

\1
Try a JavaScript instead? http://www.shapeoko.com/forum/viewtopic ... 62&p=12345
Shapeoko 3XL #0006 w/ Carbide Compact Router w/0.125″ and ¼″ Carbide 3D precision collets

oddbear3
Posts: 7
Joined: Sat Oct 03, 2015 11:03 am

Re: error:Expect command letter

Post by oddbear3 » Mon Oct 05, 2015 9:26 pm

THANK YOU Will Adams
Problem solved,and i use java script viewtopic.php?f=33&t=1562&p=12345
quick and easy
Thank you very much I`m very thankful :D

Post Reply