Search Results (Searched for: )

  • MaHa
05 Jul 2026 23:59
Replied by MaHa on topic python API - detect shutdown
I have a component that uses atexit. On my system this works fine to do something when i close linuxcnc. All other attemps failed.



import atexit


def exit():
    some code...
atexit.register(exit)

 
  • rodw
05 Jul 2026 23:45
Another AI leading you up the garden path. An IP address is not required on the Ethercat NIC and without a IP address, there is no ablity to use DNS.

Please read the installing Ethercat sticky and follow what it says. Installing Ethercat becomes easy.
  • rodw
05 Jul 2026 23:38
Replied by rodw on topic Installing ethercat repositories
This has nothing to do with ethercat. 2.9.10  Debs think is available on GitHub releases but you can compile it yourself
  • tommylight
05 Jul 2026 23:33
Replied by tommylight on topic can not jog axis in Gmoccapy
NO, do not touch the wiring if it works with Axis GUI.
Upload the config files here so we can have a look, the working and non working ones.
  • rodw
05 Jul 2026 23:31
Replied by rodw on topic python API - detect shutdown
your script might be able to look for linuxcnc's rtapi thread (ie the servo thread) and exit if its not found.
AI seems to think it's possible.
Code:
import threading def get_running_thread_by_name(thread_name): # threading.enumerate() returns all active/running Thread objects for thread in threading.enumerate(): if thread.name == thread_name: return thread # Returns the specific running Thread object return None # Example usage: target_thread = get_running_thread_by_name("MyWorkerThread") if target_thread: print(f"Thread '{target_thread.name}' is active.") else: print("Thread is not running.")
  • djdelorie
05 Jul 2026 22:34
Replied by djdelorie on topic python API - detect shutdown
I look forward to testing that, but my tiny script does what I need right now - except exit.  I had hoped to find something in the docs about detecting shutdown, but did not.  It seems a strange oversight, unless you assume linuxcnc never exits until the machine shuts off...
 
  • timc
05 Jul 2026 22:09
I too have started a journey through EtherCAT.  I am using an EK1100, EL1008, & EL2008.  Along with a LiChaun CL57E-4A closed loop driver.  I struggled for some time with getting the driver to go into OP mode.  If you are at all familiar with VS Code it can be an invaluable tool when used with Copilot.  I was able to use AI to build my entire configuration.  The problem I had turned out to be how my ethernet card was configured.  The key was to disable DNS on the ethernet card.  DNS does not play well with EtherCAT.  Once I did that everything just worked.  All the configuration file built by using Copilot.  If you find that your driver is getting an error when it tries to change to OP mode.  Try disabling DNS on your network card.

Hope this helps.

 
  • skunkworks
05 Jul 2026 20:13
I have had really good luck with compac/hp 8300 sff (3rd gen i5 4 core)

sam

PS - my plasma is running a rpi 5...

www.youtube.com/shorts/9-y316bJrGk
  • Etced
05 Jul 2026 19:03
Replied by Etced on topic can not jog axis in Gmoccapy
Since I am a linuxcnc newb I hope that the below pic is what you are asking for.
I have CL57Y drivers , currently they are wired to: PU+ PU- DR+ DR- . The MF+ (enabled +) and MF- (enabled -) are not connected. 
If they do need to be connected do I connect them from MF+ to  the +5v and from MF- to GND on the TB2 terminal?
Thanks
  • Fr3nzy
05 Jul 2026 18:52
Replied by Fr3nzy on topic Installing ethercat repositories
This is not good. I need working LinuxCNC EtherCAT master very soon. How can I compile this? Maybe install older version of LinuxCNC?
  • Aciera
05 Jul 2026 18:47
  • Fr3nzy
05 Jul 2026 17:48 - 05 Jul 2026 17:50
Replied by Fr3nzy on topic Installing ethercat repositories
Another error after trying to "sudo apt upgrade".

Error: Failed to fetch www.linuxcnc.org/dists/trixie/2.9-uspace...pace_2.9.9_amd64.deb   404  Not Found [IP: 69.163.143.134 443]
Error: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Why is that happening?

The good thing is that I managed to install the ethercat. But I used another computer with UEFI for the purpose.

Thank you very much in advance!

 
  • ihavenofish
05 Jul 2026 16:17
Replied by ihavenofish on topic Leadshine L7 / L6 servos


Check the encoder resolution in the software. Mine were advertised as 24-bit and there are 23-bit. I have the L8EC drive and ACM2 motors.

Thanks, this is indeed true, they are 23 bit optical. 
  • arcsynapse89
05 Jul 2026 14:28
Sounds like a great little project, keep up the good work and keep us posted.
  • FabLabRacing
Displaying 2836 - 2850 out of 11906 results.
Time to create page: 0.185 seconds
Powered by Kunena Forum