Arduino I/O with Linuxcnc

More
14 years 2 months ago #23511 by Lucariel
Thank you for having responded to me quickly .....

I had already read the document on the use of comp
unfortunately I can not perform the procedure for compile
I try to explain how I proceeded.

. I created a new text file on my desktop.
. I copied and pasted the code that you wrote (serialreceive.comp) in my text file
. I renamed the file to "serialreceive.comp."
. at this point the document that you linked to the point 11 writes:
"Place the. Comp file in the source directory " linuxcnc/src/hal/components " and re-run make. Comp files are automatically detected by the build system."
or
"If a. Comp file is a driver for hardware, it may be placed in " linuxcnc/src/hal/components " and will be built Unless LinuxCNC is configured as a userspace simulator."

in my system the path " /linuxcnc/src/hal/components " does not exist

I tried some additional information but I could not understand how.

all sorry for my English is not perfect and thanks in advance
Luke.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23512 by BigJohnT
I have LinuxCNC installed with the LiveCD you have to get the dev by opening up a terminal and

sudo apt-get install linuxcnc-dev

Once that is installed then change directory to where your comp file is and

sudo comp --install serialreceive.comp

Once that is done you can use your comp by loading it in your hal file.

John

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23513 by Lucariel
Thank you once again for having responded to me quickly .....

I forgot to write that the package linuxcnc-dev is already properly installed

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23517 by andypugh
Lucariel wrote:

Thank you once again for having responded to me quickly .....

I forgot to write that the package linuxcnc-dev is already properly installed


The first instructions you described were for compiling in the source tree, ie with a full set of LinuxCNC source files.
You shouldn't need that, though you might do if the .comp file #includes some headers that are not available.

One thing you will need to check is that the component name in the file matches the file name. If you change only the file name, it will not work.

You ideally want to be in the same directory as the .comp file when you issue the sudo comp --install instruction. You will need "sudo" with an installed system.

If that doesn't work, post the last 100 lines or so of the output of the dmesg command.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23666 by Mike_Eitel
Hi

I have a running Modbus-RTU vor AVR,, Bascom implementation.

With 03 / reading registers something like 100ms update at 9600 k should be no problem.

Mike

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23667 by ArcEye

Please Log in or Create an account to join the conversation.

Time to create page: 0.194 seconds
Powered by Kunena Forum