Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

EtherCAT EL7201

Hi

 

My system consists of a NI cRIO – 9082 which is acting as the EtherCAT Master. The cRIO is then connected to a BeckHoff  EtherCAT coupler EK1100. Off this EK1100 I have multiple EtherCAT slaves which I can communicate to without problems (EL1008. EL2008, EL3008 and EL4008). However the EL7201 module fails to enter the ‘safe operational’ state.  I believe the issue is related to distributed clocks on the EtherCAT slave. I have enabled the distributed clock (DE) on the module however I am unable to enable the enable the  distributed clock on the Ethercat coupler (the option is greyed out).

 

I would be regretful is anyone can spot what I am doing wrong? or could give some advice on how to interface with a EL7201 module via LabVIEW?

 

Thanks

Dave B

0 Kudos
Message 1 of 13
(7,084 Views)

Hi Dave,

 

Interfacing with Third party hardware often involves some extra configuration time. I found a forum which might help you out -http://forums.ni.com/t5/LabVIEW/cRIO-9067-and-Bernecker-Rainer-EtherCAT-slave/m-p/3038835#M866641  . For instance do you have your cRIO scan mode set to configuration mode ? 

 

Here is a white paper on Adding Third-Party EtherCAT® Slaves in LabVIEW - http://digital.ni.com/public.nsf/allkb/FDA1318A8909D02C862574510060DB62?OpenDocument

 

I will continue to look into your problem but wanted to send your some resources for you to look at in the mean time. 

 

Kind Regards,
Lucas
Applications Engineer
National Instruments
0 Kudos
Message 2 of 13
(7,030 Views)

Hi

 

Thanks for the reply.

 

Over the last few days i have had signicant success. I have fixed the distrubuted clock issue and create a LabVIEW vi which loads the motor setting to EL7201. I have been able to run the EL7201 in position and velocity mode.  However i have encounted a new issue. In the final application we plan to use the EL7201 in velocity mode and monitor its velocity, position, torque and statusword. To make the PDO appear in LabVIEW i am modifing Beckhoff XML following this guide (http://digital.ni.com/public.nsf/allkb/D0496C451057975586257B9800740A07). My system works with only 2 varibles being monitor (2 TxPDOs) but starts failing if i try and monitor more.

 

Does anyone know why the author of the guide states "Only one PDO transmit section should have the SM tag." ?

 

Thanks

Dave B

 

 

 

 

 

 

0 Kudos
Message 3 of 13
(7,027 Views)

All solved.

 

I had to edit the ESI file to enable additional PDOs. I also had to add additional code to the initailisation code which sets the PDO mapping in the SDO at the Pre operational State.

 

Thanks for the help

Dave B

 

0 Kudos
Message 4 of 13
(6,979 Views)

That's great Dave,

 

Sorry for the delayed response. That's great you have now solved your issue. I'm sure you troubleshooting will be useful for someone in the future. 

Kind Regards,
Lucas
Applications Engineer
National Instruments
0 Kudos
Message 5 of 13
(6,977 Views)

Hi Dave,

 

I'm having some problems trying to configure the DC using the NI Ethercat Master installed on a RT desktop and the EP3184-0002 from Beckhoff. When I enable the DC on my first slave that support this fnctionality and I try to deply or start the application I receive the next error.

 

Error.png

 

Do you have any advice to configure the DC?

 

Best regards

 

Javier Huarte

 

0 Kudos
Message 6 of 13
(6,809 Views)

Hi 

 

I have seem this error message a number of times and your correct it can be seen if the DC are not configure correctly.

 

Have you enabled both the distubled clock and enabled SYNC1?

 

 DC settings.png

 

Hope this helps

Dave 

0 Kudos
Message 7 of 13
(6,804 Views)

Hi Dave,

 

Thank you very much for your quick response.

 

 

Yes, I think that was my first  trial but unfortunately it didn't work. Actually my network configuration is:

 

1. NI Ethercar Master v 14.0

2. One  EP3184-0002 (4 Channel Analog Input) (the first slave on the bus)

3. One EP4174-0002 (4 Cahnnel Analog Output)

 

Attached you can find the configuration I have used. 

 

EP3184-0002

EP3184-0002.png

EP4174-0002

EP4174-0002.png

 

 

Best regards

0 Kudos
Message 8 of 13
(6,802 Views)

From memory you should only need to configure one device for distuributed clock. That device should then supply the rest of the devices on that slice. 

 

I would try turning off distirubted clock on your EP4174-0002.

 

Hope that helps

Dave 

 

 

0 Kudos
Message 9 of 13
(6,795 Views)

I tried too. Smiley Sad

 

I don't know probably I have to read the datasheet and try to find something there...

 

Thx

 

 

0 Kudos
Message 10 of 13
(6,789 Views)