NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Nevio T
Posts: 2
0 Kudos

CANOpen Communication NI cRIO 9022 (9853 CAN module) - MAXON EPOS2

I'm implementing a velocity control loop on two Maxon EPOS2 70/10 control units,  interfacing them with a NI cRIO 9022 (CAN module 9853). To this aim, I'm using the libraries from NI and they work quite well: for each EPOS2 I can read current, position and velocity using 2 PDO messages and set a desired velocity using 1 PDO message, all in a single timed loop on Labview Real-Time. My VI is based on a NI example included in the mentioned library. Even though the sampling time of the loop is set to 10 ms (as in the example file), I verified that all the operations were executed in about 30 ms.

My target is 1 ms sample time and I'd like to know if there is any chance to get this; are there some limitations in the software/communication protocol I'm using or is it possible to achieve 1 kHz control frequency? Based on the documentation, the EPOS2 CANopen driver is split as follows:

 

1.      Hardware Layer: VIs which interact with the CAN hardware (FPGA Interface folder).
2.      CAN Layer: VIs which construct/deconstruct CAN packets and handle communication between the Hardware Layer and the top level application (CAN folder).
3.      CANOpen Layer: Low level VIs which simplify the generation of the SDOs and PDOs used to communicate over the CAN bus (CANopen folder).
4.      EPOS2 Driver Layer: High level wrappers over the CANOpen Layer simplifying the control of EPOS2 drives (main folder).

 

It seems that the Layer that construct/deconstruct CAN packets is impelemented on the RT level. Is it correct? Do I need to move it to the FPGA level to improve performances?

 

I look forward to hearing any suggestions from you.

 

Best,

 

Nevio

Active Participant
A.V.
Posts: 302
0 Kudos

Re: CANOpen Communication NI cRIO 9022 (9853 CAN module) - MAXON EPOS2

Hello Nevio,

 

I think that the following document is the response to your question.

 

CAN Engine Reference Example for LabVIEW FPGA

http://forums.ni.com/t5/forums/replypage/board-id/30/message-id/5857

 

Could you please take a look?

 

Regards,

Antonios
Member
Nevio T
Posts: 2
0 Kudos

Re: CANOpen Communication NI cRIO 9022 (9853 CAN module) - MAXON EPOS2

Dear Antonios,

thank you for your indication.

I had a look to the document, anyhow this example seems to be a bit different from my case: I'm using specific libraries developed by NI to communicate with EPOS2 controllers.

The libraries work well but I cannot reduce the whole (velocity) control loop time to less than 30 ms.

I cannot find the source of the problem, any idea is welcome.

Thanks again.

Best,

Nevio

Member
kmmar
Posts: 2
0 Kudos

Re: CANOpen Communication NI cRIO 9022 (9853 CAN module) - MAXON EPOS2

Hi Nevio, 

I am trying to simply read encoder values from my EPOS2 24/2 control units into Lavbiew. I have been through all the documentation however I am unable to establish communication between the EPOS2 and labview.
I am connecting the two using a USB connection. I can connect to and control the motors in EPOS Studio, but nothing in labview.
I am very new to Labview so I am probably not putting the correct blocks down for initialization.
Could you please help me by suggesting some good examples to look at or linking me to labview sample of initializing communication with the EPOS2 units. 

 

Any help is greatly appreciated

 

Regards,

Kris

Active Participant
dkfire
Posts: 422
0 Kudos

Re: CANOpen Communication NI cRIO 9022 (9853 CAN module) - MAXON EPOS2

First, don't hijack another one thread.

 

You need to give a lot more description on that you have tried.

What have you done in LabVIEW ?

Was there any errors ?

 

Have you tried any of the simple examples for CAN communication ?

 

Member
kmmar
Posts: 2
0 Kudos

Re: CANOpen Communication NI cRIO 9022 (9853 CAN module) - MAXON EPOS2

Sorry about hijacking and the snail paced reply.

I have solved the communication errors i was having. I needed to cange the controller bitrate from 'Auto-Bitrate' to a set common value. 

 

Thanks for your quick response. 

 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page