Lichuan 4 axis stepper need help-

More
8 months 4 weeks ago #342376 by Hakan
I asked Rony for it, let's see what he says.

Here is a litttle exercise.
Comment out all connections to lcec for the say fourth drive. No cia involved, only lcec.
Start linuxcnc and then start halshow.
First set lcec.0.x.4-opmode to 8.
Then step by step enter 6, 7 and 15 as 4-controlword (or 4-cia-controlword).
Watch how 4-statusword changes for every number entered.
Use a dec-to-bin converted to decode statusword.
Some of the statusword combinations are belwow
Probably especially valuable to compare the drive that works with one that doesn't.



 

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

More
8 months 4 weeks ago #342379 by rodw
Funny, I was just looking too. There is only one lcec slave showing

 

So if I go back and rework all the cia402 joints to point to the correct variable/pdo for that one slave, it might work!
 

File Attachment:

File Name: pdos_2026-02-04.txt
File Size:1.74 KB

 

File Attachment:

File Name: ethercat-c...2-04.xml
File Size:4.11 KB

XML and dump of PDO's is attached 

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

More
8 months 4 weeks ago #342380 by rodw
Well, that's disappointing! Thats exactly what I have done.
And all of my statuswords 1-3 are zero. :(
If you can see any obvious errors in the XML, let me know

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

More
8 months 4 weeks ago #342381 by rodw
I've attached my unfinished comp and hal for good luck. also had a look at Dominic's results and its the same
   

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

More
8 months 4 weeks ago #342382 by Hakan
Can't you just forget about cia for the moment and only work with lcec, like I did.
And transition manually 6,7 15.

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

More
8 months 4 weeks ago #342385 by andrax
Hi, 
I am reading all the topics on EtherCAT and CIA402 carefully. Unfortunately, I am not a programmer and cannot contribute much.
But I found this page, maybe it will help?
EtherCAT Slave: CiA 402 example  

Note: would it be possible to incorporate certain safety routines? For example, a watchdog if the servo receives the command for homing but does not start moving.
The following user(s) said Thank You: NWE

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

Time to create page: 0.497 seconds
Powered by Kunena Forum