Re: [Emc-developers] Info on writing a component in C

2014-05-13 Thread Marius Liebenberg
Andy, I think one can optimise the use of your timeslot much better. Not sure though. On 2014-05-13 21:17, andy pugh wrote: > On 13 May 2014 20:10, Marius Liebenberg wrote: >> Is there a special way to compile or do I just use gcc or comp? > comp does a good job and puts the executable in the ri

Re: [Emc-developers] Info on writing a component in C

2014-05-13 Thread Marius Liebenberg
Hi Charles If I do that will it include all the required stuff? I am using your i2c that you did for the reprap but I need to make it a bit more generic. I need to break the code up into callable procedures in order to cater for more generic i2c driven components. Some need a lot of setting up a

Re: [Emc-developers] [Emc-users] New Tajectory Planner

2014-05-13 Thread Julian Wingert
Hi Rob, Where can I find the latest Version? I have a larger servo driven mill. I checked out last week arc-blend-rc... and still have some issues with accelaration and following error. The Overspeeding issue prevented me from doing high speed tests, as an overspeed of ~20% would get me into re

Re: [Emc-developers] [Emc-users] New Tajectory Planner

2014-05-13 Thread Robert Ellenberg
Hi Todd, Sam and I fixed the max velocity issues that turned up a few weeks ago, and I haven't seen any issues with it since then. As far as I'm concerned, it's ready to merge into master. I haven't done much with blending over the ABC / UVW axes since I last looked at it. The method I had planne

Re: [Emc-developers] Info on writing a component in C

2014-05-13 Thread W. Martinjak
On 2014-05-13 21:19, Charles Steinkuehler wrote: > If you're starting from a comp file, why not just turn it into a C file: > > comp --preprocess my_file.comp > > ...edit as required and then compile/install: > > comp --install my_file.c > > Details: > http://linuxcnc.org/docs/html/man/man1/comp.1

Re: [Emc-developers] Info on writing a component in C

2014-05-13 Thread andy pugh
On 13 May 2014 20:10, Marius Liebenberg wrote: > Is there a special way to compile or do I just use gcc or comp? comp does a good job and puts the executable in the right place. Just like in "comp" you need to make sure that the code runs quickly to completion every time. No waiting. Except for

Re: [Emc-developers] Info on writing a component in C

2014-05-13 Thread Charles Steinkuehler
If you're starting from a comp file, why not just turn it into a C file: comp --preprocess my_file.comp ...edit as required and then compile/install: comp --install my_file.c Details: http://linuxcnc.org/docs/html/man/man1/comp.1.html On 5/13/2014 2:10 PM, Marius Liebenberg wrote: > Is there a

Re: [Emc-developers] Info on writing a component in C

2014-05-13 Thread Marius Liebenberg
Is there a special way to compile or do I just use gcc or comp? On 2014-05-13 20:35, andy pugh wrote: > On 13 May 2014 19:18, Marius Liebenberg wrote: >> At least what are minimum requirements or a template at best. > Have a look at src/hal/components/supply.c which is about the simplest > of the

Re: [Emc-developers] Info on writing a component in C

2014-05-13 Thread andy pugh
On 13 May 2014 19:52, Marius Liebenberg wrote: > Am I correct in assuming that I need a main, exit, update and export > functions at least? You don't necessarily need a separate "export" function, you can create the pins in main. -- atp If you can't fix it, you don't own it. http://www.ifixit.

Re: [Emc-developers] Info on writing a component in C

2014-05-13 Thread Marius Liebenberg
On 2014-05-13 20:35, andy pugh wrote: > On 13 May 2014 19:18, Marius Liebenberg wrote: >> At least what are minimum requirements or a template at best. > Have a look at src/hal/components/supply.c which is about the simplest > of the components written in raw C. Am I correct in assuming that I ne

Re: [Emc-developers] Info on writing a component in C

2014-05-13 Thread andy pugh
On 13 May 2014 19:18, Marius Liebenberg wrote: > At least what are minimum requirements or a template at best. Have a look at src/hal/components/supply.c which is about the simplest of the components written in raw C. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto

[Emc-developers] Info on writing a component in C

2014-05-13 Thread Marius Liebenberg
I need to write a HAL component in C not making use of "comp". I have to do things that I cannot seem to achieve in the comp framework. Where can I find a guide or documentation on how to do kernel mode like components. At least what are minimum requirements or a template at best. -- Regards /

Re: [Emc-developers] I've stepped in it trying to make my lathe run natively in mm

2014-05-13 Thread Gene Heskett
On Tuesday 13 May 2014 07:49:04 andy pugh did opine And Gene did reply: > On 13 May 2014 07:12, Gene Heskett wrote: > > I went thru the .ini file, changing all distances and vels by > > multiplying them by 25.4, hopefully so the native DRO would show in > > mm's. > > Did you also change [TRAJ] LI

Re: [Emc-developers] I've stepped in it trying to make my lathe run natively in mm

2014-05-13 Thread andy pugh
On 13 May 2014 07:12, Gene Heskett wrote: > I went thru the .ini file, changing all distances and vels by multiplying > them by 25.4, hopefully so the native DRO would show in mm's. Did you also change [TRAJ] LINEAR_UNITS ? -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Ma