NEWS
emc2_2.3.5 Release
A fresh bugfix release (Changelog). You can get it: as a source package from sourceforge, from Git , or as a precompiled package which works on Ubuntu as described here.
 
Ubuntu 8.04&EMC2 Live CD
The EMC2 team has a custom Live-CD (EU mirror) based on Ubuntu 8.04 with emc 2.3.x included, that will let you try out EMC2 before installing, and it's also the easiest way to install Ubuntu and EMC2 together. (more)
 
emc2_2.3.4-1 Release
A fresh bugfix release (Changelog). You can get it: as a source package from sourceforge , from Git , or as a precompiled package which works on Ubuntu as described here.
 
Site Search
Google
Web LinuxCNC
Login
Home arrow Forum

EMC Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Learning to layout simple code ?
(1 viewing) 1 Guest
Go to bottom
TOPIC: Learning to layout simple code ?
#1809
grey1beard (User)
Senior Boarder
Posts: 66
User Offline Click here to see the profile of this user
Learning to layout simple code ? 1 Month, 1 Week ago Karma: 0  
Having come into EMC from superCam/Turbo cam, I feel I have a basic understanding of Gcode instructions, and having managed to write some simple projects for them and cut successfully,
I'm a bit thwarted by the code I find in the axis.ngc file.
Working in XP, I've now got Taskpad as a text editor, and can start to learn more, as I examine that code to carve "AXIS EMC2".
What has thrown me somewhat, is the "syntax"(?).
I don't know if that's the right word, but what I mean is that although each Gcode is easily found in the manuals, and I'm aware of things like parameters, and such like, but I can't find a reference to "how to write code for EMC2", the nitty gritty of laying it out.
I'm not thinking of writing out huge blocks of code, merely small jobs, or modifications to existing files.
For example, it would be fun to modify the lines of code so that the m/c would carve "AXIS E=MC2".
Can someone point me to any such help ?
Much appreciated,
John
 
Logged Logged  
 
Last Edit: 2010/02/08 15:37 By BigJohnT.
  The administrator has disabled public write access.
#1827
BigJohnT (Admin)
Moderator
Posts: 458
User Offline Click here to see the profile of this user
Re:Learning to layout simple code ? 1 Month ago Karma: 11  
John,

I had to edit your post and replace the superscript 2 with a normal 2 so it would show up.

Just looking at the axis.ngc code and it is a series of lines and is using parameter #3 as the scale for each letter. To add a letter you would have to program each little line of the letter. There are programs to generate letters to cut. The basic syntax is G1 for line and G2 or G3 for arcs and G0 for rapids. Beyond that are many things to explore. The manual is a good place to start, but for complicated parts software to generate the code is much easier. I hope this helps.

John
 
Logged Logged  
 
Last Edit: 2010/02/08 15:53 By BigJohnT.
  The administrator has disabled public write access.
#1836
grey1beard (User)
Senior Boarder
Posts: 66
User Offline Click here to see the profile of this user
Re:Learning to layout simple code ? 1 Month ago Karma: 0  
Thanks John.
I've started the long learning curve, and a book to lean against the coffee pot would help, so I often print manuals out, just to avoid the glare of the laptop.
SWMBO reckons I get square pink eyes
It's the variation in "style" or layout that I need to get into my head, I think.
I've got an overall grasp of it, just trip over the details

John
 
Logged Logged  
  The administrator has disabled public write access.
#1861
BigJohnT (Admin)
Moderator
Posts: 458
User Offline Click here to see the profile of this user
Re:Learning to layout simple code ? 1 Month ago Karma: 11  
I don't understand what you mean by the variation in "style" or layout Can you elaborate a bit on that?

John
 
Logged Logged  
  The administrator has disabled public write access.
#1864
grey1beard (User)
Senior Boarder
Posts: 66
User Offline Click here to see the profile of this user
Re:Learning to layout simple code ? 1 Month ago Karma: 0  
I've started to read the article at www.isd.mel.nist.gov on RS274/NGC language, and noticed their use of the word "dialect" for the Gcode that is used by EMC, so perhaps that's the best I can do at the moment.
But I'll put my thinking cap on, and try and come up with a fuller explanation asap.
John

EDIT It may be just that I started at the deep end, so I've gone back to read the gcode overview in the User manual, and try to get a grip there.
I have spotted one difference - my previous but short experience was with 247D, and I didn't come across the use of <> signs.
But then I didn't come across a lot else, so it may just be a spot of indegestion that's stopping me running before I can walk.
 
Logged Logged  
 
Last Edit: 2010/02/11 07:23 By grey1beard. Reason: afterthoughts
  The administrator has disabled public write access.
#1865
BigJohnT (Admin)
Moderator
Posts: 458
User Offline Click here to see the profile of this user
Re:Learning to layout simple code ? 1 Month ago Karma: 11  
Each flavor of G Code once you get past the basics of G0,1,2,3 usually have some differences, some minor and some are major. The is the reason that post processors have to be tailored to each control software needs. If you study the RS274/NGC and EMC you will most likly find a few things that are different even though EMC is based on RS274/NGC.

John
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
© 2010 LinuxCNC.org
Joomla! is Free Software released under the GNU/GPL License.