Advanced Search

Search Results (Searched for: )

  • 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
  • spumco
  • spumco
14 Dec 2025 01:54
Replied by spumco on topic Clearpath HLFB amp.joint.delay

Clearpath HLFB amp.joint.delay

Category: HAL

I think the problem is that the joints are supposed to have numbers, not letters.

Like 

joint.0.amp-fault-in

I just realized you haven't created a signal name, just linked two pins.  Because your joint.(lettter).amp-fault-in pin doesn't actually exist, LCNC is creating a SIGNAL named joint.(letter).amp-fault-in.

That's why you aren't getting an error at startup.

Try this

net x-fault joint.0.amp-fault-in hm2_7i96s.0.inm.00.input-1-not

and so on for the others.
 
  • NWE
  • NWE
14 Dec 2025 01:24

Ursviken Pullmax Optima 130 press brake retrofit with 4 axis backgage

Category: Show Your Stuff

Thanks so much! I used to know that, but totally forgot it this project. For once I started a project without first reading the mesa manual from cover to cover... my error has come to light.
  • dfarnainekl
  • dfarnainekl
13 Dec 2025 23:48

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

Category: EtherCAT

Hello,

I added an EL4001 analog output terminal to a system with a few other Beckhoff terminals, which is otherwise fully working.
Like the other terminals, the EL4001 shows up with "ethercat slaves" and this as well as its status LED shows it's in the OP state.
I added it to the ethercat-config.xml like the other nodes:<slave idx="4" type="EL4001" name="spindleSpeed"/>
I also tried setting it up manually like here .

Unfortunately, I can't get any output voltage out of it (other than zero) using the pins as documented  (I set the pins using halcmd and verified with Halscope). As mentioned, all other Ethercat devices (mostly Beckhoff) work without issues. I also tried changing the order of the Beckhoff terminals, but that didn't help (as expected).

Does anyone have any idea what could be the issue here, or what I can do to further debug this?
  • Masiwood123
  • Masiwood123's Avatar
13 Dec 2025 23:42

freelancer needed to create a routine for ATC tool change (rackchange)

Category: Advanced Configuration

WOW now it works without errors, thank you very much, I'm very happy... please leave an email, I would like to do something for the favor!

youtube.com/shorts/J1DJ8W4_v6Y?si=e8J3gdIzHKPtXllS
  • Fastfred
  • Fastfred
13 Dec 2025 22:49
Replied by Fastfred on topic Clearpath HLFB amp.joint.delay

Clearpath HLFB amp.joint.delay

Category: HAL

OK I corrected the .hal file and pins are reversed like you said but unfortunately still same issue no pop up in GUI no indication something wrong. I can move the axis linuxcnc thinks everything is OK.
  • MaHa
  • MaHa
13 Dec 2025 22:46

freelancer needed to create a routine for ATC tool change (rackchange)

Category: Advanced Configuration

There is this bracket ']' to remove:


line 27
#<y_gap_o> = #<_ini[tool_slot_delta]y_gap>]


line 72
#<y_gap_i> = #<_ini[tool_slot_delta]y_gap>]
  • spumco
  • spumco
13 Dec 2025 22:23 - 13 Dec 2025 22:27
Replied by spumco on topic Clearpath HLFB amp.joint.delay

Clearpath HLFB amp.joint.delay

Category: HAL

Good, thanks for verifying the servos are programmed appropriately.

Right now, your HLFB pins are HIGH (conducting) when the servos are enabled and OK.  Since you have the inputs connected to your amp-fault-in pins like:
# HLFB is true when enabled *and* following
net joint.z.amp-fault-in hm2_7i96s.0.inm.00.input-07
net joint.y2.amp-fault-in hm2_7i96s.0.inm.00.input-08
net joint.y.amp-fault-in hm2_7i96s.0.inm.00.input-09
net joint.x.amp-fault-in hm2_7i96s.0.inm.00.input-10

LCNC thinks there is a fault when the servos are saying everything is OK.  Here's the LCNC manual section (motion):

joint.N.amp-fault-in IN BIT should be driven TRUE if an external fault is detected with the amplifier for this joint.

Try changing the HLFB input pins to 'not' like so:
net joint.z.amp-fault-in  hm2_7i96s.0.inm.00.input-07-not
net joint.y2.amp-fault-in  hm2_7i96s.0.inm.00.input-08-not
net joint.y.amp-fault-in  hm2_7i96s.0.inm.00.input-09-not
net joint.x.amp-fault-in  hm2_7i96s.0.inm.00.input-10-not

At that point, the joint.N.amp-fault-in pins should be HIGH when the servos are not enabled, and go LOW when they are enabled and OK.

Once you're at that point, you can test by pulling the encoder cable off the motors and see if it causes the amp-fault-in to go high (hopefully).

If you still need a delay we can work on that next.
Displaying 241 - 255 out of 21706 results.
Time to create page: 0.228 seconds
Powered by Kunena Forum