Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion .gcode versus .s3g
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bottleworks  
View profile  
 More options Nov 18 2012, 3:22 am
From: Bottleworks <bottleworks...@gmail.com>
Date: Sun, 18 Nov 2012 00:22:19 -0800 (PST)
Local: Sun, Nov 18 2012 3:22 am
Subject: Re: .gcode versus .s3g

Hmm...  The LinuxCNC group refuses to use USB because of latency. If I use
USB with a rep1, it can sometime give glitches/short pauses.  Surely there
is something to MBI and a major open source CNC controller, trying to avoid
live commands over USB.  If you want the best results, always print off an
SD card.  It not about speed or throughput, it's about latency and real
time control.  

On Saturday, November 17, 2012 11:53:48 PM UTC-5, ddurant wrote:

> > If you were using ASCII G code you would have to read in a line
> > (some unknown number of bytes), parse out the command (figure
> > out it's a G102), find the parameters, convert them from strings
> > ("12.72") to numbers, then execute them. All that takes a lot of
> > time and memory for a small processor like an Arduino.

> Almost like I said, except for the "takes lots of time and memory." It
> doesn't really take noticeably more memory and it doesn't take that much
> extra time.

> > capable of 115 kiloBITs per second

> Not exactly but close.. 115200 baud is about 11k bytes/second but, anyway,
> lots of RAMPS (which runs an Arduino Mega) people are using 250,000 baud
> since it's less error prone than 115200 baud.. Text gcode tends to be about
> 30 bytes per line so that's well over 350 lines/second at 115200 and over
> 650 lines/second at 200k baud.

> How fast do you think machines consume gcode?

> > a normal speed to read a file off an SD card is 250 kiloBYTEs per
> second, which is ~16x faster

> Er... So? What if it could read a gigabyte per second? Would that be even
> better?

> I'm not arguing against binary or SD cards - I just don't think they're as
> much of an advantage as people seem to think. Once toys like TinyG get
> here, printers using that will probably need binary and/or SD but todays
> fastest machines can be perfectly happy with plain ol' ASCII gcode over
> USB..

> On Saturday, November 17, 2012 10:18:47 PM UTC-5, Michael Cook wrote:

>> I'm not sure that's entirely correct. Bytes is bytes, ASCII or not..

>> True, but binary can be more compact that ASCII, aside from other issues.

>> Everything Jetguy said makes sense to me. There is a document<https://github.com/makerbot/s3g/blob/master/doc/s3gProtocol.md>in the Makerbot GitHub repository that provides the specification for
>> exactly how s3g and x3g files work if anyone is interested.

>> From a quick skim it looks like s3g might be slightly lower level (i.e.
>> one G code may cause multiple s3g commands). The biggest gain I would
>> expect is that since you're using a binary file, you know that you need to
>> execute command 87 with numbers 7, 12, and 42 as parameters.

>> If you were using ASCII G code you would have to read in a line (some
>> unknown number of bytes), parse out the command (figure out it's a G102),
>> find the parameters, convert them from strings ("12.72") to numbers, then
>> execute them. All that takes a lot of time and memory for a small processor
>> like an Arduino. Binary is easier, faster, and more compact. From two
>> ulta-quick spot checks, it looks like s3g is ~20-30% smaller than the ASCII
>> gcode file.

>> As for USB, the Arduino Mega used in a Thing-o-Matic acts as an old
>> fashioned USB to serial adapter, capable of 115 kiloBITs per second.
>> According to a post on the Arduino forum<http://arduino.cc/forum/index.php?topic=66241.0>,
>> a normal speed to read a file off an SD card is 250 kiloBYTEs per second,
>> which is ~16x faster. I don't know if the Replicator boards can transfer
>> data faster over USB.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.