Robertspark's CNC Setup

More
4 years 8 months ago - 4 years 8 months ago #234101 by robertspark
I thought I could set myself up a thread which I could use as a central repository for my current setup(s) for my LinuxCNC setup.

This also allows me to setup my LinuxCNC setup quickly if I do a fresh start in a short space of time.  I've posted some of my settings on a few threads and I do a search for those when I set up from a clean slate to start again.

These settings may not work for you!   Then again you may learn something like I have following all the countless installs of LinuxCNC via iso / buildbot / RIP installs on Debian Buster, Bullseye and MX21 etc.

My current setup is: Debian Buster LinuxCNC 2.8.2 installed via iso on usb stick.

I have:

* list ~5x5 home built plasma running on 50x50 rails, nema23 4.2A all round with Mod1 R&P with a 3:1 gear driven reducer on X, Y & Y1 axis, Z is via a 1204 ball screw, complete with attached air scribe, laser crosshair and magnetic breakaway that allows for install of a laser diode (not used it yet), scanning camera (not used it yet), and sharpie holder.  Also a 4th axis rotary tube (CHS/SHS) with a 100mm 4 jaw self centring chuck.
* list Denford Orac Lathe, running with 750W servo motor spindle (2:1 reduction drive) and spindle shaft encoder (1000ppr) using 40 position mutifix quick change tool post.  X and Z are 0.001mm/step.
* list Emco / Maximat FB2 3 axis mill with stepper converted rotary table, converted to cnc using nema 34 stepper motors and HTD belt reduction for 0.001mm/step per X,Y and Z axis.
* list 3 axis router, openbuilds Cbeam-XL, with makita rt0700c router, and SuperPID speed controller, with laser diode, and drag-knife attachment

Non Linuxcnc:
* list Creality CR-10S 3D printer
* list Atomstack A10/S10/X7 with M50 laser and Ortur rotary axis

LinuxCNC uses a Mesa 7i76E + THCAD5 for the Plasma and a Mesa 7i92H + 7i76 mill router and lathe (hence 2 x static ports setup in the interfaces file)

I have 2 x Mesa ethernet devices, each on its own ethernet port / network adapter hence they are each setup with their own static IP address.
I share the 2 x Mesa ethernet devices between all of the machines, basically the plasma, mill and router use the 7i76E which drives 5x stepper drives, and the 7i92H+7i76 is used for the lathe driving 2 stepper drives, and a servo for the spindle.  The stepper drives have plugs & leads so I swap between machines from a central control station its a hobby setup and I don't use more than one machine at any one time.

if required, download linuxcnc.iso:

once downloaded copy across to usb disk
find which drive is the usb stick using:
Code:
lsblk
navigate to the downloaded iso and run:
Code:
sudo dd if=linuxcnc-2.8.2-buster.iso of=/dev/sdc bs=1024k status=progress


Once Debian Buster and LinuxCNC is installed via the iso, run:
Code:
sudo apt update
Code:
sudo apt upgrade -y
Code:
sudo apt install -y geany grub-customizer git ethtool python3-opengl gnome-icon-theme curl dpkg-dev xfce4-power-manager
Code:
sudo Thunar

navigate to: /etc/lightdm/ and open lightdm.conf

alternative:
Code:
sudo geany /etc/lightdm/lightdm.conf

scroll down to line ~ 126 and remove the # + add your user name from:

#autologin-user=
#autologin-user-timeout=0


I have intel network cards, hence the following helps to sort latency issues.  I found that ethtool works and the other method did not work for me.  plus I added a 3 sec delay to the process or it did not have effect.  It works for me, your mileage may vary....

navigate to: /etc/network/ and open interfaces

alternative:
Code:
sudo geany /etc/network/interfaces

edit to YOUR needs, below is mine, 99.9% certain this WILL NOT work for you, as your ethernet adapters may have different names and my mesa cards are on different ports + they have custom IP addresses set via the mesa firmware tool.

run the following to list your network adapters names:
Code:
ip link show
Code:
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback auto enp2s0 iface enp2s0 inet static address 10.10.10.1/24 up sleep 3 post-up ethtool -C enp2s0 rx-usecs 0 auto enp3s0 iface enp3s0 inet static address 172.16.0.1/24 up sleep 3 post-up ethtool -C enp3s0 rx-usecs 0

 
Last edit: 4 years 8 months ago by robertspark.
The following user(s) said Thank You: phillc54

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

More
4 years 8 months ago - 4 years 8 months ago #234104 by robertspark
Replied by robertspark on topic Robertspark's CNC Setup
open up grub customizer and shorten the wait time to 1 second, and add in the following
Code:
quiet splash isolcpus=1,3

install the following:
Code:
sudo apt install -y inkscape gimp librecad freecad

download sheetcam:
www.sheetcam.com/downloads
download scanything:
www.sheetcam.com/Scanything/downloads
download lightburn:
lightburnsoftware.com/pages/trial-version-try-before-you-buy

install sheetcam:
Code:
sudo sudo dpkg -i package_file.deb
Last edit: 4 years 8 months ago by robertspark.

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

More
4 years 8 months ago - 4 years 8 months ago #234106 by robertspark
Replied by robertspark on topic Robertspark's CNC Setup
Install RIP for QT PlasmaC
Code:
git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev
Code:
sudo apt install -y dpkg-dev
Code:
cd linuxcnc-dev/debian
Code:
./configure uspace
Code:
cd ..
Code:
dpkg-checkbuilddeps

copy BUILD dependencies list to geany and edit to install adding "sudo apt install -y" and removing numbers / brackets.
Code:
cd linuxcnc-dev/src
Code:
./autogen.sh
Code:
./configure --with-realtime=uspace
Code:
make -j4
Code:
sudo make setuid
Code:
source ../scripts/rip-environment
Code:
runtests
Last edit: 4 years 8 months ago by robertspark.

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

More
4 years 8 months ago - 4 years 8 months ago #234107 by robertspark
Replied by robertspark on topic Robertspark's CNC Setup
Set up NativeCAM for Mill, Router and Lathe (Linuxcnc 2.8.2)  {at this time it won't work on Master given it uses python2}

As taken from here:
forum.linuxcnc.org/nativecam/32891-use-n...eb-package-now#94274

Download the attached script and run it 
Code:
sudo bash /Downloads/ncam_debsetup.txt

As taken from here:
forum.linuxcnc.org/nativecam/39068-nativ...buster-please#182941
Code:
curl -s https://packagecloud.io/install/repositories/FernV/NativeCAM/script.deb.sh | sudo bash
4. Open Applications > System > Synaptic Package Manager
5. Navigate to Settings > Repositories
6. Click on the one for packagecloud.io/FernV/NativeCAM/debian/
7. Change the name from buster to stretch in the Distribution field
8. Click OK (Reload when prompted)
9. Close Synaptic Package Manager (if you don't, you probably can't run the next command)
10. Back at your terminal, run this:
Code:
sudo apt update
Code:
sudo apt upgrade -y
Code:
sudo apt install nativecam
11. Then this:
Code:
ncam
12. You should see a prompt to create a new directory, and if Axis is open it will ask to restart it.
13. You should answer yes to both.
14. NativeCAM should open in a separate window.

To use with your own inifile, it must first be edited. From a normal user terminal, change directory to the one that contains your inifile Using the command : ncam -i(inifilename) -c('mill' | 'plasma' | 'lathe') will automatically create a backup and modify your file. It will also prepare the sub-directory with needed files and links. If you use axis and -t option it will be embedded in a tab


Navigate to the config files:
Code:
cd linuxcnc/config
and run:
Code:
ncam -i(inifilename) -c lathe
Code:
ncam -i(inifilename) -c mill
Code:
ncam -i(inifilename) -c plasma

for tabs, run the following and add in the scripts to the inifile to embed the tabs etc.
Code:
ncam --h
Last edit: 4 years 8 months ago by robertspark.

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

More
More
4 years 8 months ago #234196 by robertspark
Replied by robertspark on topic Robertspark's CNC Setup
backup / clone HDD to second HDD:
Code:
lsblk
CHECK disk order / size!! before running:
Code:
sudo dd if=/dev/sda of=/dev/sdb status=progress
verify disk cloned
Code:
lsblk

save the following & run as update script:
will need to save as update.sh and run:
Code:
chmod 744 update.sh
Code:
#!/usr/bin/env bash sudo apt update sudo apt upgrade -y cd linuxcnc-dev git pull cd src ./autogen.sh ./configure --with-realtime=uspace make -j4 sudo make setuid source ../scripts/rip-environment ​​​​​​​runtests


 
The following user(s) said Thank You: rodw

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

Time to create page: 0.219 seconds
Powered by Kunena Forum