CiA 402 Folder Missing

More
25 Feb 2026 19:10 #343493 by 3404gerber
Replied by 3404gerber on topic CiA 402 Folder Missing
Hi,

I have no experience with CiA homecomp, but if I have a look at the comp source code here , I see that it creates a "joint.%d.request-custom-homing", jno" pin. Could the name be your problem?

Cheers,
Luca

Please Log in or Create an account to join the conversation.

More
26 Feb 2026 17:21 #343547 by andrax
Replied by andrax on topic CiA 402 Folder Missing
You have a lot of synchronization errors.
What kind of cable are you using?
What is your topology?
Do you have EMC problems?

[70592.094690] EtherCAT ERROR 0-0: AL status message 0x001A: “Synchronization error”.

Please Log in or Create an account to join the conversation.

More
26 Feb 2026 19:31 #343559 by Konstantin
Replied by Konstantin on topic CiA 402 Folder Missing
The cables I use are standard CAT5e patch cords, 1.5m long and the excess length is in loops.

The topology is as follows - one cables from the computer is connected to the first servo drives and all the others are daisy chained.

About the name of pin that @3404gerber mentioned. I was thinking if should I change the pin name from 'cia' to 'custom' but you have a working configuration with 'cia' in the name. Why should it be different with my cia402 home component? Perhaps, the name was updated after you got it working.

Please Log in or Create an account to join the conversation.

More
26 Feb 2026 20:17 #343564 by 3404gerber
Replied by 3404gerber on topic CiA 402 Folder Missing
According to github, that's a part of the feb 15 2025 commit:

-  hal_bit_t *request_cia402_homing;   // output requests homing (connect to cia402.n.home)
-  hal_bit_t *is_cia402_homing;        // input verifies custom homing (connect to cia402.n.stat_homing)
-  hal_bit_t *cia402_homing_finished;  // input from servo drive after homing (connect to cia402.stat_homed)
+ hal_bit_t *request_custom_homing;   // output requests homing (connect to cia402.n.home)
+ hal_bit_t *is_custom_homing;        // input verifies custom homing (connect to cia402.n.stat_homing)
+ hal_bit_t *custom_homing_finished;  // input from servo drive after homing (connect to cia402.n.stat_homed)

So if your example is older than this and that you compiled the comp from source, yes you have to use the current name. And if HAL tells you the pin doesn't exist, then it very likely doesn't exist.

Please Log in or Create an account to join the conversation.

More
27 Feb 2026 08:02 #343584 by andrax
Replied by andrax on topic CiA 402 Folder Missing
Hi, 
@3404gerber
I am using this configuration and it works so far. There are only massive problems with security issues. But that's another matter.
Provided that homecomp.comp has not been changed, it should work.

@Konstatin
You have massive EMC problems. dmesg shows a bunch of errors even before Linuxcnc is loaded.
1. CAT5 cables are unsuitable > use CAT6
2. Use short cables, no loops!!!
3. Lay cables away from other wires
4. Attach Feritt cores
5. Servo interference suppression EMC filter

6. Only when “dmesg | grep ethercat” shows no more errors before starting lcnc can you focus on the lcnc configuration.

 
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
28 Feb 2026 02:44 #343633 by rodw
Replied by rodw on topic CiA 402 Folder Missing
Take care. Mine is an adaptation, the original is here github.com/dbraun1981/hal-cia402/tree/main

Please Log in or Create an account to join the conversation.

More
28 Feb 2026 13:57 #343653 by Konstantin
Replied by Konstantin on topic CiA 402 Folder Missing
@andrax
I will purchase CAT6 cables as short as possible to prevent any loops probably the next week. I do not think there should be any EMC since, as I mentioned earlier, the drives and motor are on my testbench. There is no high voltage machine around, just computers.  Still, I do not exclude that EMC is the actual problem. I attached pictures of the drive setup and the mini pc I use.
By the way, when I try the command “dmesg | grep ethercat”, I got an error: "dmesg: read kernel buffer failed: Operation not permitted". Only "sudo dmesg" works.
Another interesting fact that I observed is that when I type "ethercat pdos", there are a few rows where it show 0x0000:00, 0bit, 'Gap''. As if there are missing PDOs. I might be wrong but, should I somehow define in the servo drive what PDOs and SDOs to be mapped in the variable PDO and SDO mapping.

@3404gerber
The truth is that I compiled the cia402-homecomp from source a few days ago and the example is a much older.

@rodw
I checked the original version of the component and the example there has only one row for homing that receives the index pulse from the servo drive but still I could not execute a successful homing procedure with it as well.
Attachments:

Please Log in or Create an account to join the conversation.

More
28 Feb 2026 15:38 #343655 by andrax
Replied by andrax on topic CiA 402 Folder Missing
Am I right in thinking you have battery-buffered encoders?Then you don't need homing.First remove the loops and see if the errors decrease. Dmesg requires admin rights.

Please Log in or Create an account to join the conversation.

More
03 Mar 2026 09:06 - 03 Mar 2026 09:48 #343775 by Konstantin
Replied by Konstantin on topic CiA 402 Folder Missing
@andrax
You are right, the encoders are absolute and have batteries. Perhaps, the homing may be needed for squaring the gantry.

I changed all the cables with CAT6 and there are no loops. Attached are the terminal outputs for "ethercat master", "ethercat slaves" and "sudo dmesg". The synchronization errors seem to be disappeared. There is still some errors but I am not sure if they influence the EtherCAT synchronization.

When I try to execute "dmesg | grep ethercat" it does not output anything, just moves to a new row in the terminal.

EDIT 1: After I ran LinuxCNC and executed "sudo dmesg", it showed a warning that says 'Slave did not sync after 5000ms'. Attaches is a new file - dmesg_new.txt. It contains the warning for synchronization.

EDIT 2: Something weird happens to my system. After playing with LinuxCNC with different configuration, the same syncronization error appears again. It seems that the cable did not help. Attached is the lates "sudo dmesg" output - dmesg_last.txt
 
Last edit: 03 Mar 2026 09:48 by Konstantin. Reason: Adding new information

Please Log in or Create an account to join the conversation.

More
03 Mar 2026 17:32 - 03 Mar 2026 17:40 #343798 by andrax
Replied by andrax on topic CiA 402 Folder Missing
dmesg_new looks better.
However, your vid and pid are incorrect.
They are from Stepperonline A6.
You must enter those from your servos.
vid according to manufacturer xml: 00000eff
pid: 0d3e0001 (not sure)

Note:
please use: dmesg | grep ethercat as root
sudo su
password
dmesg | grep ethercat
that's conspicuous
EtherCAT ERROR 0-3: AL status message 0x001A: "Synchronization error".
Last edit: 03 Mar 2026 17:40 by andrax.

Please Log in or Create an account to join the conversation.

Time to create page: 0.216 seconds
Powered by Kunena Forum