CiA 402 Folder Missing

More
8 months 6 days ago #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
8 months 6 days ago #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
8 months 5 days ago #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
8 months 4 days ago #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
8 months 4 days ago #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.

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

More
8 months 4 days ago #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.

Time to create page: 0.083 seconds
Powered by Kunena Forum