[Emc-users] Converting to EMC2

2010-10-11 Thread Rudy Munguia
Hello,

I was using Mach3 up until this past week when a couple really bad storms 
passed 
through and killed the pc running Mach3. I had already started building an EMC2 
pc because I was really tired of trying to work around windows. So I 
installed 
EMC 2.4(?) on ubuntu 8.04 that I had already burned to cd, the PC is nothing 
special, an old p3-600mhz with 384mb of memory, a built in Parallel-port as 
port 
1, an old ATI 3D rage AGP video card, and a -really- old ( but very reliable ) 
winbond parallel card as port 0. The drivers are xylotex.

To test it out I just used a .tap i had on a usb drive, it was a 14MB surfacing 
routine written line-by-line that took about 30 hours of work just to get 
running correctly on Mach3. EMC2 -really- impressed me, it had no problems with 
the gcode, and because it was about 100% smoother with the steppers, I was able 
to run 40ipm and complete the part in about 6 hours whereas it took me about 70 
on Mach3.

Anyway, I have read that EMC2 adheres really closely to the original NIST 
rs274ngc standard, so I would like to take advantage of subroutines so my files 
aren't so large ( and time consuming). I thought using O, O1, O2, etc I could 
specify subroutines, but EMC2 is reporting that it does not recognize the 
control after the O. Could someone post an example of using O correctly? or 
correct me if O is not how subs are implemented?

Thank you

Rudy



  
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Converting to EMC2

2010-10-11 Thread Chris Radek
On Mon, Oct 11, 2010 at 11:00:30AM -0700, Rudy Munguia wrote:

 Anyway, I have read that EMC2 adheres really closely to the original NIST 
 rs274ngc standard, so I would like to take advantage of subroutines so my 
 files 
 aren't so large ( and time consuming). I thought using O, O1, O2, etc I could 
 specify subroutines, but EMC2 is reporting that it does not recognize the 
 control after the O. Could someone post an example of using O correctly? or 
 correct me if O is not how subs are implemented?

The ngc standard doesn't have things like flow control and
subroutines; EMC2 did start with an ngc implementation long ago, but
it has grown a lot of features that were not in ngc.

That being said, the best place to start for all questions about
EMC2's gcode is the gcode quickref:

http://www.linuxcnc.org/docs/html/gcode.html

From here you'll see O... under flow control codes, and clicking
on the O will send you to the more specific documentation.  You'll
be looking for sub/endsub but there are more.

Chris


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Converting to EMC2

2010-10-11 Thread Igor Chudov
On Mon, Oct 11, 2010 at 1:00 PM, Rudy Munguia
rudymung...@rocketmail.com wrote:
 Hello,

 I was using Mach3 up until this past week when a couple really bad storms 
 passed
 through and killed the pc running Mach3. I had already started building an 
 EMC2
 pc because I was really tired of trying to work around windows. So I 
 installed
 EMC 2.4(?) on ubuntu 8.04 that I had already burned to cd, the PC is nothing
 special, an old p3-600mhz with 384mb of memory, a built in Parallel-port as 
 port
 1, an old ATI 3D rage AGP video card, and a -really- old ( but very reliable )
 winbond parallel card as port 0. The drivers are xylotex.

 To test it out I just used a .tap i had on a usb drive, it was a 14MB 
 surfacing
 routine written line-by-line that took about 30 hours of work just to get
 running correctly on Mach3. EMC2 -really- impressed me, it had no problems 
 with
 the gcode, and because it was about 100% smoother with the steppers, I was 
 able
 to run 40ipm and complete the part in about 6 hours whereas it took me about 
 70
 on Mach3.

 Anyway, I have read that EMC2 adheres really closely to the original NIST
 rs274ngc standard, so I would like to take advantage of subroutines so my 
 files
 aren't so large ( and time consuming). I thought using O, O1, O2, etc I could
 specify subroutines, but EMC2 is reporting that it does not recognize the
 control after the O. Could someone post an example of using O correctly? or
 correct me if O is not how subs are implemented?

Welcome!

Example (not tested)

Ogotozero sub
  G53 G0 X0 Y0 Z0
Ogotozero endsub


to call it you say

Ogotozero call

You can use numbered subs too.

O100 sub
  G53 G0 X0 Y0 Z0
O100 endsub

...

O100 call

I prefer named subs myself. You can save them in files such as
gotozero.ngc in your PROGRAM_PREFIX directory.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Converting to EMC2

2010-10-11 Thread Dave
Welcome to the list!

I think we should form a subgroup on this list called Machateers 
Anonymous...  ;-)

Your reaction to EMC2 is similar to what I discovered about a year ago.

If you haven't found them, there are some very good manuals on using 
EMC2 on the website.   I believe the HTML manuals are the most current.

Also, you can do searches on the website and you will find that it is a 
treasure trove on information.

Dave



On 10/11/2010 2:00 PM, Rudy Munguia wrote:
 Hello,

 I was using Mach3 up until this past week when a couple really bad storms 
 passed
 through and killed the pc running Mach3. I had already started building an 
 EMC2
 pc because I was really tired of trying to work around windows. So I 
 installed
 EMC 2.4(?) on ubuntu 8.04 that I had already burned to cd, the PC is nothing
 special, an old p3-600mhz with 384mb of memory, a built in Parallel-port as 
 port
 1, an old ATI 3D rage AGP video card, and a -really- old ( but very reliable )
 winbond parallel card as port 0. The drivers are xylotex.

 To test it out I just used a .tap i had on a usb drive, it was a 14MB 
 surfacing
 routine written line-by-line that took about 30 hours of work just to get
 running correctly on Mach3. EMC2 -really- impressed me, it had no problems 
 with
 the gcode, and because it was about 100% smoother with the steppers, I was 
 able
 to run 40ipm and complete the part in about 6 hours whereas it took me about 
 70
 on Mach3.

 Anyway, I have read that EMC2 adheres really closely to the original NIST
 rs274ngc standard, so I would like to take advantage of subroutines so my 
 files
 aren't so large ( and time consuming). I thought using O, O1, O2, etc I could
 specify subroutines, but EMC2 is reporting that it does not recognize the
 control after the O. Could someone post an example of using O correctly? or
 correct me if O is not how subs are implemented?

 Thank you

 Rudy




 --
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
 Spend less time writing and  rewriting code and more time creating great
 experiences on the web. Be a part of the beta today.
 http://p.sf.net/sfu/beautyoftheweb
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Converting to EMC2

2010-10-11 Thread Igor Chudov
Rudy, also, if you are just starting out, I recommend going with
Ubuntu 10.04 instead of 8.04. It is much newer., will be supported
longer, etc. Save your files and upgrade or reinstall.

i

On Mon, Oct 11, 2010 at 1:00 PM, Rudy Munguia
rudymung...@rocketmail.com wrote:
 Hello,

 I was using Mach3 up until this past week when a couple really bad storms 
 passed
 through and killed the pc running Mach3. I had already started building an 
 EMC2
 pc because I was really tired of trying to work around windows. So I 
 installed
 EMC 2.4(?) on ubuntu 8.04 that I had already burned to cd, the PC is nothing
 special, an old p3-600mhz with 384mb of memory, a built in Parallel-port as 
 port
 1, an old ATI 3D rage AGP video card, and a -really- old ( but very reliable )
 winbond parallel card as port 0. The drivers are xylotex.

 To test it out I just used a .tap i had on a usb drive, it was a 14MB 
 surfacing
 routine written line-by-line that took about 30 hours of work just to get
 running correctly on Mach3. EMC2 -really- impressed me, it had no problems 
 with
 the gcode, and because it was about 100% smoother with the steppers, I was 
 able
 to run 40ipm and complete the part in about 6 hours whereas it took me about 
 70
 on Mach3.

 Anyway, I have read that EMC2 adheres really closely to the original NIST
 rs274ngc standard, so I would like to take advantage of subroutines so my 
 files
 aren't so large ( and time consuming). I thought using O, O1, O2, etc I could
 specify subroutines, but EMC2 is reporting that it does not recognize the
 control after the O. Could someone post an example of using O correctly? or
 correct me if O is not how subs are implemented?

 Thank you

 Rudy




 --
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
 Spend less time writing and  rewriting code and more time creating great
 experiences on the web. Be a part of the beta today.
 http://p.sf.net/sfu/beautyoftheweb
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Converting to EMC2

2010-10-11 Thread BRIAN GLACKIN
Subroutine examples

http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?SubroutineSample

and

http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Oword
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users