Advanced Search

Search Results (Searched for: )

  • Muecke
  • Muecke's Avatar
31 May 2026 18:16

LinuxCNC 2.9 / Debian 12 RT – EtherCAT Master Setup für 750W Servo gesucht

Category: Deutsch

Hallo zusammen,

ich versuche aktuell einen StepperOnline 750W EtherCAT AC-Servomotor (17-bit Absolutencoder, ohne Bremse) in mein LinuxCNC System zu integrieren.

Der Motor ist bereits mechanisch und elektrisch angeschlossen (Netzfilter, Treiber, Motor + Encoder), soweit ist die Hardware grundsätzlich lauffähig.

Mein Ziel ist es, LinuxCNC als EtherCAT Master einzurichten, um zunächst den einzelnen Motor in Betrieb zu nehmen und später mehrere Achsen meiner Maschine schrittweise auf EtherCAT umzubauen.

Ich hatte bereits einen ersten Installationsversuch mit EtherCAT (vermutlich IgH oder SOEM / LinuxCNC Integration), dabei traten jedoch wiederholt Fehler auf. Nach meiner (mehr GPT) Analyse waren vermutlich noch Reste einer früheren (nicht sauberen) Installation bzw. evtl. Raspberry-Pi-bezogene Pakete oder Konfigurationen im System vorhanden, die Konflikte verursacht haben könnten. Diese habe ich inzwischen entfernt bzw. bereinigt, mit GPT :-).

Aktuell möchte ich deshalb bewusst mit einer sauberen und nachvollziehbaren Schritt-für-Schritt Anleitung neu beginnen, da ich vermeiden möchte, erneut eine fehlerhafte Konfiguration aufzubauen, die ich nicht verstehe.

Ziel ist es zunächst:
- einen einzelnen EtherCAT Servo in LinuxCNC zu betreiben
- einfache Bewegungen und Tests durchzuführen
- später schrittweise weitere Motoren der Maschine (Masacard/Alt-System) auf EtherCAT umzubauen
- langfristig die gesamte Anlage auf EtherCAT umzustellen

---

## Systeminformationen

Distribution:
Debian GNU/Linux 12 (bookworm)

Kernel:
6.1.0-48-rt-amd64 (PREEMPT_RT)

LinuxCNC:
2.9.8 (linuxcnc-uspace)

CPU:
Intel Core i3-6100 @ 3.70 GHz (4 Threads)

RAM:
8 GB

Storage:
Toshiba SSD ~120 GB (ext4)

Network:
- enp1s0: Realtek RTL8111/8168/8411 (r8168 driver) – DOWN
- enp2s0: Realtek RTL8111/8168/8411 (r8168 driver) – UP (100 Mbit/s)

Kernel Modules:
r8168 driver is used for both NICs

PCI:
Intel H110 chipset system

---

## Kernel / RT Status

PREEMPT_RT kernel is active and confirmed.

---

## Frage

Ich suche eine saubere, empfohlene Vorgehensweise zur Installation und Konfiguration von EtherCAT (z. B. IgH EtherCAT Master oder alternative Lösung) in Kombination mit LinuxCNC 2.9.x auf Debian 12 RT.

Wichtig ist mir vor allem:
- stabile Echtzeitfähigkeit
- keine “versteckten” alten Pakete oder Konflikte
- möglichst nachvollziehbare Schritt-für-Schritt Installation
- Empfehlung für Netzwerkinterface (Realtek vs. alternative NIC falls nötig)

Vielen Dank für jede Hilfe!
Mücke
  • PedPEx
  • PedPEx
31 May 2026 17:51 - 31 May 2026 18:04
Replied by PedPEx on topic LCEC creating Danfoss VFD config

LCEC creating Danfoss VFD config

Category: EtherCAT

Hello guys :DAfter a lot of troubleshooting - and even trying out another motor driver (Festo CMMT-AS), which I found out wayyyyy too late was not suited for the planned use case - I ended up settling back on the Danfoss VFD. I finally got it working after over a year of trying! In case anybody wants to use a Danfoss VFD like this in their CNC mill or a similar setup, they are really cheap on eBay right now. This one is even equipped with the required EtherCAT communication module (MCA124 - quite hard to find). eBay link: www.ebay.de/itm/327118691814The files can also be found in my fork of the linuxcnc-ethercat project. I'm not sure whether I will make a pull request for these implementations, due to vibe-coding reasons. GitHub repo: github.com/PedPEx/linuxcnc-ethercatA detailed 'manual' is attached in the form of a Markdown file. You will just have to manually remove the .txt file extension.In case you need further details or anything similar, just let me know :)
  • Aciera
  • Aciera's Avatar
31 May 2026 17:49 - 31 May 2026 19:31
  • RMJ fabrication
  • RMJ fabrication
31 May 2026 16:38

Ethernet connection to Mesa 7i76e disconnecting on its own after one minute

Category: Plasmac

These are my HAL and INI files  

File Attachment:

File Name: my_LinuxCN...hine.hal
File Size:11 KB
  

File Attachment:

File Name: my_LinuxCN...hine.ini
File Size:5 KB

I can ping 10.10.10.10 but every time it goes over 0.500 ms it throws the error 
These are my W2 and W3 jumpers
This is power to the board 
This is the power supply to the board 
And I also have a Meanwell MDR 60 24 for testing its just a really old one. 
  • Aciera
  • Aciera's Avatar
31 May 2026 16:35
Replied by Aciera on topic How to remove automatic g54 after M2/M30 ?

How to remove automatic g54 after M2/M30 ?

Category: General LinuxCNC Questions

+1

I have wished for a possibility to op-out of this automatic resetting to G54 on M2/M30 several times in the past.
  • PCW
  • PCW's Avatar
31 May 2026 15:56

Differential encoder hard crashes the PC MESA7i77

Category: Driver Boards

This is why I suggested using an external 5V supply
(shorting an external supply would not affect the PC)
  • PedPEx
  • PedPEx
31 May 2026 14:52

Retrofitting an old industrial CNC mill with EtherCAT components - MAHO MH400E

Category: EtherCAT

Hello guys,

I did some further testing of the modified EL5021 terminal. As expected, when a 120-ohm resistor is added to each channel, it is indeed able to read 1V_pp sensors again. I confirmed this with a Baumer OG73 S SN1024 (SEW branded). So, it was time to get the EL5021 integrated into LinuxCNC. For this, I used my Claude subscription and pretty quickly got a working driver for the encoder input terminal. As far as I can tell, there are no bugs in the driver. Unlike the EL5101 and EP5101, the EL5021 doesn't have the option to reset its counter with every C pulse (at least with the revision that I have - HW: 08; SW: 05). I also found out that Beckhoff seems to have made a major revision change with the newer terminals. A lot of the documented Data Objects from the Beckhoff Information System are not implemented in my terminal.

The only thing left to do is to write a component that takes care of the Beckhoff Latch-C and Latch-C-valid signals and makes them as easy as possible to use for the standard homing procedure of LinuxCNC.

Wish you all a nice Sunday :)
  • pesto
  • pesto
31 May 2026 14:42

LinuxCNC LSP — smart editing + live error-checking for HAL, INI and G-code (VS C

Category: Show Your Stuff

**TL;DR:** I built a free, open-source (GPL) language server that gives you autocomplete, hover docs, go-to-definition and *live error checking* for your `.hal`, `.ini` and `.ngc` files — so config mistakes show up as red squiggles in your editor instead of as a cryptic failure when you start LinuxCNC.

Marketplace: marketplace.visualstudio.com/items?itemN...erStolz.linuxcnc-lsp

We all know the drill: you tweak a HAL file, start the machine, and it dies with an error about a pin that doesn't exist — because you typed `parport.0.pin-02-ot` instead of `-out`. Or a signal silently does nothing because nothing actually writes to it. This catches that stuff *while you type.*

**What it catches for you (HAL):**
- Unknown components and **misspelled pin/parameter names** (it knows 214 HAL components, 2,153 pins, 589 parameters)
- **Signals with no writer, no reader, or two writers** fighting over one signal
- **Type conflicts** — linking a `bit` pin to a `float` signal
- **`setp` on a read-only parameter**
- It actually understands `count=`, `names=`, and array modparams like `num_chan=`, so multi-channel components resolve correctly — and it matches halcompile's prefix rules (e.g. `loadrt hal_parport` → `parport.0.*`)

**For INI files:**
- Unknown keys, duplicate/conflicting keys, values that don't match the expected type or enum
- Hover any key for docs; homing keys link straight to the LinuxCNC manual
- Cross-file aware: HAL files that reference `[SECTION]KEY` get checked against the actual INI

**For G-code (.ngc/.nc/.tap):**
- Hover docs for ~229 G/M-words, autocomplete for codes and parameters, O-word subroutine support

Plus the usual editor niceties everywhere: autocomplete, go-to-definition, find-all-references, rename-across-files, document outline, and quick-fixes (e.g. "add the missing INI key").

**A couple of things I think you will appreciate:**
- It's **pure static analysis** — no running LinuxCNC instance, no special setup. Just open your config folder.
- I validated it against **all 247 stock LinuxCNC configs**. That audit even turned up a handful of real conflicting-key bugs in the shipped configs.
- It's a standard **LSP**, so while the easy path is the VS Code extension, it'll plug into Neovim/Emacs/etc. too.
- **GPL-2.0**, source on GitHub: github.com/PeterStolz/linuxcnc-lsp — issues and PRs very welcome.

It's early (v0.1.x), so if it flags something it shouldn't, or misses something it should, please tell me — bug reports against your real configs are exactly what makes it better.
  • tommylight
  • tommylight's Avatar
31 May 2026 14:10
Replied by tommylight on topic Differential encoder hard crashes the PC MESA7i77

Differential encoder hard crashes the PC MESA7i77

Category: Driver Boards

I suspect the MPG has a defective output and causing a short to 5V supply, that in turn causes the 7i77 to error out. Or it draws to much current maybe?
  • zz912
  • zz912's Avatar
31 May 2026 13:47
Replied by zz912 on topic How to remove automatic g54 after M2/M30 ?

How to remove automatic g54 after M2/M30 ?

Category: General LinuxCNC Questions

Thank you for help.

I preffer:
if (INI configuration "AUTOMATIC_G54") == TRUE
{ settings->origin_index = 1;
settings->parameters[5220] = 1.0; }

Default value AUTOMATIC_G54 = TRUE
 
  • tommylight
  • tommylight's Avatar
31 May 2026 13:19
Replied by tommylight on topic Brilliant Bambu Lab

Brilliant Bambu Lab

Category: Off Topic and Test Posts

Live execution of a Bambu 3D printer!!!
  • rodw
  • rodw's Avatar
31 May 2026 12:25

How to remove automatic g54 after M2/M30 ?

Category: General LinuxCNC Questions

Actually, A neat way of dealing with this could be adding a new parameter (5391?) and modify the code so that if it was set to true, the original 2.7 buggy behaivour was restored eg
if settings->parameters[5391] == 0.0{
    settings->origin_index = 1;
    settings->parameters[5220] = 1.0;
}

Be worth playing with that.

 
  • rodw
  • rodw's Avatar
31 May 2026 11:42 - 31 May 2026 11:44

How to remove automatic g54 after M2/M30 ?

Category: General LinuxCNC Questions

Pretty sure you would just comment out these two lines
github.com/LinuxCNC/linuxcnc/blob/master...erp_convert.cc#L5177
// settings->origin_index = 1;
// settings->parameters[5220] = 1.0;

1 = G54 so this is where the reset is happening
parameters like 5220 are described here linuxcnc.org/docs/html/gcode/overview.ht...:numbered-parameters
  • rodw
  • rodw's Avatar
31 May 2026 11:30

How to remove automatic g54 after M2/M30 ?

Category: General LinuxCNC Questions

Seems this G54 reset occurs in Interp::convert_stop()
in interp_convert.cc
github.com/LinuxCNC/linuxcnc/blob/master...erp_convert.cc#L5052
edit at your own risk :)

Note this is where Gcode is converted to blocks that are stored in a circular buffer and subsequently executed by motion.
  • rodw
  • rodw's Avatar
31 May 2026 10:53

Ethernet connection to Mesa 7i76e disconnecting on its own after one minute

Category: Plasmac

I'm a bit confused, Initiially an IP address was not set but in later ip a dumps it was correctly set for a Mesa board at 10.10.10.10, It was never made clear after that if the Mesa board was pingable. I assumed it was. 
I would like to see the Hal and ini files to confirm the MESA IP address.
Can you ping the card?

Also from photos of the board, it would be great if PCW could confirm that the links are set for the 10.10.10.10 address is set correctly. W2 down, W3 Up

Also, need to check out the 5 volt power supply to the board which is usually powered form field power which seems to be the case. But are the links set correctly to send 5 volts to the logic side? Can PCW confirm?

The final thing to check on physical wiring, What is the field power voltage? What is the actual power supply? What is the power supply current available? There have been numerous instances where borderline power supplies cause network failure with Mesa cards. This must be ruled out. If need be get a good industrial power supply such as Meanwell MDR-60-24.

It might be worth setting the IP address back to automatic (DHCP) and connecting the PC to your normal network using this NIC card to confirm networking is working.

I mentioned it before but be sure to set the IP address and coalescing as shown in man hm2_eth (use your IP address and 
linuxcnc.org/docs/stable/html/man/man9/h...h%20static%20address

So if all of that checks out and a new network cable does not fix things AND the network is connecting but drops out every 45 seconds or gets error finishing read., there will likely be one of several power saving settings kicking in periodically.





 
Displaying 91 - 105 out of 15487 results.
Time to create page: 1.881 seconds
Powered by Kunena Forum