Hello Aram,

I looks like you may not have gotten a reply yet, so I can try to
provide the information I have.

On Sun, 2007-09-30 at 20:33 -0600, [EMAIL PROTECTED] wrote:
> Hi
> Eventually I am in C programming class at PCC and it is first step to  
> learn about how to create new G code in EMC2.  
> http://spot.pcc.edu/~wmorales/
> Class is CS133 introduction to C.
> I think that instructor is smart and here is his resume  
> http://www.waltermorales.net/resume.htm
> 
> I need help to navigate in EMC2 documentation that related to C  
> programming. In other word I need help to I can direct instructor in  
> EMC2 and together to we can find out how it is working. Or at least to  
> we can start it.

There is allot of documentation available for EMC, the problem is in
knowing where or how to look for it. Of course, you need to read and
re-read the manuals. I then usually go to linuxcnc.org and do a keyword
search using the box in the lower left hand corner. Be sure to check the
LinuxCNC radio button. Then I check comments in the C code. The problem
with C code is that there are usually many different versions and to the
inexperienced, like me, its not obvious what's valid. Then, if I still
haven't found an answer, I just guess and and see what happens.
Unfortunately for you, your class situation may not allow you the time
to get used to EMC.

I too, would like to add some new G codes to EMC. A while back I started
to trace where the codes where handled. I believe that the user
interface (such as AXIS) feeds lines of code to the rs274 interpreter,
where each line is parsed and then converted to NML (Neutral Machine
Language) commands. Check out the code here:

http://cvs.linuxcnc.org/lxr/source/src/emc/rs274ngc/

especially:

http://cvs.linuxcnc.org/lxr/source/src/emc/rs274ngc/interp_convert.cc

So, I guess you need to add an entry that recognizes your new code and
then associate it with a list of NML commands. That's as far as I have
gotten in this regard.

> 
> Also, I am tuning my other AC servo motor that is much larger that I  
> brought to show.
> It is SEM type of motor.
... snip

I can't help much here. I just tried different settings until things
worked reasonably well.

Good luck

Kirk Wallace


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to