Skip to main content

Kollmorgen Support Network

To better serve our Kollmorgen users with questions too complex to be addressed in this space, we made the painful decision to close this Community forum.

Please submit your question using the contact us form to reach our application engineering team.

For the immediate future, you can still access and read past posts.

Thank you for understanding and for participating in the community over the years.

AKD-P01206 with SOEM open-source EtherCat Master not working | 05 Aug 2019 | |

AKD-P01206 with SOEM open-source EtherCat Master not working

I am unable to communicate with the AKD  using the SOEM open source master library.  The example solutions which work on any slave do not work with the AKD.  TwinCat works fine and if I leave TwinCat open in config mode, I can then run the SOEM example program just fine.  As soon as I turn off TwinCat and reboot the AKD the example program no longer works.  The SOEM software can not set the AKD into SAFE-OP Mode.  I get the following message:

Not all slaves reached safe operational state.
Slave 1 ; State=11 ; StatusCode=  11; Invalid requested state change

Is there a document that describes the exact AKD initialization sequence?  Or maybe sample code somewhere?



Comments & Answers

pholden | Thu, 08/08/2019 - 15:23
I found the problem with the help of the SOEM source code administrator.  TwinCat3 works fine because it is using the ESI from the local TwinCat directory that was provided with the AKD TwinCat startup zip file.  When I remove it & force TwinCat3 to try to manage the AKD device from its EEPROM ESI, I get the same issues as the SOEM.  I then tried to use TwinCat 3 to update the AKD EEPROM and got a write error.  So, how do I get this updated version of the ESI into the AKD device?

Martin Rupf | Tue, 08/13/2019 - 12:41
Not exactly sure I understand the point you're stuck.
You're able to put the Drive into Pre-Operational?
In Pre-Operational you have the chance to setup all the real time communication relevant data to the drive, including the PDO mapping from the ESI. Therefore in this state writing the correct SDO should allow you to set the mapping to match the Master. This has then to be done every time starting EtherCat. (There is no option to safe it to the drive.)

I'm adding here the references to the Kollmorgen EtherCat Master help. Form where also the AKD as preferred drive is mentioned.

Hope this helps some more.
Anyway let me know how it goes, this SOEM seems to be an interesting project.

pholden | Wed, 08/14/2019 - 17:09
We were finally able to get it to PRE-OP mode by setting the SM0 & SM1 length to 512 (they are both set to 1024 in the EEPROM ESI).  TwinCat uses an ESI from the Kollmorgen startup zip, which is where SM0 & SM1 length are both 512 and TwinCat works with the AKD.  After that, I just set 2 PDO mappings from the TwinCat startup instruction PDF for AKD (0x1701 and 0x1B01).  Once I add these 2 mappings the AKD immediately faults with F706.  I used KollMorgen Workbench to set this fault to "ignore" instead of "Fault".  Now I can't get into OPERATIONAL mode.

pholden | Wed, 08/14/2019 - 17:58
One thing I don't seem to have any information on is the modes of operation word (0x6060).  How do I set it up during pre-op & what value I should I set it to?

Martin Rupf | Thu, 08/15/2019 - 06:23
The Operation mode (0x6060) is explained in the EtherCat manual page 136.

The default PDO mapping (0x1701, 0x1B01) expects a position command value (0x60C1:1) and control word (0x6040) as the two PDO objects to the drive. Therefore goes with the OpMode 7 or 8, Interpolated or Cyclic Synchronous Position.

You can read back the actual active Operation mode via 0x6061.
An operating mode switch only becomes valid when read by object 0x6061.

Depending on the age of your drive and Firmware there are different sizes for the EtherCat Mail boxes implemented. With FW 1-16-00-001, the parameter ECAT.LEAGCYREV has been introduced to be backwards compatible by default but to have a chance on enabling the bigger size.
see also the ethercat manual page 20&34.


pholden | Thu, 08/15/2019 - 16:27
Thanks, all good info.  I did read some info on 0x6060 from one of your manuals, but a lot of the settings were missing, 7 being one of them!  This version of the manual seems like it will be much more helpful.

My client wants to be able to control velocity as well as position.  What opmode setting would I use in this case?


Martin Rupf | Fri, 08/16/2019 - 06:23
For velocity command -> opmode 1, "profile velocity" allows the following of cyclic velocity setpoints via PDO 0x60FF. For this you need a different PDO setting or you use the fully flexible PDO mapping. (page 44ff) This way you have four objects (output 0x1600-1603, input 0x1A00-1A03) to be used with a maximum of 64-Bit each.

pholden | Fri, 08/16/2019 - 23:21
Ok, so the example there is using TwinCat3.  So I will repeat the process of doing the instructions for TwinCat3 & then change my startup process in the SOEM master implementation once TwinCat3 is working.  I'll let you know how I make out.  I'm still struggling with SOEM getting into OPERATIONAL state with just 1 input & 1 output.

witihix286 (not verified) | Sun, 11/10/2019 - 18:08
Good, Very informative. 

tochimbo (not verified) | Sun, 11/10/2019 - 23:19

About this Question