Advanced Search

Search Results (Searched for: )

  • ErwinCNC
  • ErwinCNC
  • COFHAL
  • COFHAL
07 Dec 2024 12:43 - 07 Dec 2024 13:38

LinuxCNC (For lathe) install on Rapberry PI4 - Nov, 2024

Category: Installing LinuxCNC

SPI can be enabled by modifying the config.txt file and enabling the SPI option which is disabled by default.

sudo nano /boot/broadcom/config.txt

# uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
  • ErwinCNC
  • ErwinCNC
07 Dec 2024 12:32
Replied by ErwinCNC on topic Eingänge anschließen 7i96s

Eingänge anschließen 7i96s

Category: Deutsch

Hallo jacgri24,

das Thema ist schon etwas älter aber vielleicht hilft die Antwort trotzdem jemandem. 

Bei meiner Recherche habe ich leider auch wenige Beispiele zur gesamten Verkabelung gefunden und deshalb die beigefügte PDF erstellt. Dazu muss gesagt werden ich bin Maschinenbauer und kein E-Techniker. Falls jemand Vorschläge für Verbesserungen hat oder gar einen Fehler findet gerne schreiben dann kann ich die Grafik entsprechend anpassen. 

Die Darstellung ist bewusst einfach gehalten um auch für Anfänger ohne E-Technik Erfahrung verständlich zu sein. An meiner Maschine kommen Antriebe von JMC (CL Stepper und Servos) zum Einsatz. Für die Verkabelung habe ich ein Kabel von Lapp mit 2x1 und 4x2x0,25 eingesetzt. Den genauen Typ werde ich nachreichen.

Bei Gelegenheit werde ich die Verkabelung der Spindel in einer weiteren Grafik darstellen. Ebenfalls habe ich Etiketten zur Beschriftung der Stecker erstellt. Das macht die Verkabelung etwas einfacher. Diese werden einfach auf Klebeetiketten für Umschläge ausgedruckt und dann mit der Schere passend zugeschnitten. 
Die Idee dazu ist nicht neu es gibt hier im Forum bereits für einige Karten entsprechende Aufkleber jedoch  habe ich für die 7i96s bisher keine Vorlage gefunden. Falls jemand Bedarf hat gerne melden. 

Grüße 
Erwin 
 
  • stephan.kotze
  • stephan.kotze
07 Dec 2024 12:18

LinuxCNC (For lathe) install on Rapberry PI4 - Nov, 2024

Category: Installing LinuxCNC

Doesn't work as the RPi4 image was not created with SPI enable and no way to enable it
Menu-config does not have kernel option
Thus a 7c81 is still useless unless you do a debian install, compile the RT kernel, install LinuxCNC
  • Grotius
  • Grotius's Avatar
07 Dec 2024 12:10
Replied by Grotius on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

Hi Lcvette,

It's indeed a alternative controller, once it finished.
This can take a long time. Some are good coding day's, some are bad coding day's without good progress.

It turned out, modifying lcnc's code to do thing's i would see accomplished is almost impossible.
Best reason is entanglement.
Then just writing new code from scratch is 10x faster to get things done.

There are no goals for me. It's just a project to try out new things wich got my interest's.

It's not the purpose to outsmart lcnc or something like that. Or claiming thing are better etc.

Altrough it is interesting to find out differences in lcnc and this approach.

Like this has bi-directional hal pins and used modern boost interprocess for shared memory.

Today did a mayor bug fix. It turn's out that multiple shared memory regions updated by thread's, would not exchange data
properly. Even when mutex etc. was set.
In the end it worked by using a single shared memory region for all thread's.
  • derekmac
  • derekmac
07 Dec 2024 12:08
Lathe spindle speed PWM control was created by derekmac

Lathe spindle speed PWM control

Category: Turning

Does anybody know of a plug-in (does LinuxCNC have these?) that will control lathe spindle speed.
In theory the calculation is simple - the spindle RPM should be inversely proportional to the tool position X value (absolute so that it allows for both front & rear tool posts) and it would be useful to have an option to stop the spindle during a tool change. There should be a variable to allow for different materials too. Simple enough but how would I go about writing it if nothing already exists?
Thanks in advance
  • piter_iceman
  • piter_iceman
07 Dec 2024 11:59

Error reading pdos / motors are not moving - solved!

Category: EtherCAT

Hello,I followed the instructions provided in this forum thread for setting up EtherCAT with LinuxCNC.The installation and configuration seemed to go well; however, I’m facing an issue where my motors are not moving. Specifically:
  • The values from STATUS word from the drives is not appearing in the LinuxCNC - 0x000000
  • When I start LinuxCNC with
    lathe.ini
    , LinuxCNC loads successfully, but it seems there’s no connection with the drives.
I’ve attached the following files for review:
  1. dmesg.txt: Logs showing EtherCAT activity and errors.
  2. Relevant configuration files (
    hal
    ,
    ini
    ,
    XML
    , pdos, ethercat master, slaves, lcec during linux operation)
I would greatly appreciate it if someone could review the attached files and help identify any mistakes or missing steps that need to be resolved.Thank you in advance for your support!Best regards,Piotr
  • Grotius
  • Grotius's Avatar
07 Dec 2024 11:42
Replied by Grotius on topic Ethercat auto configurator.

Ethercat auto configurator.

Category: EtherCAT

Hi Fakename,

The executable "ethercat_twincat" start up with a default none name "EK1100".
See the mainwindow : node_ethercat = new graphics_node("EK1100",ports);

A better name should be something like : "Ethercat".

seems to show the correct process data objects, so I'm not sure what's going on.
This is nice. That means the digital xml config is parsed succesfully.


Maybe this is not the best way to start figuring out things for you.
Best for you is maybe a minimal example where ethercat is showing your pdo config in gui, without
the usage of node's etc.

Then set some test values, to try to run the motors?
  • Hossein74Majidi
  • Hossein74Majidi
07 Dec 2024 10:30
Replied by Hossein74Majidi on topic Real-Time Kernel with Orange Pi 4 LTS

Real-Time Kernel with Orange Pi 4 LTS

Category: General LinuxCNC Questions

Perhaps something wrong with the kernel config? You could try to install the kernel deb that I uploaded to see if that helps. Otherwise you might need to install more software, just install a complete desktop will be the fastest route to find out.

 
from then I tried so much and still couldn't compiled a real-time image which linuxcnc be installed and its latency shows up.
Could you please guide me after placing patch (patch-6.6.63-rt43) in the /patch/kernel/archive/rockchip64-6.6 and configuring fully preemption option, what changes do I need to do?
 
  • mBender
  • mBender
07 Dec 2024 09:46
Replied by mBender on topic Classic Ladder not working with LinuxCNC Rio

Classic Ladder not working with LinuxCNC Rio

Category: ClassicLadder

It's working now! I am not 100% what really the solution was. I did 3 things:

1. Deactivated Twopass
2. Installed the missing libatk-adaptor package.
3. Added some CL nets to the hal file.

Now the GUI starts and CL starts in Modbus mode.
  • Aciera
  • Aciera's Avatar
07 Dec 2024 09:09 - 07 Dec 2024 09:12
Replied by Aciera on topic Hardware required for Lathe Macros

Hardware required for Lathe Macros

Category: Basic Configuration

There is no particular hardware requirement for Lathe Macros as it runs standard Gcode files with parameters.
1. I usually have a button for start, stop and pause but you can set your cycle start button up so it starts a program if it is stopped or stops it if it is running.
2. Not necessarily. If you want to use feed/rev (G95) you need software control of the spindle speed but you also need spindle feedback (ie an encoder) for that.
3. Not necessarily, you could just run on soft limits, although depending on the size of the motors and the robustness of your hardware they might be a very cheap way of avoiding expensive mishaps.
4. Depends on you personal preference really. Maybe have a look at some commercial panels for ideas. Most basic decision to make is whether you trust screen buttons to control machine motion (eg cycle start/stop, jogging, spindle on/off)

Note: you will need spindle feedback (ie encoder A/B and index) for threading.
  • MirkoCNC
  • MirkoCNC
07 Dec 2024 08:51

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

Category: Computers and Hardware

One step forward and one backward:


The problem with the rio-generator has been solved in def generate(self, output_path=None, preview=False):

....
else:
os.system(f"{sys.executable} {generator_path} -p {self.config_file} {output_path}") # modified line
# old line os.system(f"{generator_path} {self.config_file} {output_path}")
self.check_status()
except Exception as error:
print(f"ERROR generating output: {error}")


There is another problem left in def check_status(self):

The compile button is not enabled after generating:

# checking generated config
path_config_json = os.path.join("Output", config_name, ".config.json")
if os.path.isfile(path_config_json):
ret = os.system(f"diff {self.config_file} {path_config_json} >/dev/null")
else:
ret = 1
if ret == 0:
self.info_generated.setChecked(True)
self.button_generate.setStyleSheet("background-color: green;")
self.button_compile.setEnabled(True)
else:
self.info_generated.setChecked(False)
self.button_generate.setStyleSheet("background-color: red;")
self.button_compile.setEnabled(False)

The problem seems to be in two paths that are compared. I am going to solve it next.
  • Aciera
  • Aciera's Avatar
07 Dec 2024 08:51
Replied by Aciera on topic qtvismach, a axis toolpath

qtvismach, a axis toolpath

Category: Qtvcp

Another thing I want is to re-build the dimensions of the workpiece.


Have a look at how the tool cylinder is created and updated.
  • Aciera
  • Aciera's Avatar
07 Dec 2024 08:40

ASD B3 0121 L Loses connection with computer when Servo On

Category: Driver Boards

try:
- different USB cable
- different USB port
- adding a ferrite bead to the USB cable
  • MirkoCNC
  • MirkoCNC
07 Dec 2024 08:40

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

Category: Computers and Hardware

Thanks for pointing out. I will keep this in mind.

Though, I am still having a problem with the toolchain on the Raspberry Pi5 running Linux on it:.

Pressing the compile button:

rm -rf rio.fs rio.json rio_pnr.json rio.tcl abc.history impl gw_sh rio.tcl

Gives me following error:

/home/cnc-winder/opt/gowin/IDE/bin/gw_sh: 2: Syntax error: Unterminated quoted string
make: *** [Makefile:34: impl/pnr/project.fs] Error 2

Any idea what could cause this?
Displaying 20461 - 20475 out of 22505 results.
Time to create page: 0.389 seconds
Powered by Kunena Forum