Hello Sebastian,
I'm trying to make a component to add an offset to the X axis of a grinder
to compensate the radius of the wheel and then grind lobes with the shape
previously generated and loaded into that component.
For that I need to do some trigonometric calculations inside the component.
The problem is that, whatever component I try to build, no matter if it's
mine, or if I copy and paste one of the examples on the docs I always get
the same error message. I'm using LinuxCNC 2.5.4 on ubuntu 10.04, I
installed the latest Live CD available on the website.
This is the source code of the example component I created and I can't load:
*component sincos;pin out float sin_;pin out float cos_;pin in float
theta;function _; license "GPL"; // indicates GPL v2 or later;;#include
<rtapi_math.h>FUNCTION(_) { sin_ = sin(theta); cos_ = cos(theta); }*
Then this is the all the way through the console from installing with comp
to the error when loading the component, also you can see that although I
get the message that the component is not loaded, I can still see it loaded
in hal.
*leonardo@leonardo-desktop:~$ sudo comp --install senito.comp [sudo]
password for leonardo: make
KBUILD_EXTRA_SYMBOLS=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/Module.symvers
-C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: se ingresa al directorio «/usr/src/linux-headers-2.6.32-122-rtai»
CC [M] /tmp/tmpOJRVte/senito.o Building modules, stage 2. MODPOST 1
modules CC /tmp/tmpOJRVte/senito.mod.o LD [M]
/tmp/tmpOJRVte/senito.ko make[1]: se sale del directorio
«/usr/src/linux-headers-2.6.32-122-rtai»cp senito.ko
/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/leonardo@leonardo-desktop:~$
halrun halcmd: loadrt senito <stdin>:1: module 'senito' not loaded halcmd:
show pinComponent Pins:Owner Type Dir Value Name 4 float
OUT 0 sincos.0.cos 4 float OUT 0
sincos.0.sin 4 float IN 0 sincos.0.theta*
This happens with every component I try to load compiled with comp. When I
install mine, I also get the following message, I colored with red the line
that worries me about the frame size:
*leonardo@leonardo-desktop:~/Documentos$ sudo comp --install
compensacion-leva.comp [sudo] password for leonardo: make
KBUILD_EXTRA_SYMBOLS=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/Module.symvers
-C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0
modulesmake[1]: se ingresa al directorio
«/usr/src/linux-headers-2.6.32-122-rtai» CC [M]
/tmp/tmpSm7RJd/compensacion-leva.ocompensacion-leva.comp: In function
‘_’:compensacion-leva.comp:24: warning: unused variable
‘m_tang’compensacion-leva.comp:61: warning: the frame size of 28840 bytes
is larger than 2560 bytes Building modules, stage 2. MODPOST 1 modules
CC /tmp/tmpSm7RJd/compensacion-leva.mod.o LD [M]
/tmp/tmpSm7RJd/compensacion-leva.komake[1]: se sale del directorio
«/usr/src/linux-headers-2.6.32-122-rtai» cp compensacion-leva.ko
/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/*
Anyway, apart from that warning when I load it the same happens as with all
the other codes.
Any ideas?
Thanks for the help!
Leonardo.
2014-05-28 0:11 GMT-03:00 Sebastian Kuzminsky <[email protected]>:
> On 05/27/2014 07:39 PM, Leonardo Marsaglia wrote:
> > Hello to all.
> >
> > I'm in the process of compiling a module to do some calculations for
> > machining lobes like the one Andy did a while ago.
> >
> > The problem is that when I inser that module, or another simple module
> that
> > I've made to calculate trig functions, I get the message:
> >
> > <stdin>:1: module 'whatever' not loaded
>
> Trig is already in the LinuxCNC dialect of the G-code language, i don't
> know what you're doing exactly but maybe this is useful to you:
>
>
> http://www.linuxcnc.org/docs/2.6/html/gcode/overview.html#sub:Unary-Operation-Value
>
>
> That said... I don't understand the error you say you're getting.
> Please pastebin the version of linuxcnc you're using, the module source
> code, the commands you type to load your module, the output of halcmd,
> and the output of dmesg.
>
>
> --
> Sebastian Kuzminsky
>
>
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
*Leonardo Marsaglia*.
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users