Chris,
The meta problem is that the error handling from the interpreter is
terrible. Now that I've modified the interpreter to let messages have
content other than fixed strings, I can fix this.
I would like the interpreter to output a message that looks like:
Bad character near line 79
X-0.010+#177 Y3.0+#177 ( Back to Starting Position )
^
(alternatively, use a leader before the marker -- and/or a different marker)
............|
Note that there are three lines to this error: the text, the bad line, and a
line containing the marker "^"
Doing this would raise some issues:
1 -- Some error messages would be more than a single line
2 -- Error messages might be more than 256 characters (the present max line
length)
The hardest part of implementing this is caused by the fact that the
interpreter converts everything to upper case (or is it lower; I forget) and
removes whitespace before it actually parses the line. So to do it right,
the original line would have to be saved and the pre processing undone for
the purpose of error handling.
Would Axis (my present favorite gui -- although I'm not using it yet on my
machine) be able to handle long, multiline error messages?
Ken
[EMAIL PROTECTED]
Mark Kenny Products Company, LLC
55 Main Street Voice: (888)ISO-SEVO (888)476-7386
Newtown, CT 06470 Fax: (203)426-9138
http://www.MarkKenny.com
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chris Radek
Sent: Wednesday, April 18, 2007 10:29 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] bad character in G code file
On Wed, Apr 18, 2007 at 09:25:01AM -0500, Stuart Stevenson wrote:
> Gentlemen,
> I don't know if this could be the problem. The modal rapid command
> G00 is G0 in two places in the program. Both of them are together in
> the section of code that gives the error. One inside the DO loop and
> one just outside after the DO loop. This shouldn't cause the problem
> but lacking any other information this is the difference I see.
> thanks
> Stuart
The file has several lines (I didn't look for all of them) that
attempt to do math, either addition or subtraction, without square
brackets. As Ken L points out, this is not allowed:
X0.510-#177 Y1.5+#177 ( Cut to other side of slot )
...
X0.510-#177 Y1.5+#177 ( Step back out of Corner )
...
X-0.010+#177 Y3.0+#177 ( Back to Starting Position )
Chris
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users