EtherCat master station problem

More
05 Dec 2022 01:30 #258551 by yi2580
Hello, I want to ask some questions about the EtherCat master station. Now I want to write a master station of SOEM by myself to simply control my motor. I can control the step driver with SOEM control, but I cannot drive when I use the servo driver. The value read out by the status word 6041 is 0x210. I am ready to see my servo display through the driver. I don't know why I hope someone can help me.   
Attachments:

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

More
05 Dec 2022 08:37 #258568 by db1981
I think this is not LinuxCNC related...

As far as i can see from your snippet, you are trying to set status/controlword and speed by sdo communication. This dont work.
You have to config pdos for the slave (these are running in the realtime thread) and have to write to them. The slave will not work in running/enabled mode with SDO Data.
SDO communication is mostly used in state init/preop, but in op state sdo register that also has an pdo are not recognized.

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

Time to create page: 0.260 seconds
Powered by Kunena Forum