Re: [Emc-users] G-Code files needed

2011-01-25 Thread Steve Blackmore
On Sun, 23 Jan 2011 15:00:33 -0800, you wrote:


>I'll start with Emacs, because that's what I'm most familiar with. If that
>goes well, then I will look at vi. If there's demand, I would consider other
>editors as well, but let's not get ahead of ourselves just yet ;-)

Neil - have a look at Cimco edit, it's a Windows program only I think,
but it should give you some ideas of what to aim for.

Steve Blackmore
--

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread Neil Baylis
On Mon, Jan 24, 2011 at 4:11 PM, doug metzler wrote:

> I cast my vote for Notepad++ :-)
>
> http://notepad-plus-plus.org/
>
> DougM
>
>
I happen to have a windows box, with notepad++. I know nothing about it's
plugin architecture, but I'm sure I can find out. Let me take a look.

Neil
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread doug metzler
I cast my vote for Notepad++ :-)

http://notepad-plus-plus.org/

DougM

On Mon, Jan 24, 2011 at 3:54 PM, Ed Nisley  wrote:

> On Sun, 2011-01-23 at 15:00 -0800, Neil Baylis wrote:
> > If there's demand, I would consider other
> > editors as well
>
> I'll put in a vote for KATE, the KDE editor. It already has G-Code
> highlighting, but, lacking EMC2's language features, it's pretty much
> useless.
>
> http://kate-editor.org/
>
> --
> Ed
> http://softsolder.com
>
>
>
>
> --
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread Ed Nisley
On Sun, 2011-01-23 at 15:00 -0800, Neil Baylis wrote:
> If there's demand, I would consider other
> editors as well 

I'll put in a vote for KATE, the KDE editor. It already has G-Code
highlighting, but, lacking EMC2's language features, it's pretty much
useless.

http://kate-editor.org/

-- 
Ed
http://softsolder.com



--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread Neil Baylis
On Mon, Jan 24, 2011 at 9:39 AM, Stephen Wille Padnos wrote:

> I haven't looked at that particular file, but I can point out a few
> things that were "interesting" when making the gedit hilighter.  (I
> didn't do it, but I did help out somewhat in the form of IRC
> conversations with the person who did the actual work)
>
> 1) Whitespace is irrelevant to the G-code parser.  "X12.34" is identical
> to "X1 2. 3 4" in EMC.
>

Yes, I'm thinking about this. I doubt it's worth the effort of parsing
numbers that have embedded spaces. Do people actually do this? Spaces after
the axis letters should be handled though.


> 2) G-code is case insensitive.  I noticed in the lisp snippet that you
> have various keywords in all caps and all lower case, but not mixed
> case, which is also legal in EMC.  So any of "and", "anD", "aNd", "aND",
> "And", "AnD", "ANd", and "AND" are valid G-code.
>

Yes, it's not pretty. I could write a function that would expand a keyword
into all possible combinations of upper and lower case, but that's probably
going too far. Maybe I should just add a version where the first letter is
capitalized. My personal opinion is that if someone writes 'aNd' they
probably didn't intend it, so it would be helpful if it showed up in a
different color. But I don't know much about how G-Code is normally written
and used, so I'm prepared to be corrected.


> 3) My opinion is that the numbers should be colored differently than the
> words they go with.  so in G0X12.34, G should be one color, the two
> numbers "0" and "12.34" should be another color, and "X", being an axis
> word, should be a different color.  I don't know if the code is capable
> of doing that, since the screenshot shows codes and numbers as having
> one style (like "g0")
>

This can be fixed, I'm looking at it. Also, I'm going to recognize line
numbers separately, and make them light grey so they don't stand out so
much, based on the files Jack sent, which have thousands of line numbers and
appear very cluttered. This is exactly what syntax highlighting is supposed
to help with.
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread Stephen Wille Padnos
Neil Baylis wrote:
> On Mon, Jan 24, 2011 at 9:08 AM, Jack Coats  wrote:
>
>
>> http://www.cncgadgets.com/cncfree/Aztec-Mayan%20Calendar%20G-code.zip
>> Has a freely available Aztec/Myan type Calendar.  A bit over 11MBytes I am
>> told.
>>
>> Is that sufficient?
>>
>> I found it by doing a Google search for "aztec calendar g-code" and
>> CNCZone where I found this
>> link a is free forum.
>>
>>  
>>> <>  ... Jack
>>>
>
> Thanks Jack. This file uncovered some deficiencies with my highlighter, so
> back to the drawing board.
>
I haven't looked at that particular file, but I can point out a few 
things that were "interesting" when making the gedit hilighter.  (I 
didn't do it, but I did help out somewhat in the form of IRC 
conversations with the person who did the actual work)

1) Whitespace is irrelevant to the G-code parser.  "X12.34" is identical 
to "X1 2. 3 4" in EMC.
2) G-code is case insensitive.  I noticed in the lisp snippet that you 
have various keywords in all caps and all lower case, but not mixed 
case, which is also legal in EMC.  So any of "and", "anD", "aNd", "aND", 
"And", "AnD", "ANd", and "AND" are valid G-code.
3) My opinion is that the numbers should be colored differently than the 
words they go with.  so in G0X12.34, G should be one color, the two 
numbers "0" and "12.34" should be another color, and "X", being an axis 
word, should be a different color.  I don't know if the code is capable 
of doing that, since the screenshot shows codes and numbers as having 
one style (like "g0")

Thanks for the efforts :)

- Steve


--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread Neil Baylis
On Mon, Jan 24, 2011 at 9:08 AM, Jack Coats  wrote:

> http://www.cncgadgets.com/cncfree/Aztec-Mayan%20Calendar%20G-code.zip
> Has a freely available Aztec/Myan type Calendar.  A bit over 11MBytes I am
> told.
>
> Is that sufficient?
>
> I found it by doing a Google search for "aztec calendar g-code" and
> CNCZone where I found this
> link a is free forum.
>
> ><> ... Jack


Thanks Jack. This file uncovered some deficiencies with my highlighter, so
back to the drawing board.

Neil
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread Neil Baylis
On Mon, Jan 24, 2011 at 8:53 AM, andy pugh  wrote:

> On 24 January 2011 16:29, Neil Baylis  wrote:
> >
> > here<
> http://pixpopuli.blogspot.com/2011/01/syntax-highlighting-for-cnc-g-code.html
> >
>
> I have a feeling that XYZABCUVW and F should possibly be treated as
> "commands" and highlighted specifically. I am not at all sure how you
> would do that, though.
>
>
Does F have a usage other than for feedrate? The code highlights F in that
case.

Neil
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread Jack Coats
http://www.cncgadgets.com/cncfree/Aztec-Mayan%20Calendar%20G-code.zip
Has a freely available Aztec/Myan type Calendar.  A bit over 11MBytes I am told.

Is that sufficient?

I found it by doing a Google search for "aztec calendar g-code" and
CNCZone where I found this
link a is free forum.

><> ... Jack
Whatever you do, work at it with all your heart... Colossians 3:23

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread andy pugh
On 24 January 2011 16:29, Neil Baylis  wrote:
>
> here

I have a feeling that XYZABCUVW and F should possibly be treated as
"commands" and highlighted specifically. I am not at all sure how you
would do that, though.

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-24 Thread Neil Baylis
On Sun, Jan 23, 2011 at 3:00 PM, Neil Baylis  wrote:

> On Sun, Jan 23, 2011 at 12:58 PM, Ed Nisley wrote:
>
>> On Sun, 2011-01-23 at 12:23 -0800, Neil Baylis wrote:
>> > large or complex g-code files
>>
>> The programs I've been writing for my Along the G-Code Way columns in
>> Digital Machinist aren't all that large, but they do exercise some
>> EMC2-specific language features. The more recent ones will probably be
>> the most useful.
>>
>> They're tucked into the ZIP files at:
>>
>> http://www.digitalmachinist.net/downloads
>
>
> Great, thanks Ed, that's a good resource.
>
>
>>
>> Which text editor are you targeting?
>>
>
> I'll start with Emacs, because that's what I'm most familiar with. If that
> goes well, then I will look at vi. If there's demand, I would consider other
> editors as well, but let's not get ahead of ourselves just yet ;-)
>
>
> Neil
>

This is completed, turned out to be easier than I expected. According to the
EMC Wiki, there is already G-Code syntax highlighting for Vim and Gedit, so
I don't think I need bother with any other editors. You can see how the
Emacs version looks
here
.

Neil
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-23 Thread Neil Baylis
On Sun, Jan 23, 2011 at 12:58 PM, Ed Nisley  wrote:

> On Sun, 2011-01-23 at 12:23 -0800, Neil Baylis wrote:
> > large or complex g-code files
>
> The programs I've been writing for my Along the G-Code Way columns in
> Digital Machinist aren't all that large, but they do exercise some
> EMC2-specific language features. The more recent ones will probably be
> the most useful.
>
> They're tucked into the ZIP files at:
>
> http://www.digitalmachinist.net/downloads


Great, thanks Ed, that's a good resource.


>
> Which text editor are you targeting?
>

I'll start with Emacs, because that's what I'm most familiar with. If that
goes well, then I will look at vi. If there's demand, I would consider other
editors as well, but let's not get ahead of ourselves just yet ;-)


Neil
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] G-Code files needed

2011-01-23 Thread Ed Nisley
On Sun, 2011-01-23 at 12:23 -0800, Neil Baylis wrote:
> large or complex g-code files

The programs I've been writing for my Along the G-Code Way columns in
Digital Machinist aren't all that large, but they do exercise some
EMC2-specific language features. The more recent ones will probably be
the most useful.

They're tucked into the ZIP files at:

http://www.digitalmachinist.net/downloads

Which text editor are you targeting?

-- 
Ed
http://softsolder.com



--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] G-Code files needed

2011-01-23 Thread Neil Baylis
If anyone has any large or complex g-code files they can share, please let
me know. I'm working on syntax highlighting for editing g-code, and need
some files to test it with.

Thanks,

Neil
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users