On Dec 2, 2007 9:08 PM, Julian <
thepurlieu@xxxxxxxxx> wrote:
Frank,
It looks like the RS274x manual has sloppy code in it. The G04 code
in line 1 is supposed to end with a "*" at the end of the line to signal
it is finished (see section on G-codes in the manual). gerbv keeps
reading until it finds a *, which made it advance past the FS statement
in the next line. If you add a final "*" to line 1, it should work.
Maybe we'll look into adding a fix for this problem and let a
carriage return also work to finish out a G code, just to make sure we
handle this type of malformed code. Thanks for pointing this problem
out.
Cheers,
Julian
You may want to check before allowing a CR/LF to end a command. I recall seeing gerber files many years ago that used fixed length records (80 char or 255 char lines). Hitting a CR/LF before a command was finished wold happen all the time - and be legal syntax.
Joe T