Advanced Search

Search Results (Searched for: )

  • Hakan
  • Hakan
14 Dec 2025 19:35

Long initialization of Ethercat on servo drive SV660N

Category: EtherCAT

I think they all describe steps to bring data in and out of the drive, steps that are missing in the lcec case. SOEM mentions fragmentation/defragmentation. Not more complex than that. I haven't found out if the hardware I have can be used for a prototype.
I'll keep searching.
  • Muzzer
  • Muzzer
14 Dec 2025 19:20 - 14 Dec 2025 21:12

Updating from LINUXCNC - 2.8.4-23, Mint 20.3 - gmoccapy lathe structure

Category: Gmoccapy

Thanks for the reply. I've been busy with roofing, plumbing, parquet flooring etc but managed to sneak out to the workshop finally.

I've managed to get the spin boxes to appear in an otherwise blank macro screen, which is some form of progress. This was by removing the "notouch=1 -U norun=0 -u" switches from the EMBED_TAB_COMMAND line.

However, the gmoccapy screen is now bigger than the primary display once gladevcp starts up. That doesn't seem to prevent anything new from working otherwise. Presumably I need to correct the screen resolution, possibly by installing better video drivers? It used to fit the screen.
EDIT: the native resolution of the Hanspree HT225 is 1920x1080, same as the second display. No end of playing with display seems to prevent the GUI spilling over beyond the extents of the display(s), other than commenting out the EMBED_TAB line.

My path statement looks like this but perhaps I need to read up on linux path syntax:SUBROUTINE_PATH = ~/nc_files:~/lathe_macros:~/subroutines:~/python
...where those subfolders are in the folder where the INI file is held.
EDIT: I now see I should use the dot character rather than tilde in linux to denote a relative path. I will try that...
Beyond that, when I run linuxcnc from the command prompt, it reveals a royal mess. Clearly gladevcp isn't happy (see attached log file).

I tried installing python-rsvg but it didn't like that:
murray@LinuxCNC:~$ sudo apt-get install python-rsvg
[sudo] password for murray:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python-rsvg

There are a few things going on here, to say the least - could you suggest what I focus on in the first instance?
 

File Attachment:

File Name: oof.txt
File Size:38 KB
  • PCW
  • PCW's Avatar
14 Dec 2025 15:49 - 14 Dec 2025 15:59
Replied by PCW on topic Issues with simple input on 7i76eu

Issues with simple input on 7i76eu

Category: Driver Boards

The 7I76EU inputs have a threshold of 60% of VFIELD when going positive and 40% of VFIELD when going negative.
This means with 24V VFIELD, a voltage below 9.6V is read as low and a voltage above 14.4V is read as high.
This  is called hysteresis, and is deliberate behaviour for noise immunity. With a 10 K pullup you end up just in the middle
of this input threshold range, You need a stiffer pullup resistor (say 2.2K) so that you have a valid input to the 7I76EU.
  • liutas4x4
  • liutas4x4
14 Dec 2025 14:02

Adding second spindle control to pyVCP: is it complicated?

Category: pyVCP

Thank you. I'll learn. And ask there if don't catch something.
  • Sandro
  • Sandro
14 Dec 2025 11:36 - 14 Dec 2025 11:38
Replied by Sandro on topic Axis deflecting while jogging in G54

Axis deflecting while jogging in G54

Category: QtPyVCP

Thank you very much MaHa!

This worked. Initially with (debug,#5230) I got -0.012195. After G10 L2 P1 R0 it was reset to 0. Perfect. So there was a rotation active? Maybe a leftover from when I probed rotation of a workpiece?
  • Hakan
  • Hakan
14 Dec 2025 10:54

Ethercat compatible Encoder board tentative STM32F4 + LAN9252

Category: EtherCAT

PDI = that parallel communication mode? Noone uses it. Everyone uses SPI.
The last few lines in the xml file should look similar to this. The first "80" means spi, then there
is polarity and other settings. 
        <Eeprom>
          <ByteSize>2048</ByteSize>
          <ConfigData>80060344640000</ConfigData>
        </Eeprom>
Read out the eeprom from the board and verify that is says "80" in the first byte.
I have had my fair share of problems with SPI so I think you again should verify that you can get past the ESC_init() function.
Use the debugger and verify that you read 0x87654321 from LAN9252 on line 445 in the figure
 
You may need to power cycle the LAN9252, it only reads eeprom after power down.
 
  • BoMadsen
  • BoMadsen
14 Dec 2025 09:25
Replied by BoMadsen on topic Issues with simple input on 7i76eu

Issues with simple input on 7i76eu

Category: Driver Boards

I am pretty sure that you are correct, at least in the part about the inputs being reversed between the two boards.
But it is my understanding that this is why the pull-up resistor is needed, so that the input at idle is 12v and then when activated goes to 0. So to get the correct logic in linuxcnc I use the xxx-not input signal.

But I don't understand why the hal state doesn't change after the first trigger, even though I can see the voltage change on the input pin.
  • vibram
  • vibram
14 Dec 2025 09:16

Ethercat compatible Encoder board tentative STM32F4 + LAN9252

Category: EtherCAT

I managed to get spi working but I might have an issue with the eeprom. Apparently I'm stuck in PDI mode and lan9252 is not communicating through spi
  • rodw
  • rodw's Avatar
14 Dec 2025 08:23 - 14 Dec 2025 08:39

Long initialization of Ethercat on servo drive SV660N

Category: EtherCAT

I asked Grok:
the official linuxcnc Ethercat driver at github.com/linuxcnc-ethercat/linuxcnc-ethercat does not currently support EoE (Ethernet over Ethercat) drives such as the SV660N drive. Can you suggest modifications to the code to enable EoE support?
And he gave a very comprehensive answer.

Its far to comprehsensive to share on the forum due to formatting but I saved hos answer to markdown and converted to pdf which is attached

 
  • rodw
  • rodw's Avatar
14 Dec 2025 08:05

Long initialization of Ethercat on servo drive SV660N

Category: EtherCAT

Sorry to bust you AI bubble but
  1. where is  eoe_running defined?
  2. where is *arg used?
  3. the for statement seems invalid.

I find Grok lies less than ChatGPT but still gives me wrong code sometimes.
 
  • Hakan
  • Hakan
14 Dec 2025 07:46

Long initialization of Ethercat on servo drive SV660N

Category: EtherCAT

I spent some time with ChatGpt and I'm of course super skeptical to those tools.
Chatgpt says the likely reason for EoE drives to hang is that the EoE mailbox isn't serviced/emptied.
Yes, it isn't. Maybe one can try that, it doesn't have to be more advanced. A code snippet that does that
static void *eoe_worker(void *arg)
{
    while (eoe_running) {
        /* Receive mailbox data */
        ecrt_master_receive(lcec.master);
        for_each_eoe_ctx(ctx) {
            ecrt_eoe_process(ctx->eoe);
        }
        /* Transmit */
        ecrt_master_send(lcec.master);
        usleep(1000); /* 1 ms, configurable */
    }
    return NULL;
}
There is that ecrt_master_send kworm talked about. It's about principles at this point.
I would need a slave with EoE. I don't have that. Maybe maybe I can make one, there
is an example in SOES with lwip. Or anyone know of a not too pricey servo drive with EoE?
  • rodw
  • rodw's Avatar
14 Dec 2025 07:33
Replied by rodw on topic Issues with simple input on 7i76eu

Issues with simple input on 7i76eu

Category: Driver Boards

Wait until  someone else confirms but I think your issue is that the  Mach3 board senses on the negative side and the 7i76e senses on the positive side. In other words on the 7i76e, you need to switch the input to +24 volts not GND

Read page 24 of the Mesa manual.
  • BoMadsen
  • BoMadsen
14 Dec 2025 06:49
Issues with simple input on 7i76eu was created by BoMadsen

Issues with simple input on 7i76eu

Category: Driver Boards

Hi,

I am trying to convert my DMC2 Mini from the chinese Mach3 board it came with, to LinuxCNC via a Mesa 7i76eu. And I have most of it working by now :) But I am having an issue with two simple inputs.

I have two probes, a hight pug and a xy probe, that basically just connects to GND when triggered. They are connected to the mesa with a 10kOhm pull up resistor. This is what I am seeing when I power the machine on:
- The input pin on the Mesa card reads 12v and the input is as expected high/true in hal show
- I then trigger the probe and the input pin now reads 0v, and the input is low/false in hal show
- After I "release" the probe the input pin returns to 12v, BUT the input remains low/false in hal show

Any ideas why the input in hal doesnt return to high when the pin reads 12v with a multimeter
Field power is 24v, and all voltage readings are done between field GND and the input pin.

Thanks in advance :)
  • Hakan
  • Hakan
14 Dec 2025 03:18

Can't get EL4001 to work - all other devices work

Category: EtherCAT

Verify that the slave has the entered PDOs with "ethercat -p 2 pdos"
Check syslog for any messages, last lines of "sudo dmesg"
If that doesn't give anything, add debug messages "ethercat debug 1"
 restart ethercat master, start linuxcnc and check syslog again for any helpful output.
  • MaHa
  • MaHa
14 Dec 2025 02:15
Replied by MaHa on topic Axis deflecting while jogging in G54

Axis deflecting while jogging in G54

Category: QtPyVCP

In MDI:  (debug,#5230)  to see if there is a rotation around Z. To reset   G10 L2 P1 R0
Displaying 91 - 105 out of 21860 results.
Time to create page: 0.378 seconds
Powered by Kunena Forum