Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
10 May 2025 15:03
Replied by PCW on topic LinuxCNC compatible industrial PC

LinuxCNC compatible industrial PC

Category: Computers and Hardware

Not a specific recommendation, but in general I would suggest
hardware with a Intel rather than RealTek Ethernet interface
(as this avoids the needed DKMS driver installation with RealTek
and newer kernels)
  • cmorley
  • cmorley
10 May 2025 14:27
Replied by cmorley on topic G-code file loading at G53 instead of G54

G-code file loading at G53 instead of G54

Category: Qtvcp

Ok great we are getting there.
I'm now betting that these debug lines are showing the problem:
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))

Unfortunately I don't know what would cause this message.
Hopefully someone else will see and help us. I'll look at your INI some more tomorrow.
 
  • vre
  • vre
10 May 2025 13:51
Replied by vre on topic Ganty sawmill

Ganty sawmill

Category: Advanced Configuration

Yes i have 15.6'' 1080p touch monitor
  • CallumRD1
  • CallumRD1
10 May 2025 13:42
Replied by CallumRD1 on topic G-code file loading at G53 instead of G54

G-code file loading at G53 instead of G54

Category: Qtvcp

Thank for your the response. Here is some more information in response to your suggestions.

This first image is the machine showing G53 coordinates. The tool is in the center of the work envelope, as you can tell by the non-zero coordinates (0, 0, 0 is the top front left corner). 

This next image is after having switched to G54 using the gui button. As you can see, I set the G54 origin to be the current position, so it reads 0, 0, 0 while the tool is in the center of the work envelope. The work envelope image shows the work offset origin (3 vector arrows) as at the current position, as expect. This is all behaving as I expect.

But when I look at the offsets table, it hasn't reflected the changes to the G54 origin. No values have updated.

More so, when I clicked on the G54 Z value of 4 and tried to directly change it, I got this error, with the full text copied below.


Error message:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/origin_offsetview.py", line 370, in dataChanged
    self.reload_offsets()
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/origin_offsetview.py", line 232, in reload_offsets
    temp[STATUS.stat.g5x_index-1] = STATUS.stat.g5x_offset
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'tuple' object does not support item assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/origin_offsetview.py", line 373, in dataChanged
    self.reload_offsets()
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/origin_offsetview.py", line 232, in reload_offsets
    temp[STATUS.stat.g5x_index-1] = STATUS.stat.g5x_offset
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'tuple' object does not support item assignment
  • Roger S
  • Roger S
10 May 2025 13:29 - 10 May 2025 13:33
Replied by Roger S on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

I just tested it. When I restart the system, the link is down. with
lsmod | grep ec_generic
sudo modprobe ec_generic
lsmod | grep ec_generic

it works again

This is enough of a workaround for me. I can also do updates in the future with a clear conscience?
 
  • Hakan
  • Hakan
10 May 2025 13:15
Replied by Hakan on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

Wow! It works.I was ready to give up.
I don't know why it didn't work for you, exactly. More than there was a problem to load the ec_generic module using the ethercatctl script.
It will probably not work next time again.
I don't know of a permanent fix, but the two commands "sudo rmmod ec_generic" followed by "sudo modprobe ec_generic" will probably load the ec_generic module.
I don't know why it didn't work right away. But there is a fix.
  • hermann1976
  • hermann1976's Avatar
10 May 2025 13:11
Replied by hermann1976 on topic Change Tool Offsets after editing the Tool Table

Change Tool Offsets after editing the Tool Table

Category: Gmoccapy

thank you for your answer,
so the code block is included like your post and i didn't get an error.
The change of the length in Z is working (with apply) but the diameter doesn't change still not.

 
  • Roger S
  • Roger S
10 May 2025 12:58
Replied by Roger S on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

Sorry Hakan, I hadn't looked at all, because I was busy searching for and reporting errors
Master0
  Phase: Idle
  Active: no
  Slaves: 5
  Ethernet devices:
    Main: 80:ee:73:fd:0f:8b (attached)
      Link: UP
      Tx frames:   409178
      Tx bytes:    24554240
      Rx frames:   409177
      Rx bytes:    24554180
      Tx errors:   0
      Tx frame rate [1/s]:    123    123    125
      Tx rate [KByte/s]:      7.2    7.2    7.2
      Rx frame rate [1/s]:    123    123    125
      Rx rate [KByte/s]:      7.2    7.2    7.2
    Common:
      Tx frames:   409178
      Tx bytes:    24554240
      Rx frames:   409177
      Rx bytes:    24554180
      Lost frames: 0
      Tx frame rate [1/s]:    123    123    125
      Tx rate [KByte/s]:      7.2    7.2    7.2
      Rx frame rate [1/s]:    123    123    125
      Rx rate [KByte/s]:      7.2    7.2    7.2
      Loss rate [1/s]:          0      0      0
      Frame loss [%]:         0.0    0.0    0.0
  Distributed clocks:
    Reference clock:   Slave 0
    DC reference time: 0
    Application time:  0
                       2000-01-01 00:00:00.000000000
roger@roger:~$ ethercat slaves
0  0:0  PREOP  +  EK1100 EtherCAT-Koppler (2A E-Bus)
1  0:1  PREOP  +  EL1008 8K. Dig. Eingang 24V, 3ms
2  0:2  PREOP  +  EL1008 8K. Dig. Eingang 24V, 3ms
3  0:3  PREOP  +  EL2008 8K. Dig. Ausgang 24V, 0.5A
4  0:4  PREOP  +  L8EC(COE)
roger@roger:~$

many many thanks! I really appreciate your efforts. so just thank you again

What was the cause and do I need to do anything else now?

 
  • Hakan
  • Hakan
10 May 2025 12:27
Replied by Hakan on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

And now it works? What does "sudo dmesg" say?
  • Roger S
  • Roger S
10 May 2025 12:05
Replied by Roger S on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

here is the result oflsmod | grep ec_generic
sudo modprobe ec_generic
lsmod | grep ec_generic
ec_generic             16384  0
ec_master             397312  1 ec_generic
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_codec         188416  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core          122880  9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd                   126976  15 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
ec_generic             16384  0
ec_master             397312  1 ec_generic
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_codec         188416  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core          122880  9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd                   126976  15 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
  • Hakan
  • Hakan
10 May 2025 10:51
Replied by Hakan on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

Intel I226 I see. I like those I226es. Then there is possibly the option to use the igc driver instead of the generic driver. You can always test that.

Let's continue with the ec_generic.
The output shows that it is back to the ec_generic module not loading.

Can you show the output of these three commands? It should manually load the ec_generic module.
lsmod | grep ec_generic
sudo modprobe ec_generic
lsmod | grep ec_generic
  • Roger S
  • Roger S
10 May 2025 09:23
Replied by Roger S on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

File Attachment:

File Name: dmesg_2025...10-7.txt
File Size:70 KB
  • cmorley
  • cmorley
10 May 2025 09:14
Replied by cmorley on topic G-code file loading at G53 instead of G54

G-code file loading at G53 instead of G54

Category: Qtvcp

Ok ill see nothing error ing in qtdragon.
I do see some weird errors about tool stat. But let's put test aside for the moment.

What I see based on your screen shots.
- g54 has zero offset for x and y so will be the same as machine zero position.
- you have a small offset in g54 z and while hard to see i think that it is honoring that.
- the offset table shows the same but also shows you have a rotational offset. Yes those z offset numbers seem weird.

I would cancel the rotational offset.

If you wish to move the g54 offset move the machine where you want g54 0 to be and press ZERO on each axis you wish to zero.
After that is done switching between ABS and G54 should make the DRO change the amount of offset and the offset will be shown on the offset table.
  • Roger S
  • Roger S
10 May 2025 09:14 - 10 May 2025 09:23
Replied by Roger S on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

Hello Hakan
I hope I did everything correctly. Here's the result of lspci -k:
00:00.0 Host bridge: Intel Corporation Device 461c
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Device 4164
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-N [UHD Graphics]
    DeviceName: Onboard - Video
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N [UHD Graphics]
    Kernel driver in use: i915
    Kernel modules: i915
00:14.0 USB controller: Intel Corporation Alder Lake-N PCH USB 3.2 xHCI Host Controller
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCH USB 3.2 xHCI Host Controller
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Alder Lake-N PCH Shared SRAM
    DeviceName: Onboard - Other
00:16.0 Communication controller: Intel Corporation Alder Lake-N PCH HECI Controller
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCH HECI Controller
    Kernel driver in use: mei_me
    Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Alder Lake-N SATA AHCI Controller
    DeviceName: Onboard - SATA
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N SATA AHCI Controller
    Kernel driver in use: ahci
    Kernel modules: ahci
00:1c.0 PCI bridge: Intel Corporation Alder Lake-N PCI Express Root Port
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCI Express Root Port
    Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation Alder Lake-N PCI Express Root Port
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCI Express Root Port
    Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Alder Lake-N PCI Express Root Port
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCI Express Root Port
    Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Alder Lake-N PCH eSPI Controller
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCH eSPI Controller
00:1f.3 Audio device: Intel Corporation Alder Lake-N PCH High Definition Audio Controller
    DeviceName: Onboard - Sound
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N PCH High Definition Audio Controller
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus: Intel Corporation Alder Lake-N SMBus
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N SMBus
    Kernel driver in use: i801_smbus
    Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-N SPI (flash) Controller
    DeviceName: Onboard - Other
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Alder Lake-N SPI (flash) Controller
01:00.0 Ethernet controller: Intel Corporation Ethernet Controller I226-LM (rev 04)
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Ethernet Controller I226-LM
    Kernel driver in use: igc
    Kernel modules: igc
02:00.0 Ethernet controller: Intel Corporation Ethernet Controller I226-LM (rev 04)
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Ethernet Controller I226-LM
    Kernel driver in use: igc
    Kernel modules: igc
03:00.0 Non-Volatile memory controller: Transcend Information, Inc. NVMe PCIe SSD 110S/112S/120S/MTE300S/MTE400S/MTE652T2 (DRAM-less) (rev 03)
    Subsystem: Transcend Information, Inc. NVMe PCIe SSD 110S/112S/120S/MTE300S/MTE400S/MTE652T2 (DRAM-less)
    Kernel driver in use: nvme
    Kernel modules: nvme
  • Hakan
  • Hakan
10 May 2025 07:57
Replied by Hakan on topic Using POSIX realtime

Using POSIX realtime

Category: EtherCAT

This is interesting...
Looks the same. I changed my device to the same settings you have and it still works.
Is it a Realtek device? Which kernel module does it use? Find with the command "lspci -k" and find the network adapter.

I looked in the source code for when it rejects a device and this is what it says in the ecdev_offer() function in module.c:
* The master decides, if it wants to use the device for EtherCAT operation,
 * or not. It is important, that the offered net_device is not used by the
 * kernel IP stack. If the master, accepted the offer, the address of the
 * newly created EtherCAT device is returned, else \a NULL is returned.

There are some debug outputs that can be interesting. Unfortunately the debug attempt before failed
because the master is configured before the debug can be set in the way we tried before.
But here is a way.
First stop the ethercat server with the command "sudo /usr/sbin/ethercatctl stop".
Then copy the the file /usr/sbin/ethercatctl (it is a script) to a new name like ectl and change the line as shown
sudo cp /usr/sbin/ethercatctl ectl
# ... edit ectl and add debug_level=1 to this line a shown around line 126 in ectl

    # load master module
    if ! ${MODPROBE} ${MODPROBE_FLAGS} ec_master \
            main_devices="${DEVICES}" backup_devices="${BACKUPS}" debug_level=1; then
        exit 1
    fi

# Make executable
chmod +x ectl
# and start the ethercat master, then reset debug level to 0. It produces a lot of info
sudo ./ectl start
ethercat debug 0

sudo dmesg

Then have a look at the output, the lines around the configuration is important.
 
Displaying 15181 - 15195 out of 17473 results.
Time to create page: 0.639 seconds
Powered by Kunena Forum