Advanced Search

Search Results (Searched for: )

  • CORBETT
  • CORBETT's Avatar
11 Dec 2024 00:34 - 11 Dec 2024 01:18

Ethercat build from source instructions - Updated for 2024

Category: EtherCAT

For the impatient, here are all the commands after installing the OS with a GUI

"The forum always changes the hyperlinks, so when you do the "git" clone commands, type out the full hyperlink"


sudo apt update
sudo apt dist-upgrade
sudo apt install linux-image-rt-amd64
sudo apt install linux-headers-rt-amd64
sudo reboot
uname -a
dpkg --list | grep linux-image
sudo apt remove --purge linux-image-(THE REST OF THE KERNEL NAME FROM GREP)
sudo apt install git build-essential
git clone github.com/LinuxCNC/linuxcnc.git   linuxcnc-dev
cd linuxcnc-dev
git checkout master
cd debian
./configure uspace no-docs  
cd ..
dpkg-checkbuilddeps  
sudo apt install  "LIST OF DEPS COPIED FROM DPKG-CHECKBUILDDEPS"
dpkg-checkbuilddeps  
cd src
./autogen.sh
./configure --with-realtime=uspace --disable-build-documentation-translation
make
sudo make setuid
. ../scripts/rip-environment
linuxcnc   (this will fail and you run the script below to get LCNC working)
~/linuxcnc-dev/lib/python/qtvcp/designer/install_script
(YOU CAN CHOOSE 1 OR 2 DEPENDING ON IF YOU WANT TO EDIT OR NOT)
cd ~
git clone gitlab.com/etherlab.org/ethercat.git ethercat-master
cd ethercat-master
git checkout stable-1.6
./bootstrap
sudo lspci -v
./configure --sysconfdir=/etc/ --disable-8139too --enable-userlib --enable-generic
make all modules
sudo su
make modules_install install
depmod
exit
ip a
sudo pico /etc/ethercat.conf
   (FIX YOUR MAC ADDRESS AND DEVICE NAME, THEN SAVE AND EXIT)
sudo systemctl enable ethercat.service
sudo systemctl start ethercat.service
sudo systemctl status ethercat.service
sudo chmod 666 /dev/EtherCAT0
ethercat master
sudo pico /etc/udev/rules.d/99-ethercat.rules
   (ADD THIS TO THE ABOVE FILE)
KERNEL=="EtherCAT[0-9]", MODE="0777"
   (THEN SAVE AND EXIT PICO)
sudo udevadm control --reload-rules
cd ..
git clone github.com/linuxcnc-ethercat/linuxcnc-ethercat.git linuxcnc-ethercat
cd linuxcnc-ethercat/src/
sudo pico Makefile
   (Now comment out part of lines.  Just add the “#” where shown below:)
   (At line 83 of the code, comment out “lcec configgen”)

user: lcec_conf lcec_devices #lcec_configgen
   (At line 92 of the code, comment out the whole line)
# cp lcec_configgen $(DESTDIR)/usr/bin/
   (At lines 113 - 121 of the code, comment out the whole line)
#lcec_configgen: configgen/*.go configgen/*/*.go
# (cd configgen ; go build lcec_configgen.go)
# cp configgen/lcec_configgen .
#configgen/devicelist: configgen/devicelist.go
# (cd configgen ; go build devicelist.go)
#configgen/drivers/drivers.go: configgen/devicelist lcec_devices
# (cd configgen ; go generate)
   (THEN SAVE AND EXIT)
cd ..
make clean
make
make install
sudo pico /etc/ld.so.conf
   (ADD THIS TO THE ABOVE “ld.so.conf” FILE)
/usr/local/lib
   (THEN SAVE AND EXIT PICO)
sudo su
ldconfig -v
exit

Then you setup your XML and LCNC config and that's it...
  • CORBETT
  • CORBETT's Avatar
11 Dec 2024 00:28

Ethercat build from source instructions - Updated for 2024

Category: EtherCAT

I did this a little different because of the forum changing the format

 

This browser does not support PDFs. Please download the PDF to view it: Download PDF

  • Zayoo
  • Zayoo
10 Dec 2024 23:54

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

I'm trying to get the gowin toolchain up and running on rpi5. It gives me an error when execute making all.
cnc@raspberrypi:~/riocore/Output/TangNano9K_spi_rpi5/Gateware$ make clean
rm -rf rio.fs rio.json rio_pnr.json rio.tcl abc.history impl
cnc@raspberrypi:~/riocore/Output/TangNano9K_spi_rpi5/Gateware$ make all
gw_sh rio.tcl
/opt/gowin/IDE/bin/gw_sh: 2: Syntax error: Unterminated quoted string
make: *** [Makefile:34: impl/pnr/project.fs] Error 2
cnc@raspberrypi:~/riocore/Output/TangNano9K_spi_rpi5/Gateware$ 
I see you've already mentioned this error. I downloaded and cloned the dev version and it still doesn't work. Any tips...

I see there is another option 'generic_spi'. I will test that on rpi5 too just to get that toolchain working. I don't want to take the TN9 out of the device and program on windows anymore.

 
  • snowgoer540
  • snowgoer540's Avatar
10 Dec 2024 23:08 - 11 Dec 2024 02:36
Replied by snowgoer540 on topic Cut Recovery Not Consistently Triggering

Cut Recovery Not Consistently Triggering

Category: Plasmac

Thanks! I was able to get it to work by connecting my components pause-program output to the qtplasmac.ext_pause (I haven't updated yet to try to the ext_pause_only).

Worth noting that I added the _only pin with you in mind. It’s because the program can also be resumed if that pin you are currently using is triggered again somehow. I figured having the option to only pause no matter how many times the pin is hit may be handy.
  • phillc54
  • phillc54's Avatar
10 Dec 2024 22:50
Replied by phillc54 on topic Cut Recovery Not Consistently Triggering

Cut Recovery Not Consistently Triggering

Category: Plasmac

I do have another question on why it can't go back further than the last M03 (or any M-code)

That is a limitation of the reverse run feature that was added to LinuxCNC a few years back. From memory it is in the trajectory planner.
Displaying 21931 - 21935 out of 21935 results.
Time to create page: 0.411 seconds
Powered by Kunena Forum