Beckhoff ethercat 64 with bit linuxcnc, How to install.

More
02 Mar 2021 12:50 #200778 by V-max
Hi Db

I was able to set the driver to OP with your file and your help, ¿will I be able to do with my xml?........:huh:
Nevertyheless, Ihave still some "Synchronization error",atached dmesg file.(One system start up and one linuxcnc startup with your xml).

Thanks
Attachments:

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

More
02 Mar 2021 13:10 #200782 by db1981
thats nice to hear...
I'm shure that we will get it run with your config after some changes....
As i told before AX5000 are very accurate drives and through this very sensitive at the DC Clock. We can now tune your DC Settings for exactly your configuration... (we spent nights with this some years ago...)
Or make it direct right, and add an minimal change to the realtime handling of linuxcnc... and all clocking problems will went away :-) .
I will write about that later..

Do you have an rip version or an installed linuxcnc package?

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

More
02 Mar 2021 13:55 #200785 by V-max
Hi DB
Its :
LinuxCNC 2.8.0 Debian 10 Buster PREEMPT-RT ISO

from linuxcnc.org/downloads/.

I suppose that this means that is a RIP version.

Thanks

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

More
02 Mar 2021 18:50 #200806 by db1981

In a Run-In-Place build, the LinuxCNC programs are compiled from source and then run directly from within the build directory. Nothing is installed outside the build directory. This is quick and easy, and suitable for rapid iteration of changes. The LinuxCNC test suite runs only in a Run-In-Place build.


do you need to write ../rip-environment before starting of linuxcnc?

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

More
02 Mar 2021 19:45 #200812 by V-max

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

More
02 Mar 2021 21:02 #200824 by db1981
then there are a few steps more to do.... i hope you have a littlebit of debian knowledge.
You have to install an second copy of linuxcnc, because we wan't to make a change in the linuxcnc source code and compile it by our own...
I assume you installed ethercat and the rest like its written at the start of this thread, than many steps are already done.
I'm writing out of my head now, have no linux machine here. maybe there are typos but it wouldn't be to difficult...

1. open an new terminal window
2. get a copy (clone) of the official linuxcnc source
decide a name for the folder for this copy (linuxcnc or linuxcnc28 or linuxcnc_ec ...)
terminal : git clone https:// github.com/LinuxCNC/linuxcnc.git your_foldername
it clones the sourcecode....
3. Change the Branch to 2.8
Terminal : cd your_foldername
Terminal : git checkout 2.8
Branch should change to 2.8
4. configure for debian
Terminal :cd debian
Terminal : ./configure uspace
(should run without errors)
5. configure and prepare for compiling
Terminal: cd ..
Terminal: cd src
Terminal: ./autogen.sh (creates the configure script)
Terminal: ./configure --with-realtime=uspace
(now the script runs, if everything is fine it tells you "Next compile by typing....", if not it tells you the packages which are missing to compile linuxcnc, install them by hand.
6. ONLY if the last step fails :installing missing packages
Terminal: sudo apt-get install PACKAGE_NAME (like configure has told, example libusb_v1234... you can install more packages in an line seperated with space, or do it step by step) after that
Terminal: ./configure --with-realtime=uspace (run the script again to check if everything is ok, continue with the missing packages.
7. Compiling Linuxcnc
Terminal: make -j2
(compiling begins, after finish there should be no error...)
Terminal: sudo make setuid
8. testing the rip Install
Terminal: cd .. (now you back in your_foldername)
Terminal: cd scripts
Terminal: . ./rip-environment (this sets some environment variables, to make it able that linuxcnc can run in this Terminal window from this folder
Terminal: linuxcnc (linuxcnc should start with Version 2.8.1.

Break.... :-)

to start this linuxcnc version you always have to open an terminal go to your_foldername, cd scripts, . ./rip-environment ...
if you close this terminal or start linuxcnc from desktop or another terminal then the installed version from the ISO would start.

By the way, this is mostly for development. In the future if your config works etc. , you can build a package from the rip-Version and install it as normal usable Version, or start with an scripts without the need of manualy doing rip-environment.

In the next steps, we will apply the patch, and install linuxcnc-ethercat for this rip installation.

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

More
03 Mar 2021 12:34 #200895 by V-max
Hi.
Doing:
4. configure for debian
Terminal :cd debian
Terminal : ./configure uspace
(should run without errors)............jejejejejej

I obtain:
Package libxenomai-dev exists, but information about its source package
is not available. This most likely means that you do not have the
right deb-src lines in /etc/apt, or that you need to "apt-get update".

I dont find the repositories.

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

More
03 Mar 2021 13:31 - 03 Mar 2021 13:42 #200900 by db1981
have you already tryed:

sudo apt-get update, after this
sudo apt-get upgrade

if this fails again, skip this step. And do the next step and obeye the output from the other configure step.
Last edit: 03 Mar 2021 13:42 by db1981.

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

More
03 Mar 2021 13:40 #200901 by V-max

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

More
03 Mar 2021 13:42 - 03 Mar 2021 13:43 #200902 by db1981
if this fails again, skip this step. And do the next step and obeye the output from the other configure script.
Last edit: 03 Mar 2021 13:43 by db1981.

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

Time to create page: 0.108 seconds
Powered by Kunena Forum