Advanced Search

Search Results (Searched for: )

  • Hakan
  • Hakan
25 Dec 2025 11:05

EtherCAT master xml file for Yaskawa Sigma Servo motor?

Category: EtherCAT

So, there is a much bigger issue with lcec supporting LWR and Yaskawa drives requiring LRD/LRW.

I followed some of your links and while there is some success, there are also very pessimistic opinions
on rewriting of lcec_main. Maybe it is possible to take some of the success and shoehorn it into something?
  • automata
  • automata
25 Dec 2025 10:21

EtherCAT master xml file for Yaskawa Sigma Servo motor?

Category: EtherCAT

For Yaskawa Sigma7 the issue with lcec (linuxcnc-ethercat) software component is not only EOE being enabled in the drive.

It also has something to do with modes LRD/LWR and LRW. In the sigma7, the PDOs in the syncMasters are not read-write, i.e., LRW mode is not supported by sigma7. To work with sigma7, you need to enable 2 domains in the lcec program. I am not sure how to do that yet.

This issue is documented in these forum threads:
forum.linuxcnc.org/ethercat/50245-yasikawa-sigma7-lcec-driver
forum.linuxcnc.org/ethercat/48110-etherc...-responding?start=40

I have tried using this program from github.com/nylon7 and fdarling (on the yaskawa thread in the linuxcnc forum) and have seen some success in enabling the sigma7 motor and moving it and reading the absolute position register over ethercat.

github.com/nylon7/Igh-Ethercat-master/bl...ples/user/main_yas.c

For doing this, I am using the IGH Ethercat master 1.6-stable with EOE disabled as documented by Hakan.

I think we need to make some changes in lcec to enable the use of two domains.

-automata
  • grandixximo
  • grandixximo's Avatar
25 Dec 2025 09:46 - 25 Dec 2025 10:08
Replied by grandixximo on topic Ethercat random jitter fix

Ethercat random jitter fix

Category: EtherCAT

I have used your syncToRefClock "true" option, the random jitter issue persisted. The issue is not just sync, it is also phase, by simply drifting to match the DC epoch, you can get in phase. Only after the fix I am NOW finally able to create the jitter at WILL by setting a sync0shift of 10~30us this is expected, as preempt_rt has 20-60us jitter, if you move the sync0shift window in the jitter you should get jitter, this was not the case with just syncToRefClock "true" the servo was in sync, but the phasing was random. I will further test tomorrow, but this is something that has escaped the community for a while.
Sync is also important, but phasing was completely overlooked, I think the current code assumes phase alignment happens automatically, this might be because of ethercat's docs not explaining this well, or because of how linuxcnc is structured the servo thread is started completely separate from the lcec, the servo thread phasing has to be done manually to match DC epoch, even if DC epoch was written by lcec, the moment when servo-thread addf's lcec is practically random, the phasing will be random. Not sure if you understand, I am very deep into testing this for days now, and I can assure you, I have it fixed now, but it was not before.
  • Hakan
  • Hakan
25 Dec 2025 09:44

EtherCAT master xml file for Yaskawa Sigma Servo motor?

Category: EtherCAT

It can be that linuxcnc-ethercat disturbs the process. It must be removed too.
I think this way is the best after all. The other way with changing a bit in the eeprom is even more complicated with ned tools.

I went through the disabling of EoE on a development system I have. Here is the list of commands
sudo apt purge ethercat-master ethercat-dkms linuxcnc-ethercat
cd ~/src
cd ethercat/
make clean
./bootstrap
./configure --sysconfdir=/etc --disable-eoe
make all modules
sudo make modules_install install
ip a                                      # for mac address in next step
sudo vi /etc/ethercat.conf    # insert mac and "generic" driver
sudo systemctl start ethercat
ethercat slaves
sudo dmesg | tail -20
sudo apt install linuxcnc-uspace linuxcnc-uspace-dev     # probably already installed
cd ~/src
git clone https://github.com/linuxcnc-ethercat/linuxcnc-ethercat    # if it isn't installed already
cd linuxcnc-ethercat/
make
sudo make install
At this point you should be able to start linuxcnc.
Check syslog for EoE appearances.
Take it step by step.
 
  • tar_san
  • tar_san
25 Dec 2025 09:09

EtherCAT master xml file for Yaskawa Sigma Servo motor?

Category: EtherCAT

Thank you so much.
I tried multiple times, but I get the same result.

I installed ethercat-master using "linuxcnc-ethercat" package (that include some packages ) . and that may caused some issue for replacing ethercat master.

Do I need to install some packages separately, step by step ?
Unfortunatelly, I'm not familier to do this and I could not find proper procedures so far.

Do you know some web links or somethings to instruct this procedures to do this?
  • Hakan
  • Hakan
25 Dec 2025 08:48
Replied by Hakan on topic Ethercat random jitter fix

Ethercat random jitter fix

Category: EtherCAT

Indeed, it is the servoloop that isn't in sync with the dc clock.

github.com/linuxcnc-ethercat/linuxcnc-et...s.md#master-settings
  • grandixximo
  • grandixximo's Avatar
25 Dec 2025 07:37 - 25 Dec 2025 12:44
Ethercat random jitter fix was created by grandixximo

Ethercat random jitter fix

Category: EtherCAT

If you have been using linuxcnc ethercat, you almost certainly have experienced jitter, the motor makes a weird noise, restarting lxcnc once or twice, and it works well, no amount of latency improvements ever fix this completly, just happens a bit less often.
Since I had sometime to kill this Christmas I put a lot of effort into pin pointing the cause of this issue, and fix it for good, I will share the code in the next few days, still doing some testing and refinements, but I wanted to share what I am at this time practically certain the cause was/is.
The issue is the servo thread syncs with the DC clock, but it is not in phase, each time linuxcnc starts the app-phase is randomly out of phase with the DC epoch time (Fixes value of "DC reference time" displayed by ethercat master), the fix was to remove app-phase from DC epoch, and drift the servo-thread to align with this time, that's all, this will make sure your packets are sent (with jitter) in phase with the DC epoch, and your sync0shift will actually allow for your jitter/latency.
I will do some more testing refine the code, and soon share the fix with the linuxcnc community,
Merry Christmas and Happy Holidays to all!
  • NWE
  • NWE
25 Dec 2025 05:20 - 25 Dec 2025 05:33

DIY CNC Mill - Random Limit Switch Errors

Category: Milling Machines

use short cables

 
 

Just noticed this. It is the answer. I think.

Move VFD much closer to motor. Shorter cable from vfd to motor.
That by itself probably fix everything without doing anything else.

Also keep all DC wires far away from AC wires.

In terms of interference, the wires going from vfd to the motor are the baddest. The longer the badder. To a lesser degree all the AC wires are bad when so close to BOB and all. Contactors are also very bad the instant they open/close.
  • NWE
  • NWE
25 Dec 2025 05:10 - 25 Dec 2025 05:11

DIY CNC Mill - Random Limit Switch Errors

Category: Milling Machines

BOB too close to relay and power wires.
  • Bernardo
  • Bernardo
25 Dec 2025 05:09
Replied by Bernardo on topic Custom HOME_SEARCH_VEL

Custom HOME_SEARCH_VEL

Category: Advanced Configuration

is a long machine and is installed in a reduced space, the original numeric control had that function in order controlling the motion all the time for operators safety
  • tommylight
  • tommylight's Avatar
  • NWE
  • NWE
25 Dec 2025 04:17
Replied by NWE on topic Hard stop homing

Hard stop homing

Category: Advanced Configuration

I can't wait to try that. I have tons of cheap inductive proximity sensors (well, more like a couple handfuls). Coil one motor power lead around it. Great idea. Cheap and simple. Thanks!
  • snowgoer540
  • snowgoer540's Avatar
25 Dec 2025 04:03
Replied by snowgoer540 on topic Ohmic Probe + Material Height Feature Request

Ohmic Probe + Material Height Feature Request

Category: Plasmac

Yes, I updated the magic comments to include adding material thickness.
  • NWE
  • NWE
25 Dec 2025 03:54

DIY CNC Mill - Random Limit Switch Errors

Category: Milling Machines

I don't see a picture of the actual breakout board, and related wiring. I might be able to pinpoint good locations to add ferrites. Even the parallel cable might benefit, you'd have to use a clip-on split ferrite, but those are more expensive and I have never tried that type. Best put them on the VFD wires first. A customer watched me do that to his project and it made such a difference he asked me if it is black magic.
  • NWE
  • NWE
25 Dec 2025 03:32 - 25 Dec 2025 03:42

DIY CNC Mill - Random Limit Switch Errors

Category: Milling Machines

All of the above (except I don't bother with an earth ground rod on mills. Plasma maybe, if its a big one). I have covered unshielded wire by wrapping in aluminum foil then cover with tape. Make sure shields are grounded at the computer end but NOT at the far end. If aluminum foil has splices, confirm it connects very good and overlaps some.

Grounding a shield at both ends can act the same as no shield. Don't ground the motor end. Spiral steel or aluminum foil is not as good as copper braid but should help.

Add ferrite beads, the more the merrier. That alone has completely mitigated some of my most annoying interference problems. I keep a bunch on hand, and just experiment by adding a couple here and there till it is fixed.

Start by putting some on each wire that's connected to the vfd, closer to the vfd is better. They absorb some of the interference the wires radiate. Next, I'd add smaller ferrites to the limit switch wires, closer to the electronics is better.

Some vfd suppliers recommend using one big ferrite and turning the three power wires around it 3x, one ferrite for the power in side, and one for the power out side.

Ferrites come in an enormous variety of shapes, sizes, and colors. I don't know how much it matters what kind of ferrite you should use. I've read there's a significant difference in different grades of ferrite. I never bothered to figure out which are better. I had a cheap USB charger transformer quit working, so I thought I'd cut the ferrite (molded in plastic) from its cord before I discard the charger. I cut it open, it was all plastic, no ferrite inside. That was a very fake ferrite.
Displaying 136 - 150 out of 20727 results.
Time to create page: 0.188 seconds
Powered by Kunena Forum