What to do with the last lines of GCode.

Talk about Cura software here (http://wiki.ultimaker.com/Cura)
Post Reply
User avatar
Eaglezsoar
ULTIMATE 3D JEDI
Posts: 7159
Joined: Sun Apr 01, 2012 5:26 pm

What to do with the last lines of GCode.

Post by Eaglezsoar »

Those of you who are using the latest RC versions of Cura, how do you handle the last lines of gibberish that Cura puts on the end of the GCode?
I tried to manually delete it and copy to an SD card but then I get a read error. It seems the last line is not compatible with Repetier.
I also tried the sketch that someone created that was supposed to delete the last line but Cura would not open with that patch in place.
I really want to use Cura but how to do it with the .091 version of Repetier. I can't believe that I am the only one effected by that last line of "code"
that Cura places on the end of the Gcode and I believe that there must be a solution to the problem. Can anyone offer any suggestions to get Cura to stop creating
that last line of trash it appends to the GCode?
User avatar
Tinyhead
Printmaster!
Posts: 439
Joined: Thu Jan 23, 2014 11:44 pm
Location: Ontario, Canada

Re: What to do with the last lines of GCode.

Post by Tinyhead »

Could you run a newer version of Repetier? Mine seems to work fine even with that huge line of crap.
User avatar
Eaglezsoar
ULTIMATE 3D JEDI
Posts: 7159
Joined: Sun Apr 01, 2012 5:26 pm

Re: What to do with the last lines of GCode.

Post by Eaglezsoar »

Tinyhead wrote:Could you run a newer version of Repetier? Mine seems to work fine even with that huge line of crap.
It is the latest version of Repetier running on an Orion.
Cosmic
Plasticator
Posts: 11
Joined: Thu Feb 20, 2014 2:32 pm

Re: What to do with the last lines of GCode.

Post by Cosmic »

I never noticed it and never had a problem so far (14.02 RC5). It Looks like an uninitialized string to me.
If you have a problem running it , I just would delete this section with notepad. For sure this is not suppose to happen.
User avatar
Eaglezsoar
ULTIMATE 3D JEDI
Posts: 7159
Joined: Sun Apr 01, 2012 5:26 pm

Re: What to do with the last lines of GCode.

Post by Eaglezsoar »

Cosmic wrote:I never noticed it and never had a problem so far (14.02 RC5). It Looks like an uninitialized string to me.
If you have a problem running it , I just would delete this section with notepad. For sure this is not suppose to happen.
I do have a problem loading it and if I delete it, I get a read error. I will have to figure out something to get it too work.
geneb
ULTIMATE 3D JEDI
Posts: 5358
Joined: Mon Oct 15, 2012 12:47 pm
Location: Graham, WA
Contact:

Re: What to do with the last lines of GCode.

Post by geneb »

Eagle, do me a favor - go through your process to remove that last line and the post a screen shot that shows the error you're getting.

tnx!

g.
Delta Power!
Defeat the Cartesian Agenda!
http://www.f15sim.com - 80-0007, The only one of its kind.
http://geneb.simpits.org - Technical and Simulator Projects
User avatar
Eaglezsoar
ULTIMATE 3D JEDI
Posts: 7159
Joined: Sun Apr 01, 2012 5:26 pm

Re: What to do with the last lines of GCode.

Post by Eaglezsoar »

geneb wrote:Eagle, do me a favor - go through your process to remove that last line and the post a screen shot that shows the error you're getting.

tnx!

g.
Gene, all I do is open the GCode in Notepad and remove the last line. I copy the GCode to an SD card and get a read error every time
the Orion tries to read it.
I think that it is possible that a CRC is generated and by removing the last line, the CRC is hosed.

I have not tried to leave the line in place but after rereading the thread at http://forum.seemecnc.com/viewtopic.php?t=4119&p=30340
I see that editing the end GCode it is possible to keep the effector from crashing into the glass. I will try that next unless you have a method
that works.
geneb
ULTIMATE 3D JEDI
Posts: 5358
Joined: Mon Oct 15, 2012 12:47 pm
Location: Graham, WA
Contact:

Re: What to do with the last lines of GCode.

Post by geneb »

Eaglezsoar wrote:
geneb wrote:Eagle, do me a favor - go through your process to remove that last line and the post a screen shot that shows the error you're getting.

tnx!

g.
Gene, all I do is open the GCode in Notepad and remove the last line. I copy the GCode to an SD card and get a read error every time
the Orion tries to read it.
I think that it is possible that a CRC is generated and by removing the last line, the CRC is hosed.
There's no CRC created for the file. I suspect Notepad is doing something fun like changing the Unix-style line endings from LF to the CR/LF style that Windows uses and the firmware doesn't know what's going on.

g.
Delta Power!
Defeat the Cartesian Agenda!
http://www.f15sim.com - 80-0007, The only one of its kind.
http://geneb.simpits.org - Technical and Simulator Projects
User avatar
mhackney
ULTIMATE 3D JEDI
Posts: 5391
Joined: Mon Mar 26, 2012 4:15 pm
Location: MA, USA
Contact:

Re: What to do with the last lines of GCode.

Post by mhackney »

I agree Gene and talked to Eagle a bit about this on Saturday when I visited.

Eagle, can you post the before and after gcode files from Cura please. I'm happy to take a look at them and see what's up.

That last line is a comment:

;CURA_PROFILE_STRING:eNrtV01v20YQvRJCf8QeUzRWSEqK4xi8JLV9iYMAdlHHF2JFDqWtSS6xXFqWBP33vl1+iJKlNGl6CRofZPFxdj7fzKxSviQVzknM5jpwh76z4Gka6rmIHnIqy8AbThxFWvFIC5mHlPNpSsGtqsgpZSriMLUKtgfc4WsnEdARU14KvQwmrpPL1SqlsBQrwvuxUyiR67AsiOLAnzSPmrKCFNeVosAfHUD9wH0Ojg6B4w6cUryj+I3rlFVRSKWDjzInp0i5TqTKQh7PqUSENdzIhHHF05CetKrsu3dSz52FKCjUckEquORpST0gfJRplVHgTRwpVwh4LiiNGzEkhWcEn2KB/xrHveGp9xw2YT4DR4fAcR9MUrkIPNcduv16NTneh3kmq1wH4z5mY21eeK93y56JPMTDI6XBZFdTJLOpyGc1I3ZPiGwneXDBd6ZSa5nt0MV35PQvisAHkT8YKUc+kkp5YT0CgGzWtptoPDCq0VOTr4UdkVvmdcSKpEyt7w1JBWozcRLe8jhuiPwgUOtU5IRwbPgNNONFMIJD9VMbUkr5TM+NG3hllCUVjHYtVBtofHLd7VOY8SeLdG4lQEFMEKYB58TRUSLRDWfqFtOy6HdcHXuN2HibfJkMtMS1eK16Cz4tQZ1S8zwybXja4as+bOQLoXhqmrX2YqpE1k+PDwbwBAnhaiZyZNQ+WYGy4JGhgzdsZKa8pJ1yj3q4ObIQMZJp3LE4mpZUwiPa48jey/5JH1l4CudSKYGahlVuGW6m2BKNydtEHReZdh3al4F/sqA8nApdHhIAs82Ee0TQWuhobsKuxYq0Ql6QLNBxFrxIC28wbEkekYkhfApOvD1oCegXlEHp4SySMQXnN6mIKGZrFBN8zWjDuH7L1jFfbsynBrA2nN4Mzt/xUkSsJK3hRvmWfTCEZzUncSTtTfkN+xORQ2a9O+o37BKkeWvNddMbqj+ZQcqMHbxrRm1t9LKZPQy5iuuD9Syqp8gm60GL2vasdyqSpe6fMs+bwZXvsebvHFNOIaxHnlZUDq7O3O4Nn6IXKk2skHAT1UTYg2vPPW0FbCLZQug503NiaEImkwTa37A7l312jXb0Dbt79ZlpydCNjPK4RKuVVujebVwwQvfPRc78Rg8ELzq/2LkiFIGVMtELrrbuGQWJkrl+lVKiX63MnBtceezewzxll2uMBrShHRObxqhxu11PLJaLnHmTLLOWewa3llekpD1kR24M4tSDypi5xAZgF6O9E40gG2UZksPMNGIIL3r4diOMz7jIral1f1hvHKSs5fNFHrOr9/hqKjVmNwcM9Nwy9AXHla3btTd2jx6wcjHDru8dYS9EwpayYnN4w4T+FUF57Cv+UEJkHX29wy1EdnGC6Eau+w+H7QqsSdcynTMMEfiHUhIz4x0arUR9MXpp2AGrhJkI6mRkqmHLDzaVuLZYpvyG1QIfJuzuxAfzzMderju2VkVjkiPjrUedN/RIOcukUbvthi8GdaxTXsJb66jZW0yUTFa69X3Bl4PrN+PjSktNBe5lZd2XZ8d9ONjsjm1wf29U/g/m4/m1h1zdrA/eb0GBP3Jcyex5FIvHsekBNATGh+mPniwzO9SoM624fnaH/qKqg2rO2K13SJP/r1S53+/UD7JKtlvgUDcfWQO3R2bZ+c3CXEaMFXPSxwBo5+n3rA7PPbw6PPc/3R3W1sn68K+SzeDW/aqgE6FK/SOFvVt4jBSMUct9sycyzB4+w07I2Yf3v7MyUkQ5COqdsk+NzHA4NHvWP7Job91v3LXmjPdzP//cz9+zn5sfl/1fNB24vRTWv3t3hCzSk1CE+RfRMCofocF2+kVDwW791/0/Jb1Ac9j4okopm82WrSbXtqZAOvQlW8xxoGs2O+WzKtWiSLuOVeWwae+aZqPX7HLium4L3q5bwY0RuFvjt2n4tGGf7RdcRu7tl9XmWacbdXva/gYFlFMa

and is used to store the configuration used to slice the file so Cura can restore the configuration if you need to later. However, even though it is commented, there may be characters in there that cause problems with Repetier depending on the STL and slicing config. So far, this has not caused a problem for me (Mac though) so I'd like to see the gcode that is causing you problems.

thanks,
Michael

Sublime Layers - my blog on Musings and Experiments in 3D Printing Technology and Art

Start Here:
A Strategy for Successful (and Great) Prints

Strategies for Resolving Print Artifacts

The Eclectic Angler
User avatar
Eaglezsoar
ULTIMATE 3D JEDI
Posts: 7159
Joined: Sun Apr 01, 2012 5:26 pm

Re: What to do with the last lines of GCode.

Post by Eaglezsoar »

Will do Michael but it may be a couple of days. Gene's idea of using Notepad ++ to remove that last line will probably work.
His suggestion makes sense, Notepad is probably putting in a linefeed or something that causes Repetier to generate a read error.
I can solve all this by using Repetier Host but I am trying to use the SD card only on the Orion. Someone also found out that the
SD cards supplied by the makers of the LCD can also generate read errors and his all stopped when he upgraded to a higher class
card. He went to a class 10 card and all his problems went away. When I look at the supplied card there is no class rating on it.
Post Reply

Return to “Cura”