Advanced Search

Search Results (Searched for: )

  • andypugh
  • andypugh's Avatar
03 Sep 2024 12:31
Replied by andypugh on topic Rexroth Indradrive CS and KEB G6

Rexroth Indradrive CS and KEB G6

Category: EtherCAT

VFDs generally support numerous control modes, so even if you can't directly control it by EtherCAT you may be able to use Modbus, or even analogue voltage from an EtherCAT module.
  • mighty_mick
  • mighty_mick's Avatar
03 Sep 2024 11:57 - 03 Sep 2024 11:58
What does CMM machines use in software was created by mighty_mick

What does CMM machines use in software

Category: General LinuxCNC Questions

Hello folks.
I am wondering about CMM machine softwares. Are they using LinuxCNC? If they are not using LinuxCNC, would it be appropriate solution for these kind of machines? Do you know any open source CMM machine, CMM software etc.?

Thank you for your time.
  • bertoldo
  • bertoldo
03 Sep 2024 11:34

Notes from installation of ethercat on Raspberry Pi 4

Category: EtherCAT

Good morning and thank you for your reply.

As you may have noticed, I am the name here. I have tried to download the image that my colleagues have posted, I have tried the Linux CNC standard and I am not able to move forward. My driver is a Lichuan LC10E. Is there any basic step-by-step guide to help me achieve my goal? Thank you very much in advance!
  • Evgeny
  • Evgeny
03 Sep 2024 11:26
Replied by Evgeny on topic Marco Reps video on youtube about EtherCAT

Marco Reps video on youtube about EtherCAT

Category: EtherCAT

I have already paid for them and am waiting for them to arrive from China.

I pulled myself together and added a spindle frequency drive control panel via RS485 modbus
I did it through vfdmod and it works great
 
 

File Attachment:

File Name: linuxcnc_l...9-03.zip
File Size:25 KB

 

File Attachment:

File Name: vfdmod-0.3...md64.zip
File Size:33 KB

  • kzali
  • kzali
03 Sep 2024 09:47

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

Category: Computers and Hardware

Hi Russell,
good idea, thank you very much,
I would prefer riocore
it is no longer worth doing new things with the old version
Cheers.
Olli

So where is the thread?
 

  • Bouni
  • Bouni
03 Sep 2024 08:32

Etherrcat Master does not start automatically

Category: EtherCAT

Hi,

a bit more than a year ago I got linuxcnc + ethercat running on a Beckhoff CX2040, back then version 2.8.4 and everything built from source (details in my blog post )

For various reasons I sat the project aside. Last Friday I finally started to work at it agiain. I was astonished to see that its now possible to simply install everything via apt without the need to build it from source.

So I grabed a new CF card and installed the latest iso. a year a go I had to build the ccat driver from source as well but now its bunled with the ethercat master. I simply had to enable it in /etc/ethercat.conf

After a bit of trial and error eveything works as expected excpet for one last thing: If I start the CX2040 there is no /dev/EtherCAT

I can't find anything suspicious:
sudo systemctl status ethercat.service

● ethercat.service - EtherCAT Master Kernel Modules
     Loaded: loaded (/lib/systemd/system/ethercat.service; enabled; preset: enabled)
     Active: active (exited) since Tue 2024-09-03 04:00:40 EDT; 24min ago
    Process: 528 ExecStart=/usr/sbin/ethercatctl start (code=exited, status=0/SUCCESS)
   Main PID: 528 (code=exited, status=0/SUCCESS)
        CPU: 21ms

Sep 03 04:00:40 cx2040-lcec systemd[1]: Starting ethercat.service - EtherCAT Master Kernel Modules...
Sep 03 04:00:40 cx2040-lcec systemd[1]: Finished ethercat.service - EtherCAT Master Kernel Modules.
sudo dmesg | grep -E 'ec_|eth0|EtherCAT'

[    1.848464] e1000e 0000:02:00.0 eth0: (PCI Express:2.5GT/s:Width x1) 00:01:05:25:a9:c2
[    1.848468] e1000e 0000:02:00.0 eth0: Intel(R) PRO/1000 Network Connection
[    1.848625] e1000e 0000:02:00.0 eth0: MAC: 3, PHY: 8, PBA No: FFFFFF-0FF
[    2.330142] e1000e 0000:02:00.0 enp2s0: renamed from eth0
[    3.633351] ec_master: loading out-of-tree module taints kernel.
[    3.633620] ec_master: module verification failed: signature and/or required key missing - tainting kernel
[    3.652282] EtherCAT: Master driver 1.6.1 1.6.1
[    3.652304] EtherCAT: 0 masters waiting for devices.
[    3.660096] ec_ccat: DMA0 mem initialized
[    3.660111] ec_ccat: DMA1 mem initialized
[    3.660484] ec_ccat: registered eth0 as network device.
[    3.660600] ec_ccat: registered ccat_update0.
[    3.660657] ec_ccat: ccat_sram_probe: 0x0016 rev: 0x0000
[    3.660738] ec_ccat: registered ccat_sram0.
[    5.430826] eth0: NIC Link is Up
[    5.430996] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

If I however do a sudo systemctl restart ethercat.service the master starts and works as expected.

The output of sudo systemctl status ethercat.service stays exactly the same.

dmesg gives a bit more:
sudo dmesg | grep -E 'ec_|eth0|EtherCAT'

[    1.848464] e1000e 0000:02:00.0 eth0: (PCI Express:2.5GT/s:Width x1) 00:01:05:25:a9:c2
[    1.848468] e1000e 0000:02:00.0 eth0: Intel(R) PRO/1000 Network Connection
[    1.848625] e1000e 0000:02:00.0 eth0: MAC: 3, PHY: 8, PBA No: FFFFFF-0FF
[    2.330142] e1000e 0000:02:00.0 enp2s0: renamed from eth0
[    3.633351] ec_master: loading out-of-tree module taints kernel.
[    3.633620] ec_master: module verification failed: signature and/or required key missing - tainting kernel
[    3.652282] EtherCAT: Master driver 1.6.1 1.6.1
[    3.652304] EtherCAT: 0 masters waiting for devices.
[    3.660096] ec_ccat: DMA0 mem initialized
[    3.660111] ec_ccat: DMA1 mem initialized
[    3.660484] ec_ccat: registered eth0 as network device.
[    3.660600] ec_ccat: registered ccat_update0.
[    3.660657] ec_ccat: ccat_sram_probe: 0x0016 rev: 0x0000
[    3.660738] ec_ccat: registered ccat_sram0.
[    5.430826] eth0: NIC Link is Up
[    5.430996] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 1825.385150] EtherCAT: Master module cleaned up.
[ 1826.509197] EtherCAT: Master driver 1.6.1 1.6.1
[ 1826.509424] EtherCAT: 1 master waiting for devices.
[ 1826.518490] ec_ccat: DMA0 mem initialized
[ 1826.518506] ec_ccat: DMA1 mem initialized
[ 1826.518519] EtherCAT: Accepting 00:01:05:1E:6B:8E as main device for master 0.
[ 1826.518522] EtherCAT 0: Starting EtherCAT-IDLE thread.
[ 1826.518761] EtherCAT 0: Link state of ecm0 changed to UP.
[ 1826.518925] ec_ccat: registered ccat_update0.
[ 1826.518964] ec_ccat: ccat_sram_probe: 0x0016 rev: 0x0000
[ 1826.519688] ec_ccat: registered ccat_sram0.
[ 1826.526190] EtherCAT WARNING 0: 1 datagram UNMATCHED!
[ 1826.526232] EtherCAT 0: 9 slave(s) responding on main device.
[ 1826.526234] EtherCAT 0: Slave states on main device: PREOP.
[ 1826.526284] EtherCAT 0: Scanning bus.
[ 1827.763458] EtherCAT 0: Bus scanning completed in 1236 ms.
[ 1827.763462] EtherCAT 0: Using slave 0 as DC reference clock.

Does anybody know what stops the master from starting automatically?
  • Aciera
  • Aciera's Avatar
03 Sep 2024 07:17
Replied by Aciera on topic Adjusting maxvel stops my routine

Adjusting maxvel stops my routine

Category: General LinuxCNC Questions

I would try to use custom Mcodes/ subroutines directly and avoid using the python mdi command.
  • onceloved
  • onceloved's Avatar
03 Sep 2024 07:13
Replied by onceloved on topic Marco Reps video on youtube about EtherCAT

Marco Reps video on youtube about EtherCAT

Category: EtherCAT

The key problem is that you don't have the battery and the corresponding encoder cable for recording the encoder position.
  • Moutomation
  • Moutomation
03 Sep 2024 06:57
Replied by Moutomation on topic found an error! audio_ative

found an error! audio_ative

Category: Gmoccapy

I fixed it by editing the necessary lines.
  • greg23_78
  • greg23_78
03 Sep 2024 06:19
Replied by greg23_78 on topic encoder.N.velocity-rpm

encoder.N.velocity-rpm

Category: Basic Configuration

HAL
 

File Attachment:

File Name: main_2024-09-03-2.hal
File Size:12 KB


INI
 

File Attachment:

File Name: cnc_samua_...03-2.ini
File Size:3 KB


IO
 

File Attachment:

File Name: io_2024-09-03-2.hal
File Size:0 KB
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
03 Sep 2024 05:57
Replied by Cant do this anymore bye all on topic Pendant with 7i73: question with analog inputs

Pendant with 7i73: question with analog inputs

Category: Driver Boards

A Rotary switch 10 or 12 way or what every is available, then either use 10 or 12 inputs, or if you want to lower that use a priority encoder, would take up that much space or a simple diode matrix.
The little rotary encoders aren’t that bad as they usually have a switch included as well which could be for reseting the override.
Using a analogue mux would require a custom component to sync everything.
The pot or rotary switch gives a quick visual at where the override is without having to look at a screen. The rotary encoder not so unless you were to implement mechanical stops to limit movement over a certain range, but wouldn’t be compatible with using the switch for reset.
I was just thinking about the bit banging spi thing, it may require 2 thread slices per clock signal. As there are only 1 read & 1 write per thread.
  • rajsekhar
  • rajsekhar
03 Sep 2024 05:52
Replied by rajsekhar on topic Error while Running Linuxcnc

Error while Running Linuxcnc

Category: Driver Boards

SERVO_PERIOD = 1000000

INI file attached.
  • stenly
  • stenly
03 Sep 2024 05:48

EtherCAT Communication Issues, Lost Frames, Interruptions in Program Execution

Category: EtherCAT

After more trial and error and checking the cables and slaves one by one, I am going to go with the working theory that the NIC is problematic in some way, as the biggest improvement yet was after I deleted the Ethernet connection it was trying to establish.

The onboard PC has two Intel I211 interfaces. I found this post and thought to try out the suggestions. I wasn't sure if I had the dkms driver for my interface, but lspci -v reported the driver as "igb." Upon some googling this GitHub repo came up. It seems there is (or was?) a known issue with I210/I211 NICs that causes the driver to terminate due to some checksum mismatch. I am not sure if this applies to me exactly, since even if it does terminate for me, it is not until the next reboot, but just momentarily - enough to spike the latency and desync the process. Either way, I wasn't able to install the patch from the repo as it is for an old kernel and sudo apt install fails because of that. Do you suppose I should pursue this further or has this issue with the driver been resolved by Intel in the past years?

The next thing I did was to add all of these kernel parameters:
efi=runtime igb.EEE=0 pcie_aspm=off pcie_port_pm=off pcie_aspm.policy=performance loglevel=3
I also disabled EEE from ethtool.

I believe this improved things yet again since now the situation is as follows. On running a test program with a max velocity of 1500mm/min, there are actually no issues to be reported. It's been running for 4 hours already. However, upon increasing the velocity (the max is 6000mm/min), the program fails in about 30 minutes and reports a joint error, if I don't stop it before that because of the worrying noises the axis emit.

Due to this, I am seriously suspecting the NIC in general and the latency as the culprits. For the time being I will try out the suggestions in the Arch Wiki for realtime process management . I would nevertheless still be very grateful for any other help and ideas.
  • Ho Er
  • Ho Er
03 Sep 2024 05:39

Pendant with 7i73: question with analog inputs

Category: Driver Boards

@PCW: thanks for the explanation - I was actually a bit annoyed by the one-liner Mesa response without any additional context/explanation. I was under the impression that it is a simple configuration issue and that the 7i73 is as easy configurable as the FPGA based cards. I obviously did not dig deep enough into the docs to understand the sserial features/limitations, sorry. I thought, that obviously others also might need more than 4 analog inputs sometimes - so I've expected that sombody else already stumbled over this issue and found the "missing" mode or settings...

With the new context, I am now thinking of a few workarounds (thanks to everybody for their ideas) to replace the missing analog input for a poti:
  • Using an additional/external analog multiplexer (like 74hc4051) and use an output pin to switch between two potis (a few Hz update rate will be more than enough)
  • Use an external A/D converter (there is some sample here using a bitbang SPI) for one of the potis
  • Replace one of the potis with a small encoder 
  • Replace one of the potis with a rotational switch (e.g. with 10 positions) and map each of the 10 inputs with a fixed percentage in the hal
Thank you very much for your offer to look into the code again - if it is not too difficult and helpful for others, then obviously it would be nice, if you could add another mode with more analog inputs.

Here is what I currently use:
  • IN0-IN3: analog inputs for X/Y/Z joystick and the feed override poti
  • IN4: would like to use this for the spindle speed override poti
  • IN5-IN7: digital inputs: buttons
  • IN8/IN9: ENC0 encoder wheel
  • IN10-IN15: digital inputs: buttons
  • KEY0-KEY5: used as LED driver outputs (as I use the NO LCD and NO KBD mode, they map to OUT10-15)
For me the easiest thing will be adding an external analog multiplexer or replacing one poti with a small encoder- thinking about the typical use cases of a pendant interface board, the analog multiplexing could also be possibly implemented in software (so others could benefit from it, too). This could allow to not violate the process data space but still add four (slow) analog inputs (in addition to the four fast inputs) - eventually with loosing one of the encoder inputs?
Please don't waste any time to implement a single user solution (for me) - I was expecting to get my config working with some configuration adjustments I've overlooked. If you think my use case could make sense to others, then adding an additional mode is of course highly welcome!

Let me know what you think!

Thanks and best regards,

​​​​​​​    Holger
Displaying 22771 - 22785 out of 24273 results.
Time to create page: 0.602 seconds
Powered by Kunena Forum