OpenEtherCATsociety / SOEM

Simple Open Source EtherCAT Master
Other
1.31k stars 669 forks source link

Problem in the state machine #134

Closed MrArdilla closed 6 years ago

MrArdilla commented 6 years ago

Good morning.

I own a Pluto servodrive, the protocol i am using is CoE. The current problem I have is that I can't change between the states "Ready to switch on" and "Switch on enable", whenever I send the controlword 7 or F the servodrive returns to the state "Switch On disabled".

I have read the documentation of my controler and it doesn't have any useful information about this error, I have tried with Twincat but when i try to online write the controlword it doesn't change, I mean i write 7 and it stays at 6, and the same happens when i try to wirte it with SDO instead of PDO.

I have tried forcing the enable of the motors with the program that ingenia provides the motion lab. The problem is that yes the motor is enabled but whenever i send a command to move it returns to the state "Switch on disabled".

Any help is welcome.

Thanks for your time.

nakarlsson commented 6 years ago

What does your PDO mappings look like, try running slaveinfo -map

You should do the following according to the ESI, have you done that? I can't find out exactly what it does but it might be mandatory stuff.

PS #x60C2 1 01 Interpolation time period
        <InitCmd>
          <Transition>PS</Transition>
          <Index>#x60C2</Index>
          <SubIndex>2</SubIndex>
          <Data>FD</Data>
          <Comment>Interpolation time index</Comment>
        </InitCmd>
MrArdilla commented 6 years ago

Hey, thanks for replying.

I have attached the map, if you could take a look at it. But i think it is okay, besides the normal parameters i have added the DC link circuit voltage to monitor. Because sometimes Twincat has given me an error related to voltage, but it stays stable and in the interval it is supposed to be. Don't mind the spaces, it is something i used to check the wkc. mapa_pluto

Besides, i have checked the parameters you told me with the MotionLab and SOEM, and the values i got are in line with the manual, there's a photo with the values as well.

issue_ethercat

What do you mean with doing the following according to the ESI? Ingenia has given me a .xml file and the parameters i get match the control position and the paramater i have added, but I think I haven't done a configuration related to the ESI,

Any is welcome, thank you so much.

nakarlsson commented 6 years ago

Can you reach OPERATIONAL? If then I think you got some non EtherCAT related issue If not what is the ALStatusCode.

MrArdilla commented 6 years ago

Yes, I can reach OPERATIONAL with no problem, i run the simple_test and it works perfectly. Okay thanks for your time, i will take a look at it.

Thank you so much.

nakarlsson commented 6 years ago

No SOEM or EtherCAT issue, maybe commisioning issue